Skip to content

Commit

Permalink
Improve package script to ignore unwanted files
Browse files Browse the repository at this point in the history
  • Loading branch information
joethephish committed Jun 8, 2016
1 parent d1a3fcb commit e1cfdd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
*.sublime-workspace
Inky-darwin-x64
UploadToMisc.command
7 changes: 5 additions & 2 deletions BUILD_PACKAGE.command
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ rm -rf Inky-darwin-x64/
# Create icon from PNG
./makeIcns.command

electron-packager . Inky --platform=darwin --icon=Icon.icns --arch=x64 --extend-info=info.plist
electron-packager . Inky --platform=darwin --icon=Icon.icns --arch=x64 --extend-info=info.plist --ignore='.command$|inky\.sublime|.md$|Icon1024.png|Info.plist|Inky-darwin-x64|.zip$' --prune

# Remove .icns again
rm Icon.icns
rm Icon.icns

# Create a zip file ready for upload
zip -r Inky-darwin-x64/Inky.app.zip Inky-darwin-x64/Inky.app

0 comments on commit e1cfdd2

Please sign in to comment.