2020-05-23 23:41:19 +03:00
|
|
|
#!/bin/bash
|
|
|
|
echo "Installing npm and electron packagers"
|
2020-05-20 10:41:10 +03:00
|
|
|
npm install electron-installer-dmg -g
|
|
|
|
npm install electron-packager -g
|
2020-05-31 08:05:25 +03:00
|
|
|
npm install electron/electron-osx-sign#master --save-dev -g
|
2020-05-23 23:41:19 +03:00
|
|
|
|
|
|
|
echo "Create dist/"
|
2020-05-20 10:41:10 +03:00
|
|
|
sudo rm -rf dist
|
|
|
|
mkdir dist
|
2020-05-23 23:41:19 +03:00
|
|
|
|
|
|
|
echo "Create executeables with pyinstaller"
|
|
|
|
pip install pyinstaller
|
2020-05-20 10:41:10 +03:00
|
|
|
sudo pyinstaller daemon.spec
|
|
|
|
cp -r dist/daemon ../electron-react
|
|
|
|
cd ..
|
|
|
|
cd electron-react
|
2020-05-23 23:41:19 +03:00
|
|
|
|
|
|
|
echo "npm build"
|
2020-05-22 02:10:02 +03:00
|
|
|
npm install
|
2020-05-20 10:41:10 +03:00
|
|
|
npm run build
|
2020-05-31 08:05:25 +03:00
|
|
|
electron-packager . Chia --asar.unpack="**/daemon/**" --platform=darwin --icon=src/assets/img/Chia.icns --overwrite --app-bundle-id=straya.domain.chia
|
|
|
|
electron-osx-sign Chia-darwin-x64/Chia.app --no-gatekeeper-assess --platform=darwin --hardened-runtime --provisioning-profile=embedded.provisionprofile --entitlements=entitlements.mac.plist --entitlements-inherit=entitlements.mac.plist
|
2020-05-22 02:10:02 +03:00
|
|
|
mv Chia-darwin-x64 ../build_scripts/dist/
|
2020-05-20 10:41:10 +03:00
|
|
|
cd ../build_scripts
|
2020-05-23 23:41:19 +03:00
|
|
|
|
2020-05-27 11:10:48 +03:00
|
|
|
echo "Create .dmg"
|
2020-05-26 22:47:23 +03:00
|
|
|
electron-installer-dmg dist/Chia-darwin-x64/Chia.app Chia-0.1.6 --overwrite
|
2020-05-23 23:41:19 +03:00
|
|
|
ls -l
|