Scripts containing the first build steps for each of the platforms listed. Each will also need to be paired with a corresponding build tool that packages apps into .dmg, .deb and .msi installers.

This commit is contained in:
mmcw-dev 2018-01-06 17:49:09 -05:00
parent c8c083054e
commit 4fb790c338
3 changed files with 7 additions and 19 deletions

3
app/build_linux.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
electron-packager . mcopy --overwrite --asar=true --platform=linux --arch=x64 --icon=assets/icons/icon.png --prune=true --out=../dist

View File

@ -1,21 +1,3 @@
#!/bin/bash
mkdir ../../mcopy_build_mac/Electron.app/Contents/Resources/app/css
mkdir ../../mcopy_build_mac/Electron.app/Contents/Resources/app/data
mkdir ../../mcopy_build_mac/Electron.app/Contents/Resources/app/fonts
mkdir ../../mcopy_build_mac/Electron.app/Contents/Resources/app/js
mkdir ../../mcopy_build_mac/Electron.app/Contents/Resources/app/lib
mkdir ../../mcopy_build_mac/Electron.app/Contents/Resources/app/logs
cp -R ./css/* ../../mcopy_build_mac/Electron.app/Contents/Resources/app/css
cp -R ./fonts/* ../../mcopy_build_mac/Electron.app/Contents/Resources/app/fonts
cp -R ./js/* ../../mcopy_build_mac/Electron.app/Contents/Resources/app/js
cp -R ./lib/* ../../mcopy_build_mac/Electron.app/Contents/Resources/app/lib
cp ./data/cfg.json.default ../../mcopy_build_mac/Electron.app/Contents/Resources/app/data/
cp ./index.html ../../mcopy_build_mac/Electron.app/Contents/Resources/app/
cp ./main.js ../../mcopy_build_mac/Electron.app/Contents/Resources/app/
cp ./package.json ../../mcopy_build_mac/Electron.app/Contents/Resources/app/
cd ../../mcopy_build_mac/Electron.app/Contents/Resources/app/ && npm install && ./node_modules/.bin/electron-rebuild
electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/icons/icon.icns --prune=true --out=../dist

3
app/build_win.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
electron-packager . mcopy --overwrite --asar=true --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out=../dist --version-string.CompanyName="sixteenmillimeter.com" --version-string.FileDescription="Open Source Optical Printer Platform" --version-string.ProductName="mcopy"