summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2022-02-02 20:23:29 +0100
committerKirill Chibisov <contact@kchibisov.com>2022-02-10 03:17:21 +0300
commitc313b5b2c78cb0ae0de68b3c702d90e4bc61be28 (patch)
tree95e2b1629169ea2408c7a30edcb38eb2a49cc2d0 /Makefile
parent5bab2ad2d0b1f3827f55665fe7b1bac98b4726b6 (diff)
downloadalacritty-c313b5b2c78cb0ae0de68b3c702d90e4bc61be28.tar.gz
alacritty-c313b5b2c78cb0ae0de68b3c702d90e4bc61be28.zip
Fix repeated permission requests on M1 macs
This adds a codesign step to our makefile build which should automatically sign the application and resolve the issues on M1 macs where Alacritty constantly requests permissions. Since self-signing does still seem to fix this issue after sharing the resulting `Alacritty.app` with other M1 macs, the binary produced by our release build should also be fixed automatically. Fixes #5840.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ad2bc597..b56189c2 100644
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,8 @@ $(APP_NAME)-%: $(TARGET)-%
@cp -fp $(APP_BINARY) $(APP_BINARY_DIR)
@cp -fp $(COMPLETIONS) $(APP_COMPLETIONS_DIR)
@touch -r "$(APP_BINARY)" "$(APP_DIR)/$(APP_NAME)"
+ @codesign --remove-signature "$(APP_DIR)/$(APP_NAME)"
+ @codesign --force --deep --sign - "$(APP_DIR)/$(APP_NAME)"
@echo "Created '$(APP_NAME)' in '$(APP_DIR)'"
dmg: $(DMG_NAME)-native ## Create an Alacritty.dmg