refactor: electron-builder use npm command
This commit is contained in:
1 parent
2820bdb760
commit
67f1d00193
4 files changed
+36
-47
No files matched your search
@@ -1,33 +0,0 @@
|
||||
/**
|
||||
* @type {import('electron-builder').Configuration}
|
||||
*/
|
||||
const config = {
|
||||
appId: '308487730@qq.com',
|
||||
asar: true,
|
||||
directories: {
|
||||
output: 'release/${version}',
|
||||
buildResources: 'public',
|
||||
},
|
||||
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