mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-08-25 22:31:20 +08:00
electron-builder use npm command
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
|
||||
/**
|
||||
* @type {import('electron-builder').Configuration}
|
||||
*/
|
||||
const config = {
|
||||
appId: "308487730@qq.com",
|
||||
asar: true,
|
||||
directories: {
|
||||
output: "release/${version}"
|
||||
},
|
||||
files: [
|
||||
"!node_modules",
|
||||
"dist",
|
||||
"package.json"
|
||||
],
|
||||
mac: {
|
||||
artifactName: "${productName}_${version}.${ext}",
|
||||
target: [
|
||||
"dmg"
|
||||
]
|
||||
},
|
||||
win: {
|
||||
target: [
|
||||
{
|
||||
target: "nsis",
|
||||
arch: [
|
||||
"x64"
|
||||
]
|
||||
}
|
||||
],
|
||||
artifactName: "${productName}_${version}.${ext}"
|
||||
},
|
||||
nsis: {
|
||||
oneClick: false,
|
||||
perMachine: false,
|
||||
allowToChangeInstallationDirectory: true,
|
||||
deleteAppDataOnUninstall: false
|
||||
}
|
||||
}
|
||||
|
||||
export { config }
|
Reference in New Issue
Block a user