Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
feature: zip the app
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanee committed May 31, 2015
1 parent b2013a1 commit 6b73477
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
WeBuildSG.app
WeBuildSG*
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var mb = menubar({
width: 400,
height: 480,
index: 'file://' + path.join(__dirname, 'index.html'),
icon: 'Icon.png'
icon: path.join(__dirname, 'Icon.png')
});

mb.on('ready', function ready () {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "a tiny os x menubar app to display the upcoming events and recently updated repos from webuild.sg",
"main": "index.js",
"scripts": {
"build": "rm -rf WeBuildSG.app && electron-packager . WeBuildSG --platform=darwin --arch=x64 --version=0.26.0 --ignore=node_modules/electron --icon=Icon.icns",
"zip": "zip -ryXq WeBuildSG.app.zip WeBuildSG.app",
"build": "rm -rf WeBuildSG.app && electron-packager . WeBuildSG --platform=darwin --arch=x64 --version=0.26.0 --ignore=node_modules/electron --icon=Icon.icns && npm run zip",
"start": "electron .",
"test": "jshint index.js --config .jshintrc"
},
Expand Down

0 comments on commit 6b73477

Please sign in to comment.