diff --git a/package.json b/package.json index 323b899..ba7917b 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "buildreact": "browserify ./app/app.js -t babelify -o static/js/bundle.js", "postinstall": "electron-rebuild", "clean": "rimraf build", - "pack": "npm run buildreact && npm run clean && electron-packager . wallpaper-switcher --platform=win32 --arch=x64 --overwrite --out=build --ignore=\"\\.gitignore\" --ignore=\".*\\.sublime-project\" --ignore=\".*\\.sublime-workspace\" --ignore=\"\\.tern-project\" --ignore=\"app/\"" + "pack": "npm run buildreact && npm run clean && electron-packager . wallpaper-switcher --platform=win32 --arch=x64 --overwrite --out=build --icon=static/res/icon.ico --ignore=\"\\.gitignore\" --ignore=\".*\\.sublime-project\" --ignore=\".*\\.sublime-workspace\" --ignore=\"\\.tern-project\" --ignore=\"app/\"" }, "keywords": [ "Electron", diff --git a/service.js b/service.js index 71f3048..2666806 100644 --- a/service.js +++ b/service.js @@ -318,7 +318,7 @@ exports.installService = function() { }); const val = isDev ? `"${process.execPath}" "${process.cwd()}" service` - : `"${process.execPath} service"`; + : `"${process.execPath}" service`; key.set("Wallpaper Switcher Daemon", Registry.REG_SZ, val, (err) => { if(err) { console.error("Install failed: %s", err.message); diff --git a/static/res/icon.ico b/static/res/icon.ico new file mode 100644 index 0000000..bc8cce1 Binary files /dev/null and b/static/res/icon.ico differ