VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-08-10 10:34:20 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:22:21 +0100
commit41a31ac76f55007d793e7bb9fcf64a5cfbc60c09 (patch)
tree6813fbfa9810fc23b6fc4ab6fb86bfa29b123386
parent4fefd61ceea569334385ae0afa1f635dbba34cf4 (diff)
downloadVeraCrypt-41a31ac76f55007d793e7bb9fcf64a5cfbc60c09.tar.gz
VeraCrypt-41a31ac76f55007d793e7bb9fcf64a5cfbc60c09.zip
MacOSX : Copy console version of VeraCrypt inside the bundle under the name veracrypt_console.
-rw-r--r--src/Main/Main.make11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Main/Main.make b/src/Main/Main.make
index 971df738..1e6a1ccc 100644
--- a/src/Main/Main.make
+++ b/src/Main/Main.make
@@ -141,12 +141,23 @@ endif
ifeq "$(PLATFORM)" "MacOSX"
mkdir -p $(APPNAME).app/Contents/MacOS $(APPNAME).app/Contents/Resources
-rm -f $(APPNAME).app/Contents/MacOS/$(APPNAME)
+ -rm -f $(APPNAME).app/Contents/MacOS/$(APPNAME)_console
ifeq "$(TC_BUILD_CONFIG)" "Release"
+ifdef TC_NO_GUI
+ cp $(PWD)/Main/$(APPNAME) $(APPNAME).app/Contents/MacOS/$(APPNAME)_console
+else
cp $(PWD)/Main/$(APPNAME) $(APPNAME).app/Contents/MacOS/$(APPNAME)
+endif
+else
+ifdef TC_NO_GUI
+ -rm -f $(PWD)/Main/$(APPNAME)_console
+ cp $(PWD)/Main/$(APPNAME) $(PWD)/Main/$(APPNAME)_console
+ -ln -sf $(PWD)/Main/$(APPNAME)_console $(APPNAME).app/Contents/MacOS/$(APPNAME)_console
else
-ln -sf $(PWD)/Main/$(APPNAME) $(APPNAME).app/Contents/MacOS/$(APPNAME)
endif
+endif
cp $(PWD)/Resources/Icons/VeraCrypt.icns $(APPNAME).app/Contents/Resources
cp "$(PWD)/Release/Setup Files/VeraCrypt User Guide.pdf" $(APPNAME).app/Contents/Resources