From 2a503ba5473dc1f132780fe515102c05a40cc300 Mon Sep 17 00:00:00 2001 From: Thomas BERNARD Date: Sat, 12 Jan 2019 18:14:29 +0100 Subject: [PATCH] macOS: fix zip filename for Power Macs --- src/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index 5ed5d380..6c06c211 100644 --- a/src/Makefile +++ b/src/Makefile @@ -286,6 +286,7 @@ ifeq ($(API),sdl) endif FCLOPT = MACAPPEXE = Grafx2.app/Contents/MacOS/Grafx2 + APPZIPNAME = Grafx2.app-$(shell uname -m | sed 's/Power Macintosh/powerpc/')-$(API)-$(VERSIONTAG).zip #NOTTF = 1 else ifeq ($(PLATFORM),AROS) # 3 @@ -883,8 +884,8 @@ else $(DOC_FILES:../%=%) endif ifeq ($(PLATFORM),Darwin) - $(ZIP) $(ZIPOPT) -r ../Grafx2.app-$(shell uname -m)-$(API)-$(VERSIONTAG).zip Grafx2.app - cd .. && $(ZIP) $(ZIPOPT) Grafx2.app-$(shell uname -m)-$(API)-$(VERSIONTAG).zip \ + $(ZIP) $(ZIPOPT) -r ../$(APPZIPNAME) Grafx2.app + cd .. && $(ZIP) $(ZIPOPT) $(APPZIPNAME) \ $(DOC_FILES:../%=%) $(DOC_FILESRTF:../%=%) $(SRCARCH:../%=%) endif $(TAR) czf "../grafx2-$(VERSIONTAG)-src.tgz" $(TARTRANSFORM) \