refactor: build based vite alternative rollup
This commit is contained in:
1 parent
27a059e5dd
commit
2273453449
8 files changed
+126
-277
No files matched your search
@@ -0,0 +1,40 @@
|
||||
|
||||
/**
|
||||
* @type {import('electron-builder').Configuration}
|
||||
*/
|
||||
const config = {
|
||||
appId: "308487730@qq.com",
|
||||
asar: true,
|
||||
directories: {
|
||||
output: "release/${version}"
|
||||
},
|
||||
files: [
|
||||
"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