mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 11:28:26 -06:00
MacOSX: Update build script and Makefile to correctly build Legacy version of VeraCrypt that targets OSX 10.7+.
This commit is contained in:
@@ -221,9 +221,15 @@ install: prepare
|
||||
cp -R $(APPNAME).app /Applications/.
|
||||
|
||||
package: prepare
|
||||
ifdef VC_LEGACY_BUILD
|
||||
/usr/local/bin/packagesbuild $(BASE_DIR)/Setup/MacOSX/veracrypt_Legacy.pkgproj
|
||||
productsign --sign "Developer ID Installer: IDRIX (Z933746L2S)" --timestamp "$(BASE_DIR)/Setup/MacOSX/VeraCrypt Legacy $(TC_VERSION).pkg" $(BASE_DIR)/Setup/MacOSX/VeraCrypt_$(TC_VERSION).pkg
|
||||
rm -f $(APPNAME)_Legacy_$(TC_VERSION).dmg
|
||||
else
|
||||
/usr/local/bin/packagesbuild $(BASE_DIR)/Setup/MacOSX/veracrypt.pkgproj
|
||||
productsign --sign "Developer ID Installer: IDRIX (Z933746L2S)" --timestamp "$(BASE_DIR)/Setup/MacOSX/VeraCrypt $(TC_VERSION).pkg" $(BASE_DIR)/Setup/MacOSX/VeraCrypt_$(TC_VERSION).pkg
|
||||
rm -f $(APPNAME)_$(TC_VERSION).dmg
|
||||
endif
|
||||
rm -f "$(BASE_DIR)/Setup/MacOSX/template.dmg"
|
||||
rm -fr "$(BASE_DIR)/Setup/MacOSX/VeraCrypt_dmg"
|
||||
mkdir -p "$(BASE_DIR)/Setup/MacOSX/VeraCrypt_dmg"
|
||||
@@ -231,7 +237,11 @@ package: prepare
|
||||
hdiutil attach "$(BASE_DIR)/Setup/MacOSX/template.dmg" -noautoopen -quiet -mountpoint "$(BASE_DIR)/Setup/MacOSX/VeraCrypt_dmg"
|
||||
cp "$(BASE_DIR)/Setup/MacOSX/VeraCrypt_$(TC_VERSION).pkg" "$(BASE_DIR)/Setup/MacOSX/VeraCrypt_dmg/VeraCrypt_Installer.pkg"
|
||||
hdiutil detach "$(BASE_DIR)/Setup/MacOSX/VeraCrypt_dmg" -quiet -force
|
||||
ifdef VC_LEGACY_BUILD
|
||||
hdiutil convert "$(BASE_DIR)/Setup/MacOSX/template.dmg" -quiet -format UDZO -imagekey zlib-level=9 -o $(APPNAME)_Legacy_$(TC_VERSION).dmg
|
||||
else
|
||||
hdiutil convert "$(BASE_DIR)/Setup/MacOSX/template.dmg" -quiet -format UDZO -imagekey zlib-level=9 -o $(APPNAME)_$(TC_VERSION).dmg
|
||||
endif
|
||||
rm -f "$(BASE_DIR)/Setup/MacOSX/template.dmg"
|
||||
rm -fr "$(BASE_DIR)/Setup/MacOSX/VeraCrypt_dmg"
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user