diff --git a/electron-builder.json b/electron-builder.json index a903c400..124db536 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -6,9 +6,9 @@ "output": "dist-release", "buildResources": "electron/resources/build" }, - "icon": "logo", "files": ["dist", "dist-electron"], "win": { + "icon": "logo.ico", "target": [ { "target": "nsis", @@ -43,6 +43,7 @@ "requestExecutionLevel": "user" }, "mac": { + "icon": "logo.icns", "target": [ { "target": "dmg", @@ -70,6 +71,7 @@ "hardenedRuntime": false }, "linux": { + "icon": "logo.icns", "desktop": "logo", "maintainer": "viarotel@qq.com", "category": "Utility", diff --git a/electron/resources/build/logo@128x128.png b/electron/resources/build/logo@128x128.png deleted file mode 100644 index ff6ef129..00000000 Binary files a/electron/resources/build/logo@128x128.png and /dev/null differ diff --git a/electron/resources/build/logo@16x16.png b/electron/resources/build/logo@16x16.png deleted file mode 100644 index f540509a..00000000 Binary files a/electron/resources/build/logo@16x16.png and /dev/null differ diff --git a/electron/resources/build/logo@256x256.png b/electron/resources/build/logo@256x256.png deleted file mode 100644 index 22bb69ff..00000000 Binary files a/electron/resources/build/logo@256x256.png and /dev/null differ diff --git a/electron/resources/build/logo@32x32.png b/electron/resources/build/logo@32x32.png deleted file mode 100644 index da98d314..00000000 Binary files a/electron/resources/build/logo@32x32.png and /dev/null differ diff --git a/electron/resources/build/logo@512x512.png b/electron/resources/build/logo@512x512.png deleted file mode 100644 index 20364935..00000000 Binary files a/electron/resources/build/logo@512x512.png and /dev/null differ diff --git a/electron/resources/build/logo@64x64.png b/electron/resources/build/logo@64x64.png deleted file mode 100644 index 0ba2059b..00000000 Binary files a/electron/resources/build/logo@64x64.png and /dev/null differ diff --git a/src/locales/index.js b/src/locales/index.js index e4bc8fd7..b86c2d35 100644 --- a/src/locales/index.js +++ b/src/locales/index.js @@ -1,8 +1,8 @@ import { createI18n } from 'vue-i18n' import messages from '@intlify/unplugin-vue-i18n/messages' -// const locale = window.electron?.process?.env?.LOCALE -const locale = 'en_US' +const locale = window.electron?.process?.env?.LOCALE +// const locale = 'en_US' // console.log('locale', locale)