add virtualenv
This commit is contained in:
parent
b1ce329e8e
commit
059fd11b94
2 changed files with 11 additions and 0 deletions
7
build.sh
7
build.sh
|
@ -11,6 +11,11 @@ if [ -n "${TEAMCITY_VERSION:-}" ]; then
|
|||
fi
|
||||
|
||||
|
||||
VENV="$ROOT/venv"
|
||||
virtualenv "$VENV"
|
||||
source "$VENV/bin/activate"
|
||||
|
||||
|
||||
(
|
||||
cd "$ROOT/electron"
|
||||
npm install
|
||||
|
@ -68,3 +73,5 @@ if [ -n "${TEAMCITY_VERSION:-}" ]; then
|
|||
else
|
||||
echo 'Build complete. Run `electron electron` to launch the app'
|
||||
fi
|
||||
|
||||
deactivate
|
||||
|
|
|
@ -75,6 +75,10 @@ if $LINUX && ! (pip list --format=columns | grep --quiet setuptools); then
|
|||
$SUDO pip install setuptools
|
||||
fi
|
||||
|
||||
if ! cmd_exists virtualenv; then
|
||||
$SUDO pip install virtualenv
|
||||
fi
|
||||
|
||||
if ! cmd_exists pyinstaller; then
|
||||
$SUDO pip install pyinstaller
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue