lbry-desktop/build.sh

35 lines
737 B
Bash
Raw Normal View History

2017-01-16 20:06:53 +01:00
#! /bin/bash
set -o xtrace
set -eu
2017-01-16 20:14:24 +01:00
cd electron
npm install
2017-01-17 03:40:10 +01:00
cd ../lbry
git fetch
git reset --hard origin/master
git cherry-pick bd75e88ebebb67897c62a1ee1d3228fd269677dc
pip install -r requirements.txt
pip install .
2017-01-17 07:58:31 +01:00
git reset --hard origin/master
2017-01-17 03:40:10 +01:00
2017-01-16 20:14:24 +01:00
cd ../lbrynet
2017-01-17 03:40:10 +01:00
pyinstaller lbry.py -y --windowed --onefile --icon=../lbry/packaging/osx/lbry-osx-app/app.icns
2017-01-16 20:06:53 +01:00
2017-01-16 20:36:31 +01:00
cd ../lbry-web-ui
git fetch
git reset --hard origin/master
2017-01-16 20:06:53 +01:00
git cherry-pick 06224b1d2cf4bf1f63d95031502260dd9c3ec5c1
2017-01-16 20:36:31 +01:00
npm install
2017-01-16 20:06:53 +01:00
node_modules/.bin/node-sass --output dist/css --sourcemap=none scss/
webpack
2017-01-17 07:58:31 +01:00
git reset --hard origin/master
2017-01-16 20:06:53 +01:00
2017-01-17 03:40:10 +01:00
cd ..
cp -R lbry-web-ui/dist electron/
2017-01-16 20:06:53 +01:00
mv lbrynet/dist/lbry electron/dist
echo 'Build complete. Run `electron electron` to launch the app'