diff --git a/package.json b/package.json index 1817f25..35d556f 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint", - "electron:build": "vue-cli-service electron:build -mwl", + "electron:build": "vue-cli-service electron:build -mwl -p never", "electron:serve": "vue-cli-service electron:serve", "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", diff --git a/vue.config.js b/vue.config.js index 3a4cf94..2a0e7e5 100644 --- a/vue.config.js +++ b/vue.config.js @@ -57,7 +57,16 @@ module.exports = { // 版权 copyright: 'Copyright © YesPlayMusic', compression: "maximum", - publish: ["github"], + publish: [ + { + "provider": "github", + "owner": "qier222", + "repo": "YesPlayMusic", + "vPrefixedTagName": true, + "private": true, + "releaseType": "draft" + } + ], // Compress app using 'electron/asar' asar: true, @@ -67,7 +76,22 @@ module.exports = { }, // window 的 icon 头标 win: { - icon: 'public/img/icons/512x512.png' + publisherName: 'Yes Play Music', + icon: 'public/img/icons/512x512.png', + publish: [ + "github" + ], + }, + // linux 的配置 + linux: { + "target": [ + "AppImage", + "tar.gz", + "deb" + ] + }, + "dmg": { + "icon": "build/icons/icon.icns" }, // 是否静默安装 nsis: { @@ -76,8 +100,6 @@ module.exports = { // 允许修改安装目录,建议为 true,是否允许用户改变安装目录,默认是不允许 allowToChangeInstallationDirectory: true }, - // 集成 nodejs, https://nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration - // nodeIntegration: true }, // 主线程的配置文件 chainWebpackMainProcess: config => {