Skip to content

Commit

Permalink
build for both intel and arm macs
Browse files Browse the repository at this point in the history
  • Loading branch information
hatton committed Jun 15, 2024
1 parent 0a3c3af commit c00825b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions electron-builder.json5
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,25 @@
artifactName: "${productName} Windows Setup ${version}.${ext}"
},
mac: {
target: "dmg",
mergeASARs: true,
target: { target: "default", arch: ["universal"] },
icon: "build/mac.icns",
hardenedRuntime: true,
artifactName: "${productName}-mac-${version}.${ext}",
extraResources: [
"node_modules/ffprobe-static/bin/darwin/x64",
"node_modules/ffprobe-static/bin/darwin/arm64"
{
from: "node_modules/ffprobe-static/bin/darwin/x64",
to: "Resources/ffprobe/x64",
filter: ["**"]
},
{
from: "node_modules/ffprobe-static/bin/darwin/arm64",
to: "Resources/ffprobe/arm64",
filter: ["**"]
}
],
x64ArchFiles: "Resources/ffprobe/x64/**",

fileAssociations: [
{
ext: "sprj",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"main": "dist/src/mainProcess/main.js",
"name": "lameta",
"productName": "lameta",
"version": "2.3.5-beta",
"version": "2.3.6-beta",
"author": {
"name": "lameta",
"email": "[email protected]"
Expand Down

0 comments on commit c00825b

Please sign in to comment.