Skip to content

Build Batch Explorer yourself

David Watrous edited this page Jan 28, 2022 · 4 revisions

1. Prerequisites

  1. Install node.js version 16 or greater. Download**
  2. Install python 3.6 or higher
  3. Have a Visual Studio 2017+ installed
  4. Alternatively to 2. and 3. you can use npm install -g windows-build-tools

You can view the steps the Azure DevOps CI has to setup the build:

2. Clone the repo

  • At stable branch git clone -b stable https://github.com/Azure/BatchExplorer
  • Or for the latest changes git clone https://github.com/Azure/BatchExplorer

Move to the directory cd BatchExplorer

3. Build the app with the all in one command line (Windows only)

Call this command and it will check you have everything setup correctly and build the app.

.\scripts\install\install-windows

You can skip all the other steps

4. Install the dependencies

npm install
pip3 install -r python/requirements.txt

4.5 Setup some configuration (Only in certain cases)

If Python isn't on your path, you will need to let Batch Explorer know where it is. Set an environment variable called BL_PYTHON_PATH with the path to the python executable. Batch Explorer will first look to see if this environment variable is set. If it's not, it will try python3 and then python to find an installation of python 3

5. Build and run the application

# Make an executable, this will bundle all needed dependencies including node and python
npm run build-and-pack

# Manual
npm run build:prod
npm run electron:prod

# To debug errors
npm run build
npm run electron