mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-22 12:32:07 +08:00
feat: update electron build options
This commit is contained in:
parent
ab96e6948f
commit
0ca7139ea4
|
@ -8,7 +8,7 @@
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
"lint": "vue-cli-service lint",
|
"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:serve": "vue-cli-service electron:serve",
|
||||||
"electron:buildicon": "electron-icon-builder --input=./public/img/icons/android-chrome-512x512.png --output=build --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",
|
"electron:publish": "vue-cli-service electron:build -p always",
|
||||||
|
|
|
@ -57,7 +57,16 @@ module.exports = {
|
||||||
// 版权
|
// 版权
|
||||||
copyright: 'Copyright © YesPlayMusic',
|
copyright: 'Copyright © YesPlayMusic',
|
||||||
compression: "maximum",
|
compression: "maximum",
|
||||||
publish: ["github"],
|
publish: [
|
||||||
|
{
|
||||||
|
"provider": "github",
|
||||||
|
"owner": "qier222",
|
||||||
|
"repo": "YesPlayMusic",
|
||||||
|
"vPrefixedTagName": true,
|
||||||
|
"private": true,
|
||||||
|
"releaseType": "draft"
|
||||||
|
}
|
||||||
|
],
|
||||||
// Compress app using 'electron/asar'
|
// Compress app using 'electron/asar'
|
||||||
asar: true,
|
asar: true,
|
||||||
|
|
||||||
|
@ -67,7 +76,22 @@ module.exports = {
|
||||||
},
|
},
|
||||||
// window 的 icon 头标
|
// window 的 icon 头标
|
||||||
win: {
|
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: {
|
nsis: {
|
||||||
|
@ -76,8 +100,6 @@ module.exports = {
|
||||||
// 允许修改安装目录,建议为 true,是否允许用户改变安装目录,默认是不允许
|
// 允许修改安装目录,建议为 true,是否允许用户改变安装目录,默认是不允许
|
||||||
allowToChangeInstallationDirectory: true
|
allowToChangeInstallationDirectory: true
|
||||||
},
|
},
|
||||||
// 集成 nodejs, https://nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration
|
|
||||||
// nodeIntegration: true
|
|
||||||
},
|
},
|
||||||
// 主线程的配置文件
|
// 主线程的配置文件
|
||||||
chainWebpackMainProcess: config => {
|
chainWebpackMainProcess: config => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user