From 97de9c3eecbc95343d7e2de693b35794ab1bd13d Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Tue, 22 Oct 2024 15:39:11 +0100 Subject: [PATCH] fix: update macos entitlements and remove old sharp files rules --- apps/app/entitlements.mac.plist | 18 ++++++++++++- apps/app/package.json | 35 +++----------------------- apps/tsr-bridge/entitlements.mac.plist | 18 ++++++++++++- apps/tsr-bridge/package.json | 35 +++----------------------- 4 files changed, 40 insertions(+), 66 deletions(-) diff --git a/apps/app/entitlements.mac.plist b/apps/app/entitlements.mac.plist index 67ebe4ec..ca5a4be9 100644 --- a/apps/app/entitlements.mac.plist +++ b/apps/app/entitlements.mac.plist @@ -2,9 +2,25 @@ - com.apple.security.cs.allow-unsigned-executable-memory + com.apple.security.cs.allow-dyld-environment-variables com.apple.security.cs.disable-library-validation + com.apple.security.cs.allow-jit + + com.apple.security.cs.allow-unsigned-executable-memory + + com.apple.security.cs.debugger + + com.apple.security.network.client + + com.apple.security.network.server + + com.apple.security.files.user-selected.read-only + + com.apple.security.inherit + + com.apple.security.automation.apple-events + diff --git a/apps/app/package.json b/apps/app/package.json index a6936a20..aa161477 100644 --- a/apps/app/package.json +++ b/apps/app/package.json @@ -129,39 +129,10 @@ "hardenedRuntime": true, "gatekeeperAssess": false, "entitlements": "entitlements.mac.plist", - "entitlementsInherit": "entitlements.mac.plist", - "extraFiles": [ - { - "from": "../../node_modules/sharp/vendor/8.13.3/darwin-x64/lib", - "to": "Frameworks", - "filter": [ - "!glib-2.0/**/*" - ] - } - ] - }, - "win": { - "extraFiles": [ - { - "from": "../../node_modules/sharp/build/Release", - "to": ".", - "filter": [ - "lib*.dll" - ] - } - ] - }, - "linux": { - "extraFiles": [ - { - "from": "../../node_modules/sharp/vendor/8.13.3/linux-x64/lib", - "to": ".", - "filter": [ - "libvips*.so.*" - ] - } - ] + "entitlementsInherit": "entitlements.mac.plist" }, + "win": {}, + "linux": {}, "dmg": { "artifactName": "SuperConductor ${version} macOS Installer.${ext}" }, diff --git a/apps/tsr-bridge/entitlements.mac.plist b/apps/tsr-bridge/entitlements.mac.plist index 67ebe4ec..ca5a4be9 100644 --- a/apps/tsr-bridge/entitlements.mac.plist +++ b/apps/tsr-bridge/entitlements.mac.plist @@ -2,9 +2,25 @@ - com.apple.security.cs.allow-unsigned-executable-memory + com.apple.security.cs.allow-dyld-environment-variables com.apple.security.cs.disable-library-validation + com.apple.security.cs.allow-jit + + com.apple.security.cs.allow-unsigned-executable-memory + + com.apple.security.cs.debugger + + com.apple.security.network.client + + com.apple.security.network.server + + com.apple.security.files.user-selected.read-only + + com.apple.security.inherit + + com.apple.security.automation.apple-events + diff --git a/apps/tsr-bridge/package.json b/apps/tsr-bridge/package.json index eb31617e..b798801a 100644 --- a/apps/tsr-bridge/package.json +++ b/apps/tsr-bridge/package.json @@ -67,39 +67,10 @@ "hardenedRuntime": true, "gatekeeperAssess": false, "entitlements": "entitlements.mac.plist", - "entitlementsInherit": "entitlements.mac.plist", - "extraFiles": [ - { - "from": "../../node_modules/sharp/vendor/8.13.3/darwin-x64/lib", - "to": "Frameworks", - "filter": [ - "!glib-2.0/**/*" - ] - } - ] - }, - "win": { - "extraFiles": [ - { - "from": "../../node_modules/sharp/build/Release", - "to": ".", - "filter": [ - "lib*.dll" - ] - } - ] - }, - "linux": { - "extraFiles": [ - { - "from": "../../node_modules/sharp/vendor/8.13.3/linux-x64/lib", - "to": ".", - "filter": [ - "libvips*.so.*" - ] - } - ] + "entitlementsInherit": "entitlements.mac.plist" }, + "win": {}, + "linux": {}, "dmg": { "artifactName": "TSR-Bridge ${version} macOS Installer.${ext}" },