finally working
This commit is contained in:
parent
df33156ea4
commit
8f417005b5
2 changed files with 23 additions and 21 deletions
42
build.sh
42
build.sh
|
@ -34,28 +34,13 @@ if [ "$FULL_BUILD" == "true" ]; then
|
||||||
python "$ROOT/set_build.py"
|
python "$ROOT/set_build.py"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf "$ROOT/app/dist"
|
[ -d "$ROOT/dist" ] && rm -rf "$ROOT/dist"
|
||||||
|
mkdir -p "$ROOT/dist"
|
||||||
|
[ -d "$ROOT/app/dist" ] && rm -rf "$ROOT/app/dist"
|
||||||
mkdir -p "$ROOT/app/dist"
|
mkdir -p "$ROOT/app/dist"
|
||||||
|
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
####################
|
|
||||||
# lbrynet-daemon #
|
|
||||||
####################
|
|
||||||
|
|
||||||
(
|
|
||||||
cd "$ROOT/lbrynet-daemon"
|
|
||||||
pip install -r linux_macos.txt
|
|
||||||
pyinstaller -y lbry.onefile.spec
|
|
||||||
)
|
|
||||||
if [ "$FULL_BUILD" == "true" ]; then
|
|
||||||
# electron-build has a publish feature, but I had a hard time getting
|
|
||||||
# it to reliably work and it also seemed difficult to configure. Not proud of
|
|
||||||
# this, but it seemed better to write my own.
|
|
||||||
python release_on_tag.py
|
|
||||||
fi
|
|
||||||
mv "$ROOT/lbrynet-daemon/dist/lbrynet-daemon" "$ROOT/app/dist/"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
############
|
############
|
||||||
|
@ -67,11 +52,24 @@ mv "$ROOT/lbrynet-daemon/dist/lbrynet-daemon" "$ROOT/app/dist/"
|
||||||
npm install
|
npm install
|
||||||
node_modules/.bin/node-sass --output dist/css --sourcemap=none scss/
|
node_modules/.bin/node-sass --output dist/css --sourcemap=none scss/
|
||||||
node_modules/.bin/webpack
|
node_modules/.bin/webpack
|
||||||
cp -r "dist/*" "$ROOT/app/dist/"
|
cp -r dist/* "$ROOT/app/dist/"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
####################
|
||||||
|
# lbrynet-daemon #
|
||||||
|
####################
|
||||||
|
|
||||||
|
(
|
||||||
|
cd "$ROOT/lbrynet-daemon"
|
||||||
|
pip install -r linux_macos.txt
|
||||||
|
pyinstaller -y lbry.onefile.spec
|
||||||
|
mv dist/lbrynet-daemon "$ROOT/app/dist/"
|
||||||
|
)
|
||||||
|
python zip_daemon.py
|
||||||
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# Build the app #
|
# Build the app #
|
||||||
###################
|
###################
|
||||||
|
@ -87,7 +85,11 @@ if [ "$FULL_BUILD" == "true" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
node_modules/.bin/build -p never
|
node_modules/.bin/build -p never
|
||||||
python zip_daemon.py
|
|
||||||
|
# electron-build has a publish feature, but I had a hard time getting
|
||||||
|
# it to reliably work and it also seemed difficult to configure. Not proud of
|
||||||
|
# this, but it seemed better to write my own.
|
||||||
|
python release_on_tag.py
|
||||||
|
|
||||||
deactivate
|
deactivate
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ if ! cmd_exists pip; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if $LINUX && ! (pip list --format=columns | grep --quiet setuptools); then
|
if $LINUX && [ "$(pip list --format=columns | grep setuptools | wc -l)" -ge 1 ]; then
|
||||||
#$INSTALL python-setuptools
|
#$INSTALL python-setuptools
|
||||||
$SUDO pip install setuptools
|
$SUDO pip install setuptools
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue