diff --git a/assets/icon.png b/assets/icon.png new file mode 100644 index 0000000..ce779aa Binary files /dev/null and b/assets/icon.png differ diff --git a/package.json b/package.json index c28bf04..5cce26c 100644 --- a/package.json +++ b/package.json @@ -60,8 +60,8 @@ "scripts": { "start": "electron .", "dist": "npm run png2icns && build", - "svg-to-png": "svgpng assets/icon.svg dist/icon.png -w 512 -h 512", - "png2icns": "npm run svg-to-png && png2icns dist/icon.png -s 16,32,63,128,256 -o assets/icon.icns" + "svg-to-png": "svgpng assets/icon.svg assets/icon.png -w 512 -h 512", + "png2icns": "npm run svg-to-png && png2icns assets/icon.png -s 16,32,63,128,256 -o assets/icon.icns" }, "build": { "appId": "com.pablopunk.serve-bar", diff --git a/src/app.js b/src/app.js index a96d5fb..ec7a218 100644 --- a/src/app.js +++ b/src/app.js @@ -59,7 +59,8 @@ const notifyServerSuccess = pathname => { notifier.notify({ title: 'On browser and clipboard!', message: `Now you are sharing "${path.basename(pathname)}"`, - wait: false + wait: false, + icon: path.join(__dirname, '..', 'assets', 'icon.png') }) } @@ -67,7 +68,8 @@ const notifyServerAlreadyExists = pathname => { notifier.notify({ title: 'Duplicate server!', message: `You are already sharing this folder "${path.basename(pathname)}"`, - wait: false + wait: false, + icon: path.join(__dirname, '..', 'assets', 'icon.png') }) }