From 41a31ac76f55007d793e7bb9fcf64a5cfbc60c09 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 10 Aug 2014 10:34:20 +0200 Subject: MacOSX : Copy console version of VeraCrypt inside the bundle under the name veracrypt_console. --- src/Main/Main.make | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/Main/Main.make') 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,11 +141,22 @@ 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 -- cgit v1.2.3