1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 02:58:02 -06:00

MacOSX: Fix skipping codesign and productsign for local development build

This commit is contained in:
Mounir IDRASSI
2024-06-16 15:10:57 +02:00
parent a92cefa605
commit 978ebe6693

View File

@@ -210,7 +210,7 @@ else
sed -e 's/_VERSION_/$(patsubst %a,%.1,$(patsubst %b,%.2,$(TC_VERSION)))/' ../Build/Resources/MacOSX/Info.plist.xml >$(APPNAME).app/Contents/Info.plist sed -e 's/_VERSION_/$(patsubst %a,%.1,$(patsubst %b,%.2,$(TC_VERSION)))/' ../Build/Resources/MacOSX/Info.plist.xml >$(APPNAME).app/Contents/Info.plist
endif endif
chmod -R go-w $(APPNAME).app chmod -R go-w $(APPNAME).app
ifneq ($(LOCAL_DEVELOPMENT_BUILD),"true") ifneq ("$(LOCAL_DEVELOPMENT_BUILD)","true")
codesign -s "Developer ID Application: IDRIX (Z933746L2S)" --timestamp $(APPNAME).app codesign -s "Developer ID Application: IDRIX (Z933746L2S)" --timestamp $(APPNAME).app
endif endif
@@ -224,7 +224,12 @@ ifdef VC_LEGACY_BUILD
rm -f $(APPNAME)_Legacy_$(TC_VERSION).dmg rm -f $(APPNAME)_Legacy_$(TC_VERSION).dmg
else else
/usr/local/bin/packagesbuild $(BASE_DIR)/Setup/MacOSX/veracrypt.pkgproj /usr/local/bin/packagesbuild $(BASE_DIR)/Setup/MacOSX/veracrypt.pkgproj
ifneq ("$(LOCAL_DEVELOPMENT_BUILD)","true")
productsign --sign "Developer ID Installer: IDRIX (Z933746L2S)" --timestamp "$(BASE_DIR)/Setup/MacOSX/VeraCrypt $(TC_VERSION).pkg" $(BASE_DIR)/Setup/MacOSX/VeraCrypt_$(TC_VERSION).pkg productsign --sign "Developer ID Installer: IDRIX (Z933746L2S)" --timestamp "$(BASE_DIR)/Setup/MacOSX/VeraCrypt $(TC_VERSION).pkg" $(BASE_DIR)/Setup/MacOSX/VeraCrypt_$(TC_VERSION).pkg
else
# copy the unsigned package to the expected location
cp "$(BASE_DIR)/Setup/MacOSX/VeraCrypt $(TC_VERSION).pkg" $(BASE_DIR)/Setup/MacOSX/VeraCrypt_$(TC_VERSION).pkg
end
rm -f $(APPNAME)_$(TC_VERSION).dmg rm -f $(APPNAME)_$(TC_VERSION).dmg
endif endif
rm -f "$(BASE_DIR)/Setup/MacOSX/template.dmg" rm -f "$(BASE_DIR)/Setup/MacOSX/template.dmg"