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:
parent
c8c083054e
commit
4fb790c338
|
@ -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
|
|
@ -1,21 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
mkdir ../../mcopy_build_mac/Electron.app/Contents/Resources/app/css
|
electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/icons/icon.icns --prune=true --out=../dist
|
||||||
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
|
|
||||||
|
|
|
@ -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"
|
Loading…
Reference in New Issue