chore: update entitlments for node binaries
This commit is contained in:
parent
c602c75f20
commit
b3c99136b0
2 changed files with 25 additions and 0 deletions
11
apps/desktop/entitlements.node.plist
Normal file
11
apps/desktop/entitlements.node.plist
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<!-- Minimal entitlements specifically for Node.js binary -->
|
||||
<key>com.apple.security.cs.allow-jit</key>
|
||||
<true/>
|
||||
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
@ -296,6 +296,20 @@ const config: ForgeConfig = {
|
|||
: {
|
||||
osxSign: {
|
||||
identity: process.env.CODESIGNING_IDENTITY,
|
||||
// Apply different entitlements based on file path
|
||||
optionsForFile: (filePath: string) => {
|
||||
// Apply minimal entitlements to Node binary
|
||||
if (filePath.includes('node-binaries')) {
|
||||
return {
|
||||
entitlements: './entitlements.node.plist',
|
||||
hardenedRuntime: true,
|
||||
};
|
||||
}
|
||||
// Use default entitlements for everything else
|
||||
// https://www.npmjs.com/package/@electron/osx-sign#opts
|
||||
// !still need to do any
|
||||
return null as any;
|
||||
},
|
||||
},
|
||||
// Notarization for macOS
|
||||
...(process.env.SKIP_NOTARIZATION === "true"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue