diff --git a/scripts/build/darwin.sh b/scripts/build/darwin.sh index af38423c..f04f439c 100755 --- a/scripts/build/darwin.sh +++ b/scripts/build/darwin.sh @@ -32,6 +32,11 @@ if ! command -v bower 2>/dev/null; then exit 1 fi +if ! command -v python 2>/dev/null; then + echo "Dependency missing: python" 1>&2 + exit 1 +fi + ELECTRON_OSX_SIGN=./node_modules/.bin/electron-osx-sign ELECTRON_PACKAGER=./node_modules/.bin/electron-packager SIGN_IDENTITY_OSX="Developer ID Application: Rulemotion Ltd (66H43P8FRG)" diff --git a/scripts/build/linux.sh b/scripts/build/linux.sh index a3e18484..8e9783d7 100755 --- a/scripts/build/linux.sh +++ b/scripts/build/linux.sh @@ -37,6 +37,11 @@ if ! command -v upx 2>/dev/null; then exit 1 fi +if ! command -v python 2>/dev/null; then + echo "Dependency missing: python" 1>&2 + exit 1 +fi + if [ "$#" -ne 1 ]; then echo "Usage: $0 " 1>&2 exit 1 diff --git a/scripts/build/windows.bat b/scripts/build/windows.bat index 83fae4bc..218fab69 100644 --- a/scripts/build/windows.bat +++ b/scripts/build/windows.bat @@ -86,6 +86,13 @@ if %ERRORLEVEL% neq 0 ( exit /b 1 ) +:: Check that asar is installed. +where python >nul 2>nul +if %ERRORLEVEL% neq 0 ( + echo Dependency missing: python 1>&2 + exit /b 1 +) + ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Global variables :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::