refactor: build based vite alternative rollup

This commit is contained in:
草鞋没号 committed 2021-11-08 19:16:16 +08:00
1 parent 27a059e5dd
commit 2273453449
8 files changed
+126 -277

No files matched your search

+40
View File
@@ -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 }