build arm

pull/401/head
starknt 2024-11-22 11:38:45 +08:00
parent 73a5757500
commit c397e0204e
1 changed files with 15 additions and 3 deletions

View File

@ -77,7 +77,7 @@ module.exports = defineConfig({
appId: 'dev-sidecar',
productName: 'dev-sidecar',
// eslint-disable-next-line no-template-curly-in-string
artifactName: 'DevSidecar-${version}.${ext}',
artifactName: 'DevSidecar-${version}-${arch}.${ext}',
copyright: 'Copyright © 2020-2024 Greper, WangLiang',
nsis: {
oneClick: false,
@ -95,13 +95,25 @@ module.exports = defineConfig({
},
win: {
icon: 'build/icons/',
target: [
{
target: 'nsis',
arch: ['x64', 'ia32', 'arm64'],
},
],
// requestedExecutionLevel: 'highestAvailable' // 加了这个无法开机自启
},
linux: {
icon: 'build/mac/',
target: [
'deb',
'AppImage',
{
target: 'deb',
arch: ['x64', 'arm64'],
},
{
target: 'AppImage',
arch: ['x64', 'arm64'],
},
],
},
publish: {