glowing-bear/electron.makefile

26 lines
1.2 KiB
Plaintext
Raw Normal View History

2016-04-02 18:08:55 +02:00
# Common flags for electron-packager on all platforms
2020-11-28 01:32:05 +01:00
ELECTRON_COMMON=./build "Glowing Bear" --overwrite --version-string.FileDescription="Glowing Bear" --ignore=node_modules --ignore=test --ignore=bower_components
build:
npm run build
2016-04-02 18:08:55 +02:00
# copy dependencies from bower_components to the correct place
2020-11-28 05:25:35 +01:00
#copylocal:
# find bower_components \( -name "*min.js" -o -name "*min.css" \) -exec cp {} 3rdparty \;
# cp -r bower_components/bootstrap/fonts .
2016-04-02 18:08:55 +02:00
# modify index.html to use local files
2020-11-28 05:25:35 +01:00
#uselocal: copylocal
# sed -i.bak 's,https://cdnjs.cloudflare.com/ajax/libs/[^\"]*/,3rdparty/,g' index.html
# sed -i.bak 's, integrity=\".*\" crossorigin=\"anonymous\",,' index.html
2016-04-02 18:08:55 +02:00
# build the electron app for various platforms
2020-11-28 05:25:35 +01:00
build-electron-windows: build
2020-07-06 21:46:14 +02:00
electron-packager ${ELECTRON_COMMON} --platform=win32 --arch=ia32 --electron-version=9.0.5 --icon=assets/img/favicon.ico --asar=true
2016-04-02 18:08:55 +02:00
2020-11-28 05:25:35 +01:00
build-electron-darwin: build
2020-07-06 21:46:14 +02:00
electron-packager ${ELECTRON_COMMON} --platform=darwin --arch=x64 --electron-version=9.0.5 --icon=assets/img/glowing-bear.icns
2016-04-02 18:08:55 +02:00
2020-11-28 01:32:05 +01:00
build-electron-linux: build
2020-07-06 21:46:14 +02:00
electron-packager ${ELECTRON_COMMON} --platform=linux --arch=x64 --electron-version=9.0.5 --icon=assets/img/favicon.ico