VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Main.make
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-08-10 08:34:20 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 22:22:21 (GMT)
commit41a31ac76f55007d793e7bb9fcf64a5cfbc60c09 (patch)
tree6813fbfa9810fc23b6fc4ab6fb86bfa29b123386 /src/Main/Main.make
parent4fefd61ceea569334385ae0afa1f635dbba34cf4 (diff)
downloadVeraCrypt-41a31ac76f55007d793e7bb9fcf64a5cfbc60c09.zip
VeraCrypt-41a31ac76f55007d793e7bb9fcf64a5cfbc60c09.tar.gz
MacOSX : Copy console version of VeraCrypt inside the bundle under the name veracrypt_console.
Diffstat (limited to 'src/Main/Main.make')
-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 971df73..1e6a1cc 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