Skip to content

Commit

Permalink
Improve app directory structure by moving node app's main directory i…
Browse files Browse the repository at this point in the history
…nto ./app/ Tidy further by moving icon and info.plist into resources directory
  • Loading branch information
joethephish committed Jun 8, 2016
1 parent e1cfdd2 commit 9a5be45
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions BUILD_PACKAGE.command
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ cd "`dirname "$0"`"
rm -rf Inky-darwin-x64/

# Create icon from PNG
./makeIcns.command
./resources/makeIcns.command

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
electron-packager app Inky --platform=darwin --icon=resources/Icon.icns --arch=x64 --extend-info=resources/info.plist --prune

# Remove .icns again
rm Icon.icns
rm resources/Icon.icns

# Create a zip file ready for upload
zip -r Inky-darwin-x64/Inky.app.zip Inky-darwin-x64/Inky.app
1 change: 1 addition & 0 deletions INSTALL_AND_RUN.command
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
cd "`dirname "$0"`"
cd app
npm install && npm start
4 changes: 2 additions & 2 deletions package.json → app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"productName": "Inky",
"version": "1.0.0",
"description": "An editor for ink",
"main": "app/main-process/main.js",
"main": "main-process/main.js",
"scripts": {
"start": "electron app/main-process/main.js"
"start": "electron main-process/main.js"
},
"repository": {
"type": "git",
Expand Down
File renamed without changes
File renamed without changes.
2 changes: 2 additions & 0 deletions makeIcns.command → resources/makeIcns.command
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cd "`dirname "$0"`"

# http://stackoverflow.com/questions/12306223/how-to-manually-create-icns-files-using-iconutil
mkdir Icon.iconset
sips -z 16 16 Icon1024.png --out Icon.iconset/icon_16x16.png
Expand Down

0 comments on commit 9a5be45

Please sign in to comment.