Add public folder support
This commit is contained in:
1 parent
a02c7c71fe
commit
8a7c9bef0b
5 files changed
+37
-29
No files matched your search
@@ -1,41 +1,33 @@
|
||||
|
||||
/**
|
||||
* @type {import('electron-builder').Configuration}
|
||||
*/
|
||||
const config = {
|
||||
appId: "308487730@qq.com",
|
||||
appId: '308487730@qq.com',
|
||||
asar: true,
|
||||
directories: {
|
||||
output: "release/${version}"
|
||||
output: 'release/${version}',
|
||||
buildResources: 'public',
|
||||
},
|
||||
files: [
|
||||
"!node_modules",
|
||||
"dist",
|
||||
"package.json"
|
||||
],
|
||||
files: ['!node_modules', 'dist', 'package.json'],
|
||||
mac: {
|
||||
artifactName: "${productName}_${version}.${ext}",
|
||||
target: [
|
||||
"dmg"
|
||||
]
|
||||
artifactName: '${productName}_${version}.${ext}',
|
||||
target: ['dmg'],
|
||||
},
|
||||
win: {
|
||||
target: [
|
||||
{
|
||||
target: "nsis",
|
||||
arch: [
|
||||
"x64"
|
||||
]
|
||||
}
|
||||
target: 'nsis',
|
||||
arch: ['x64'],
|
||||
},
|
||||
],
|
||||
artifactName: "${productName}_${version}.${ext}"
|
||||
artifactName: '${productName}_${version}.${ext}',
|
||||
},
|
||||
nsis: {
|
||||
oneClick: false,
|
||||
perMachine: false,
|
||||
allowToChangeInstallationDirectory: true,
|
||||
deleteAppDataOnUninstall: false
|
||||
}
|
||||
deleteAppDataOnUninstall: false,
|
||||
},
|
||||
}
|
||||
|
||||
export { config }
|
||||
Reference in new issue
Block a user