Skip to content

Commit 3c5820c

Browse files
remove dup
1 parent 7eca6ac commit 3c5820c

3 files changed

Lines changed: 16 additions & 34 deletions

File tree

dist/index.js

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -59215,22 +59215,13 @@ async function getDefaultEntitlementsMacOS(projectRef) {
5921559215
};
5921659216
break;
5921759217
default:
59218-
if (projectRef.isSteamBuild) {
59219-
defaultEntitlements = {
59220-
'com.apple.security.cs.disable-library-validation': true,
59221-
'com.apple.security.cs.allow-dyld-environment-variables': true,
59222-
'com.apple.security.cs.disable-executable-page-protection': true,
59223-
};
59224-
}
59225-
else {
59226-
defaultEntitlements = {
59227-
'com.apple.security.cs.allow-jit': true,
59228-
'com.apple.security.cs.allow-unsigned-executable-memory': true,
59229-
'com.apple.security.cs.allow-dyld-environment-variables': true,
59230-
'com.apple.security.cs.disable-library-validation': true,
59231-
'com.apple.security.cs.disable-executable-page-protection': true,
59232-
};
59233-
}
59218+
defaultEntitlements = {
59219+
'com.apple.security.cs.allow-jit': true,
59220+
'com.apple.security.cs.allow-unsigned-executable-memory': true,
59221+
'com.apple.security.cs.allow-dyld-environment-variables': true,
59222+
'com.apple.security.cs.disable-library-validation': true,
59223+
'com.apple.security.cs.disable-executable-page-protection': true,
59224+
};
5923459225
break;
5923559226
}
5923659227
await fs.promises.writeFile(entitlementsPath, plist.build(defaultEntitlements));

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/xcode.ts

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -866,23 +866,14 @@ async function getDefaultEntitlementsMacOS(projectRef: XcodeProject): Promise<vo
866866
};
867867
break;
868868
default:
869-
if (projectRef.isSteamBuild) {
870-
// steam: https://partner.steamgames.com/doc/store/application/platforms#3
871-
defaultEntitlements = {
872-
'com.apple.security.cs.disable-library-validation': true,
873-
'com.apple.security.cs.allow-dyld-environment-variables': true,
874-
'com.apple.security.cs.disable-executable-page-protection': true,
875-
};
876-
} else {
877-
// use default hardened runtime entitlements
878-
defaultEntitlements = {
879-
'com.apple.security.cs.allow-jit': true,
880-
'com.apple.security.cs.allow-unsigned-executable-memory': true,
881-
'com.apple.security.cs.allow-dyld-environment-variables': true,
882-
'com.apple.security.cs.disable-library-validation': true,
883-
'com.apple.security.cs.disable-executable-page-protection': true,
884-
};
885-
}
869+
// use default hardened runtime entitlements
870+
defaultEntitlements = {
871+
'com.apple.security.cs.allow-jit': true,
872+
'com.apple.security.cs.allow-unsigned-executable-memory': true,
873+
'com.apple.security.cs.allow-dyld-environment-variables': true,
874+
'com.apple.security.cs.disable-library-validation': true,
875+
'com.apple.security.cs.disable-executable-page-protection': true,
876+
};
886877
break;
887878
}
888879
await fs.promises.writeFile(entitlementsPath, plist.build(defaultEntitlements));

0 commit comments

Comments
 (0)