Skip to content

Commit

Permalink
add build scripts & app icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaizhi Wei committed Jul 21, 2015
1 parent e2aac03 commit b257ebf
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
Binary file added assets/logo.icns
Binary file not shown.
Binary file added assets/logo.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="ja">
<html lang="en">

<head>
<meta charset="UTF-8">
Expand Down
11 changes: 5 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,16 @@ var mb = Menubar({
dir: __dirname,
preloadWindow: true,
width: 400, //400
height: 600,
resizable: true
height: 400,
resizable: false
});

mb.on('ready', function () {
});

mb.on('after-create-window', function () {
mb.window.setResizable(false);
mb.window.openDevTools({
detach: false
});
// mb.window.openDevTools({
// detach: false
// });
});

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "gulp"
"start": "gulp",
"build-osx": "electron-packager compile/ Presets --platform=darwin --arch=x64 --version=0.30.0 --icon=assets/logo.icns --overwrite",
"build-win": "electron-packager compile/ Presets --platform=win32 --arch=x64 --version=0.30.0 --icon=assets/logo.ico --overwrite"
},
"repository": {
"type": "git",
Expand All @@ -28,7 +30,7 @@
},
"devDependencies": {
"browserify": "^10.1.3",
"electron-prebuilt": "^0.28.1",
"electron-prebuilt": "^0.30.0",
"gulp": "^3.8.11",
"gulp-atom": "^0.1.0",
"gulp-install": "^0.4.0",
Expand Down

0 comments on commit b257ebf

Please sign in to comment.