diff --git a/Makefile b/Makefile index 9c036e83..9e68c83d 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ $(TARGET)-universal: MACOSX_DEPLOYMENT_TARGET="10.11" cargo build --release --target=x86_64-apple-darwin MACOSX_DEPLOYMENT_TARGET="10.11" cargo build --release --target=aarch64-apple-darwin @lipo target/{x86_64,aarch64}-apple-darwin/release/$(TARGET) -create -output $(APP_BINARY) - /usr/bin/codesign -vvv --deep --strict --options=runtime --force -s FAC8FBEA99169DC1980731029648F110628D6A32 $(APP_BINARY) + /usr/bin/codesign -vvv --deep --entitlements $(ASSETS_DIR)/entitlements.plist --strict --options=runtime --force -s FAC8FBEA99169DC1980731029648F110628D6A32 $(APP_BINARY) app: $(APP_NAME)-native ## Create an Alacritty.app app-universal: $(APP_NAME)-universal ## Create a universal Alacritty.app @@ -44,7 +44,7 @@ $(APP_NAME)-%: $(TARGET)-% @echo "Created '$(APP_NAME)' in '$(APP_DIR)'" xattr -c $(APP_DIR)/$(APP_NAME)/Contents/Info.plist xattr -c $(APP_DIR)/$(APP_NAME)/Contents/Resources/lapce.icns - /usr/bin/codesign -vvv --deep --strict --options=runtime --force -s FAC8FBEA99169DC1980731029648F110628D6A32 $(APP_DIR)/$(APP_NAME) + /usr/bin/codesign -vvv --deep --entitlements $(ASSETS_DIR)/entitlements.plist --strict --options=runtime --force -s FAC8FBEA99169DC1980731029648F110628D6A32 $(APP_DIR)/$(APP_NAME) dmg: $(DMG_NAME)-native ## Create an Alacritty.dmg dmg-universal: $(DMG_NAME)-universal ## Create a universal Alacritty.dmg @@ -57,7 +57,7 @@ $(DMG_NAME)-%: $(APP_NAME)-% -srcfolder $(APP_DIR) \ -ov -format UDZO @echo "Packed '$(APP_NAME)' in '$(APP_DIR)'" - /usr/bin/codesign -vvv --deep --strict --options=runtime --force -s FAC8FBEA99169DC1980731029648F110628D6A32 $(DMG_DIR)/$(DMG_NAME) + /usr/bin/codesign -vvv --deep --entitlements $(ASSETS_DIR)/entitlements.plist --strict --options=runtime --force -s FAC8FBEA99169DC1980731029648F110628D6A32 $(DMG_DIR)/$(DMG_NAME) install: $(INSTALL)-native ## Mount disk image install-universal: $(INSTALL)-native ## Mount universal disk image diff --git a/extra/entitlements.plist b/extra/entitlements.plist new file mode 100644 index 00000000..ad77a2a1 --- /dev/null +++ b/extra/entitlements.plist @@ -0,0 +1,14 @@ + + + + + com.apple.security.cs.allow-jit + + com.apple.security.cs.allow-unsigned-executable-memory + + com.apple.security.cs.allow-dyld-environment-variables + + com.apple.security.cs.disable-library-validation + + + \ No newline at end of file