diff options
author | Christian Duerr <contact@christianduerr.com> | 2022-02-02 20:23:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-02 19:23:29 +0000 |
commit | 4bf8f375ef0f5551896a68d6504c08f9576a125f (patch) | |
tree | 875cd44daf336eb222ccc058b9b85f5536252111 /Makefile | |
parent | 40b5e179a3d92e6cbd6cee4b68905f87e47bb12c (diff) | |
download | alacritty-4bf8f375ef0f5551896a68d6504c08f9576a125f.tar.gz alacritty-4bf8f375ef0f5551896a68d6504c08f9576a125f.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-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |