支持 mac M1 arm 64:#207,#134; 支持右击菜单

This commit is contained in:
muwoo
2023-09-22 14:42:35 +08:00
parent 79e39018fd
commit 32c6cf5d1c
12 changed files with 473 additions and 82 deletions

View File

@@ -32,7 +32,7 @@ module.exports = {
],
// Use this to change the entry point of your app's render process. default src/[main|index].[js|ts]
builderOptions: {
productName: 'rubick2',
productName: 'rubick',
appId: 'com.muwoo.rubick',
compression: 'maximum',
directories: {
@@ -67,7 +67,13 @@ module.exports = {
},
mac: {
icon: 'public/icons/icon.icns',
target: ['dmg', 'zip'],
target: [
{
target: 'dmg',
arch: ['x64', 'arm64'],
},
],
artifactName: 'rubick-${version}-${arch}.dmg',
gatekeeperAssess: false,
entitlementsInherit: './release/entitlements.mac.plist',
entitlements: './release/entitlements.mac.plist',
@@ -79,11 +85,19 @@ module.exports = {
},
win: {
icon: 'public/icons/icon.ico',
target: 'nsis',
artifactName: 'rubick-Setup-${version}-${arch}.exe',
target: [
{
target: 'nsis',
arch: ['x64', 'ia32'],
},
],
},
nsis: {
shortcutName: 'rubick',
oneClick: false,
allowToChangeInstallationDirectory: true,
include: 'public/installer.nsh',
},
linux: {
icon: 'public/icons/',