Skip to content

Commit

Permalink
BUILD_FOR_MAC script now builds a DMG too
Browse files Browse the repository at this point in the history
  • Loading branch information
joethephish committed Jun 6, 2017
1 parent 8522676 commit 5bffb31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions BUILD_FOR_MAC.command
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ cd "`dirname "$0"`"

# Clean
rm -rf Inky-darwin-x64/
rm ReleaseUpload/Inky_mac.dmg

# Ensure it's correctly/fully installed first
( cd app && npm install )
Expand All @@ -18,5 +19,11 @@ rm -rf Inky-darwin-x64/
# Mac
electron-packager app Inky --platform=darwin --arch=x64 --icon=resources/Icon.icns --extend-info=resources/info.plist --app-bundle-id=com.inkle.inky --prune --asar.unpackDir="main-process/ink" --ignore="inklecate_win.exe"

# Create a DMG
# Requires appdmg: npm install -g appdmg
# https://www.npmjs.com/package/appdmg
mkdir -p ReleaseUpload
appdmg resources/appdmg.json ReleaseUpload/Inky_mac.dmg

# Remove .icns again
rm resources/Icon.icns

0 comments on commit 5bffb31

Please sign in to comment.