mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-21 10:16:32 +00:00
Check for python in build scripts (#485)
This dependency is not used directly by our build scripts, but its used by `node-gyp` when building native modules, and its much nicer to show a warning early on than having to halt the build script in the middle for missing this dependency (specially on Windows systems). Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
21b6e1aabc
commit
52f47d7b61
@ -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)"
|
||||
|
@ -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 <arch>" 1>&2
|
||||
exit 1
|
||||
|
@ -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
|
||||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
|
Loading…
x
Reference in New Issue
Block a user