summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0daa130..d61624b 100644
--- a/Makefile
+++ b/Makefile
@@ -97,4 +97,14 @@ gui-macos-dmg: gui ## Package GUI in a *.dmg file
"$(app_path_dist)/$(APP_NAME).dmg" \
"$(app_path_dist)/$(DMG_NAME)/"
+.PHONY: gui-macos-dmg-intel
+gui-macos-dmg-intel: gui ## Package GUI in a *.dmg file; Workaround for Intel Macs, since Apple Script permissions are not set correctly on GitHub Actiion Runner images
+ @poetry run mkdir -p $(app_path_dist)/dmg
+ @poetry run mv "$(app_path_dist)/$(APP_BUNDLE_NAME).app" "$(app_path_dist)/$(DMG_NAME)/$(APP_NAME).app"
+ @poetry run hdiutil create -volname "$(APP_NAME)" \
+ -srcfolder "$(app_path_dist)/$(DMG_NAME)/" \
+ -ov -format UDZO \
+ -fs APFS \
+ "$(app_path_dist)/$(APP_NAME).dmg"
+
.DEFAULT_GOAL := help