move build stuff into its own dir
This commit is contained in:
parent
60ed5cce14
commit
48a8aab292
12 changed files with 10 additions and 9 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -4,7 +4,7 @@ dist
|
||||||
|
|
||||||
/app/dist
|
/app/dist
|
||||||
/app/node_modules
|
/app/node_modules
|
||||||
/build_venv
|
/build/venv
|
||||||
/lbry-app-venv
|
/lbry-app-venv
|
||||||
/lbrynet-daemon/build
|
/lbrynet-daemon/build
|
||||||
/lbrynet-daemon/venv
|
/lbrynet-daemon/venv
|
||||||
|
|
|
@ -3,13 +3,14 @@
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
|
||||||
cd "$ROOT"
|
cd "$ROOT"
|
||||||
|
BUILD_DIR="$ROOT/build"
|
||||||
|
|
||||||
if [ "$(uname)" == "Darwin" ]; then
|
if [ "$(uname)" == "Darwin" ]; then
|
||||||
ICON="$ROOT/build/icon.icns"
|
ICON="$BUILD_DIR/icon.icns"
|
||||||
else
|
else
|
||||||
ICON="$ROOT/build/icons/lbry48.png"
|
ICON="$BUILD_DIR/icons/lbry48.png"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FULL_BUILD="${FULL_BUILD:-false}"
|
FULL_BUILD="${FULL_BUILD:-false}"
|
||||||
|
@ -19,9 +20,9 @@ fi
|
||||||
|
|
||||||
if [ "$FULL_BUILD" == "true" ]; then
|
if [ "$FULL_BUILD" == "true" ]; then
|
||||||
# install dependencies
|
# install dependencies
|
||||||
$ROOT/prebuild.sh
|
$BUILD_DIR/prebuild.sh
|
||||||
|
|
||||||
VENV="$ROOT/build_venv"
|
VENV="$BUILD_DIR/venv"
|
||||||
if [ -d "$VENV" ]; then
|
if [ -d "$VENV" ]; then
|
||||||
rm -rf "$VENV"
|
rm -rf "$VENV"
|
||||||
fi
|
fi
|
||||||
|
@ -29,9 +30,9 @@ if [ "$FULL_BUILD" == "true" ]; then
|
||||||
set +u
|
set +u
|
||||||
source "$VENV/bin/activate"
|
source "$VENV/bin/activate"
|
||||||
set -u
|
set -u
|
||||||
pip install -r "$ROOT/requirements.txt"
|
pip install -r "$BUILD_DIR/requirements.txt"
|
||||||
python "$ROOT/set_version.py"
|
python "$BUILD_DIR/set_version.py"
|
||||||
python "$ROOT/set_build.py"
|
python "$BUILD_DIR/set_build.py"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -d "$ROOT/dist" ] && rm -rf "$ROOT/dist"
|
[ -d "$ROOT/dist" ] && rm -rf "$ROOT/dist"
|
Loading…
Reference in a new issue