Skip to content

Commit

Permalink
master:Added assets, modified build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
DKunin committed Apr 12, 2017
1 parent 7e46c6f commit 05514eb
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## Menubar Helper

curl $(localip):7288/openeditor?options='*.js:20:1'
<img src="./assets/images/eye.png" width="200px">

- curl $(localip):7288/openeditor?options='*.js:20:1'
Binary file added assets/images/favicon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icon-128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icon-16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icon.icns
Binary file not shown.
Binary file added assets/images/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions bin/prepeare-icons
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

sizes=( 128 16 )

for i in "${sizes[@]}"
do
ffmpeg -i ./assets/images/icon.png -vf scale=$i:$i ./assets/images/icon-$i.png
done

ffmpeg -i ./assets/images/icon.png -vf scale=16:16 ./assets/images/favicon.png
Binary file removed icon.png
Binary file not shown.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
"check-style": "eslint ./src",
"pretty": "prettier ./src/*.js --single-quote --tab-width 4 --write",
"test": "npm run pretty && npm run check-style",
"build-mac": "rm -rf ./build/*darwin*; electron-packager . MenuBarHelper --out=./build --platform=darwin --arch=x64 --version=1.4.11 --icon=./res/logo.icns --overwrite",
"build-win": "rm -rf ./build/*win32*; electron-packager . MenuBarHelper --out=./build --platform=win32 --arch=x64 --version=1.4.11 --icon=./res/logo.icns --overwrite",
"build": "npm run build-mac",
"build": "rm -rf ./build/*darwin*; electron-packager . MenuBarHelper --out=./build --platform=darwin --arch=x64 --icon=./assets/images/icon.icns --overwrite",
"package": "create-dmg 'build/MenuBarHelper-darwin-x64/MenuBarHelper.app' && mv ./*.dmg ./build",
"start": "electron ."
}
}
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
margin: 10px 0;
}
</style>
<link rel="shortcut icon" href="../assets/images/favicon.png" type="image/png">
</head>
<body>
<form>
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ app.on('ready', function() {
win.loadURL('file://' + __dirname + '/index.html');
// win.webContents.openDevTools();
// appIcon = new Tray(iconPath.inactive);
appIcon = new Tray(path.resolve(__dirname, '../icon.png'));
appIcon = new Tray(path.resolve(__dirname, '../assets/images/icon-16.png'));

startServer();

Expand Down

0 comments on commit 05514eb

Please sign in to comment.