Skip to content

Commit

Permalink
Use universal binary
Browse files Browse the repository at this point in the history
  • Loading branch information
morishin committed Oct 18, 2024
1 parent 8184e9d commit 8a79cb3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions build/entitlement.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
</dict>
</plist>
7 changes: 5 additions & 2 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ win:
- nsis

mac:
singleArchFiles: "*"
target:
- zip
- dmg
- target: dmg
arch: universal
- target: zip
arch: universal
category: public.app-category.developer-tools
hardenedRuntime: true
entitlements: ./build/entitlement.plist
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"lint:tsc": "tsc --noEmit",
"lint:prettier": "prettier --list-different \"./**/*.{js,jsx,ts,tsx,css,json}\"",
"format": "prettier --write \"./**/*.{js,jsx,ts,tsx,css,json}\"",
"release:prepare": "webpack --env BUILD_ENV=production --mode=production && electron-builder build --x64 --publish always",
"release:prepare": "webpack --env BUILD_ENV=production --mode=production && electron-builder build --publish always",
"ci": "yarn run lint && yarn run test:unit"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/notarize.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = async function () {
return;
}

const appPath = path.resolve(__dirname, "../dist/production/mac/Bdash.app");
const appPath = path.resolve(__dirname, "../dist/production/mac-universal/Bdash.app");

if (!fs.existsSync(appPath)) {
throw new Error(`Cannot find application at: ${appPath}`);
Expand Down

0 comments on commit 8a79cb3

Please sign in to comment.