Revision: 3587 Author: eliot Date: 2016-02-11 15:57:38 -0800 (Thu, 11 Feb 2016) Log Message: ----------- Add support for signing the Mac .app bundle if SIGNING_IDENTITY is set, e.g. via export SIGNING_IDENTITY="Developer ID Application: Eliot Miranda"
Modified Paths: -------------- branches/Cog/build.macos32x86/common/Makefile.app branches/Cog/build.macos64x64/common/Makefile.app
Property Changed: ---------------- branches/Cog/platforms/Cross/vm/sqSCCSVersion.h
Modified: branches/Cog/build.macos32x86/common/Makefile.app =================================================================== --- branches/Cog/build.macos32x86/common/Makefile.app 2016-02-11 20:59:14 UTC (rev 3586) +++ branches/Cog/build.macos32x86/common/Makefile.app 2016-02-11 23:57:38 UTC (rev 3587) @@ -50,7 +50,7 @@ VMICONS:=$(addprefix $(APP)/Contents/Resources/,$(notdir $(OSXICONS))) VMMENUNIB:=$(APP)/Contents/Resources/English.lproj/MainMenu.nib
-$(APP): $(VMEXE) $(VMBUNDLES) $(VMPLIST) $(VMMENUNIB) $(VMICONS) $(APPPOST) +$(APP): $(VMEXE) $(VMBUNDLES) $(VMPLIST) $(VMMENUNIB) $(VMICONS) $(APPPOST) signapp
$(VMEXE): vm $(OBJDIR)/$(VM) mkdir -p $(APP)/Contents/MacOS @@ -80,6 +80,17 @@ mkdir -p $(APP)/Contents/Resources cp -p $< $(APP)/Contents/Resources
+# To sign the app, set SIGNING_IDENTITY in the environment, e.g. +# export SIGNING_IDENTITY="Developer ID Application: Eliot Miranda" +# +ifeq ("$(SIGNING_IDENTITY)",) +signapp: + echo "No signing identity found (SIGNING_IDENTITY unset). Not signing app." +else +signapp: + codesign -f --deep -s "$(SIGNING_IDENTITY)" $(APP) +endif + print-app-settings: @echo ---------------- Makefile.app settings ------------------ @echo APP=$(APP)
Modified: branches/Cog/build.macos64x64/common/Makefile.app =================================================================== --- branches/Cog/build.macos64x64/common/Makefile.app 2016-02-11 20:59:14 UTC (rev 3586) +++ branches/Cog/build.macos64x64/common/Makefile.app 2016-02-11 23:57:38 UTC (rev 3587) @@ -50,7 +50,7 @@ VMICONS:=$(addprefix $(APP)/Contents/Resources/,$(notdir $(OSXICONS))) VMMENUNIB:=$(APP)/Contents/Resources/English.lproj/MainMenu.nib
-$(APP): $(VMEXE) $(VMBUNDLES) $(VMPLIST) $(VMMENUNIB) $(VMICONS) $(APPPOST) +$(APP): $(VMEXE) $(VMBUNDLES) $(VMPLIST) $(VMMENUNIB) $(VMICONS) $(APPPOST) signapp
$(VMEXE): vm $(OBJDIR)/$(VM) mkdir -p $(APP)/Contents/MacOS @@ -80,6 +80,17 @@ mkdir -p $(APP)/Contents/Resources cp -p $< $(APP)/Contents/Resources
+# To sign the app, set SIGNING_IDENTITY in the environment, e.g. +# export SIGNING_IDENTITY="Developer ID Application: Eliot Miranda" +# +ifeq ("$(SIGNING_IDENTITY)",) +signapp: + echo "No signing identity found (SIGNING_IDENTITY unset). Not signing app." +else +signapp: + codesign -f --deep -s "$(SIGNING_IDENTITY)" $(APP) +endif + print-app-settings: @echo ---------------- Makefile.app settings ------------------ @echo APP=$(APP)
Property changes on: branches/Cog/platforms/Cross/vm/sqSCCSVersion.h ___________________________________________________________________ Modified: checkindate - Thu Feb 11 12:50:05 PST 2016 + Thu Feb 11 15:55:53 PST 2016
vm-dev@lists.squeakfoundation.org