-
Notifications
You must be signed in to change notification settings - Fork 70
Build Batch Explorer yourself
David Watrous edited this page Jul 28, 2020
·
4 revisions
- Install node.js version 12 or greater. Download**
- Install python 3.6 or higher (doesn't need to be in the path if that breaks your environment)
- Have a Visual Studio 2015+ installed (For Windows only and recommended to have VS 2017+)
- 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:
- 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
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
npm install
pip3 install -r python/requirements.txt # or pip if on windows or only have python 3 installedIf you didn't install python in the 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
# 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