diff --git a/build/icons/1024x1024.png b/build/icons/1024x1024.png new file mode 100644 index 0000000..f20aaf1 Binary files /dev/null and b/build/icons/1024x1024.png differ diff --git a/build/icons/128x128.png b/build/icons/128x128.png new file mode 100644 index 0000000..5d57494 Binary files /dev/null and b/build/icons/128x128.png differ diff --git a/build/icons/16x16.png b/build/icons/16x16.png new file mode 100644 index 0000000..ec10d15 Binary files /dev/null and b/build/icons/16x16.png differ diff --git a/build/icons/24x24.png b/build/icons/24x24.png new file mode 100644 index 0000000..0915087 Binary files /dev/null and b/build/icons/24x24.png differ diff --git a/build/icons/256x256.png b/build/icons/256x256.png new file mode 100644 index 0000000..185a5ea Binary files /dev/null and b/build/icons/256x256.png differ diff --git a/build/icons/32x32.png b/build/icons/32x32.png new file mode 100644 index 0000000..018c6dd Binary files /dev/null and b/build/icons/32x32.png differ diff --git a/build/icons/48x48.png b/build/icons/48x48.png new file mode 100644 index 0000000..c806745 Binary files /dev/null and b/build/icons/48x48.png differ diff --git a/build/icons/512x512.png b/build/icons/512x512.png new file mode 100644 index 0000000..0b6f725 Binary files /dev/null and b/build/icons/512x512.png differ diff --git a/build/icons/64x64.png b/build/icons/64x64.png new file mode 100644 index 0000000..6d07929 Binary files /dev/null and b/build/icons/64x64.png differ diff --git a/build/icons/icon.icns b/build/icons/icon.icns new file mode 100644 index 0000000..66eed86 Binary files /dev/null and b/build/icons/icon.icns differ diff --git a/build/icons/icon.ico b/build/icons/icon.ico new file mode 100644 index 0000000..d52b6a8 Binary files /dev/null and b/build/icons/icon.ico differ diff --git a/package.json b/package.json index 207e96f..1817f25 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,9 @@ "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint", - "electron:build": "vue-cli-service electron:build", + "electron:build": "vue-cli-service electron:build -mwl", "electron:serve": "vue-cli-service electron:serve", - "electron:buildicon": "electron-icon-builder --input=./public/img/icons/android-chrome-512x512.png --output=public/img/ --flatten", + "electron:buildicon": "electron-icon-builder --input=./public/img/icons/android-chrome-512x512.png --output=build --flatten", "electron:publish": "vue-cli-service electron:build -p always", "postinstall": "electron-builder install-app-deps", "postuninstall": "electron-builder install-app-deps", diff --git a/vue.config.js b/vue.config.js index 0f10e28..3a4cf94 100644 --- a/vue.config.js +++ b/vue.config.js @@ -67,7 +67,7 @@ module.exports = { }, // window 的 icon 头标 win: { - icon: 'public/favicon.ico' + icon: 'public/img/icons/512x512.png' }, // 是否静默安装 nsis: { diff --git a/yarn.lock b/yarn.lock index 5fcf151..697d434 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11046,11 +11046,12 @@ vue-class-component@^7.1.0: resolved "https://registry.yarnpkg.com/vue-class-component/-/vue-class-component-7.2.6.tgz#8471e037b8e4762f5a464686e19e5afc708502e4" integrity sha512-+eaQXVrAm/LldalI272PpDe3+i4mPis0ORiMYxF6Ae4hyuCh15W8Idet7wPUEs4N4YptgFHGys4UrgNQOMyO6w== -vue-cli-plugin-electron-builder@~2.0.0-rc.4: - version "2.0.0-rc.4" - resolved "https://registry.npm.taobao.org/vue-cli-plugin-electron-builder/download/vue-cli-plugin-electron-builder-2.0.0-rc.4.tgz#c819279e00fe6771912f5f0468ee26f279750a5b" - integrity sha1-yBknngD+Z3GRL18EaO4m8nl1Cls= +vue-cli-plugin-electron-builder@^2.0.0-rc.5: + version "2.0.0-rc.5" + resolved "https://registry.npm.taobao.org/vue-cli-plugin-electron-builder/download/vue-cli-plugin-electron-builder-2.0.0-rc.5.tgz#87cd8d09877f5f3ae339abc0bedc47d7d2b733ac" + integrity sha1-h82NCYd/XzrjOavAvtxH19K3M6w= dependencies: + "@vue/cli-shared-utils" "^4.5.6" chokidar "^3.0.2" electron-builder "^22.2.0" execa "^4.0.0"