diff --git a/app/build_mac.sh b/app/build_mac.sh index ba26fb1..67c38ab 100644 --- a/app/build_mac.sh +++ b/app/build_mac.sh @@ -1,3 +1,9 @@ #!/bin/bash -electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/icons/icon.icns --prune=true --out=../dist +./node_modules/.bin/electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/icons/icon.icns --prune=true --out=../dist +#build dmg for mac install +mkdir ../dist/installers +./node_modules/.bin/electron-installer-dmg ../dist/mcopy-darwin-x64 mcopy --out=../dist/installers --icon=assets/icons/icon.icns Path to the icon file that will be the app icon in the DMG window. +# --icon-size= How big to make the icon for the app in the DMG. [Default: `80`]. +# --background= Path to a PNG image to use as the background of the DMG. +#--overwrite Overwrite any existing DMG. \ No newline at end of file diff --git a/app/build_win.sh b/app/build_win.sh index 392c567..336cc8a 100644 --- a/app/build_win.sh +++ b/app/build_win.sh @@ -1,3 +1,5 @@ #!/bin/bash -./node_modules/.bin/electron-packager . mcopy --overwrite --asar=true --platform=win32 --arch=x64 --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 +./node_modules/.bin/electron-packager . mcopy --overwrite --asar=true --platform=win32 --arch=x64 --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" + +mkdir ../dist/installers \ No newline at end of file