support intel
This commit is contained in:
parent
dee4f4a3b5
commit
ca6293935c
@ -34,3 +34,15 @@ mac:
|
|||||||
category: public.app-category.utilities
|
category: public.app-category.utilities
|
||||||
# Path to the .icns icon file
|
# Path to the .icns icon file
|
||||||
icon: src/assets/logo.icns
|
icon: src/assets/logo.icns
|
||||||
|
# Target both Intel and Apple Silicon architectures
|
||||||
|
target:
|
||||||
|
- target: dmg
|
||||||
|
arch:
|
||||||
|
- x64
|
||||||
|
- arm64
|
||||||
|
- target: zip
|
||||||
|
arch:
|
||||||
|
- x64
|
||||||
|
- arm64
|
||||||
|
# Minimum macOS version (supports both Intel and Apple Silicon)
|
||||||
|
minimumSystemVersion: '11.0'
|
||||||
|
@ -5,25 +5,26 @@ const { notarizeApp } = require('./notarize');
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
packagerConfig: {
|
packagerConfig: {
|
||||||
asar: {
|
asar: {
|
||||||
unpack:
|
unpack: '**/*.node,**/*.dylib,' + '**/node_modules/{sharp,@img}/**/*',
|
||||||
'**/*.node,**/*.dylib,' +
|
|
||||||
'**/node_modules/{sharp,@img}/**/*'
|
|
||||||
},
|
},
|
||||||
extraResource: ['./src/assets/SystemAudioDump', './pickleglass_web/out'],
|
extraResource: ['./src/assets/SystemAudioDump', './pickleglass_web/out'],
|
||||||
name: 'Glass',
|
name: 'Glass',
|
||||||
icon: 'src/assets/logo',
|
icon: 'src/assets/logo',
|
||||||
appBundleId: 'com.pickle.glass',
|
appBundleId: 'com.pickle.glass',
|
||||||
|
arch: 'universal',
|
||||||
protocols: [
|
protocols: [
|
||||||
{
|
{
|
||||||
name: 'PickleGlass Protocol',
|
name: 'PickleGlass Protocol',
|
||||||
schemes: ['pickleglass']
|
schemes: ['pickleglass'],
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
asarUnpack: [
|
asarUnpack: [
|
||||||
"**/*.node",
|
'**/*.node',
|
||||||
"**/*.dylib",
|
'**/*.dylib',
|
||||||
"node_modules/@img/sharp-darwin-arm64/**",
|
'node_modules/@img/sharp-darwin-x64/**',
|
||||||
"node_modules/@img/sharp-libvips-darwin-arm64/**"
|
'node_modules/@img/sharp-libvips-darwin-x64/**',
|
||||||
|
'node_modules/@img/sharp-darwin-arm64/**',
|
||||||
|
'node_modules/@img/sharp-libvips-darwin-arm64/**',
|
||||||
],
|
],
|
||||||
osxSign: {
|
osxSign: {
|
||||||
identity: process.env.APPLE_SIGNING_IDENTITY,
|
identity: process.env.APPLE_SIGNING_IDENTITY,
|
||||||
@ -35,8 +36,8 @@ module.exports = {
|
|||||||
tool: 'notarytool',
|
tool: 'notarytool',
|
||||||
appleId: process.env.APPLE_ID,
|
appleId: process.env.APPLE_ID,
|
||||||
appleIdPassword: process.env.APPLE_ID_PASSWORD,
|
appleIdPassword: process.env.APPLE_ID_PASSWORD,
|
||||||
teamId: process.env.APPLE_TEAM_ID
|
teamId: process.env.APPLE_TEAM_ID,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
rebuildConfig: {},
|
rebuildConfig: {},
|
||||||
makers: [
|
makers: [
|
||||||
|
@ -65,5 +65,9 @@
|
|||||||
"electron-builder": "^26.0.12",
|
"electron-builder": "^26.0.12",
|
||||||
"electron-reloader": "^1.2.3",
|
"electron-reloader": "^1.2.3",
|
||||||
"esbuild": "^0.25.5"
|
"esbuild": "^0.25.5"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"@img/sharp-darwin-x64": "^0.34.2",
|
||||||
|
"@img/sharp-libvips-darwin-x64": "^1.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user