VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Main.make
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-12-06 08:33:28 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-12-06 11:51:23 +0100
commit4f17e0cfe9f255886ea986545789d69329835442 (patch)
tree692b7e1d11397dc2e1ad7fdda5eb66dc600bd893 /src/Main/Main.make
parentc1f1c643ff54bf9888f775df3c4318e59a3ba18f (diff)
downloadVeraCrypt-4f17e0cfe9f255886ea986545789d69329835442.tar.gz
VeraCrypt-4f17e0cfe9f255886ea986545789d69329835442.zip
MacOSX: Customize dmg file using VeraCrypt new logo
Diffstat (limited to 'src/Main/Main.make')
-rw-r--r--src/Main/Main.make13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Main/Main.make b/src/Main/Main.make
index ee113f0e..4140f552 100644
--- a/src/Main/Main.make
+++ b/src/Main/Main.make
@@ -178,9 +178,20 @@ endif
/usr/local/bin/packagesbuild $(PWD)/Setup/MacOSX/veracrypt.pkgproj
productsign --sign "Developer ID Installer: Mounir IDRASSI" "$(PWD)/Setup/MacOSX/VeraCrypt $(TC_VERSION).pkg" $(PWD)/Setup/MacOSX/VeraCrypt_$(TC_VERSION).pkg
rm -f $(APPNAME)_$(TC_VERSION).dmg
- hdiutil create -srcfolder $(PWD)/Setup/MacOSX/VeraCrypt_$(TC_VERSION).pkg -volname "VeraCrypt $(TC_VERSION) for Mac OS X $(VC_OSX_TARGET) and later" $(APPNAME)_$(TC_VERSION).dmg
+ rm -f "$(PWD)/Setup/MacOSX/template.dmg"
+ rm -fr "$(PWD)/Setup/MacOSX/VeraCrypt_dmg"
+ mkdir -p "$(PWD)/Setup/MacOSX/VeraCrypt_dmg"
+ bunzip2 -k -f "$(PWD)/Setup/MacOSX/template.dmg.bz2"
+ hdiutil attach "$(PWD)/Setup/MacOSX/template.dmg" -noautoopen -quiet -mountpoint "$(PWD)/Setup/MacOSX/VeraCrypt_dmg"
+ cp "$(PWD)/Setup/MacOSX/VeraCrypt_$(TC_VERSION).pkg" "$(PWD)/Setup/MacOSX/VeraCrypt_dmg/VeraCrypt_Installer.pkg"
+ hdiutil detach "$(PWD)/Setup/MacOSX/VeraCrypt_dmg" -quiet -force
+ hdiutil convert "$(PWD)/Setup/MacOSX/template.dmg" -quiet -format UDZO -imagekey zlib-level=9 -o $(APPNAME)_$(TC_VERSION).dmg
+ rm -f "$(PWD)/Setup/MacOSX/template.dmg"
+ rm -fr "$(PWD)/Setup/MacOSX/VeraCrypt_dmg"
endif
+
+
ifeq "$(PLATFORM)" "Linux"
ifeq "$(TC_BUILD_CONFIG)" "Release"
mkdir -p $(PWD)/Setup/Linux/usr/bin