Skip to content

Commit c11c069

Browse files
authored
fix: restrict entitlements used for helper.app (#312734)
1 parent 13e84c2 commit c11c069

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.cs.allow-jit</key>
6+
<true/>
7+
</dict>
8+
</plist>

build/darwin/sign.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ function getEntitlementsForFile(filePath: string): string {
2525
return path.join(baseDir, 'azure-pipelines', 'darwin', 'helper-renderer-entitlements.plist');
2626
} else if (filePath.includes(' Helper (Plugin).app')) {
2727
return path.join(baseDir, 'azure-pipelines', 'darwin', 'helper-plugin-entitlements.plist');
28+
} else if (filePath.includes(' Helper.app')) {
29+
return path.join(baseDir, 'azure-pipelines', 'darwin', 'helper-entitlements.plist');
2830
}
2931
return path.join(baseDir, 'azure-pipelines', 'darwin', 'app-entitlements.plist');
3032
}

0 commit comments

Comments
 (0)