From 4fb790c3386e390469ddca62a1417f941e41eaeb Mon Sep 17 00:00:00 2001 From: mmcw-dev Date: Sat, 6 Jan 2018 17:49:09 -0500 Subject: [PATCH] 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. --- app/build_linux.sh | 3 +++ app/build_mac.sh | 20 +------------------- app/build_win.sh | 3 +++ 3 files changed, 7 insertions(+), 19 deletions(-) create mode 100644 app/build_linux.sh create mode 100644 app/build_win.sh diff --git a/app/build_linux.sh b/app/build_linux.sh new file mode 100644 index 0000000..0c532c3 --- /dev/null +++ b/app/build_linux.sh @@ -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 diff --git a/app/build_mac.sh b/app/build_mac.sh index 6962d98..ba26fb1 100644 --- a/app/build_mac.sh +++ b/app/build_mac.sh @@ -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 \ No newline at end of file +electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/icons/icon.icns --prune=true --out=../dist diff --git a/app/build_win.sh b/app/build_win.sh new file mode 100644 index 0000000..7bafd34 --- /dev/null +++ b/app/build_win.sh @@ -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" \ No newline at end of file