From b64b7c9ca42b5efeb5096364d23ad5a03a313478 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Thu, 29 May 2025 05:48:40 +0900 Subject: [PATCH] macOS: Create symlink to VeraCrypt binary at /usr/local/bin/veracrypt during installation This makes it easier to use the VeraCrypt CLI in a manner similar to Linux systems. --- src/Setup/MacOSX/postinstall.sh | 6 ++++++ src/Setup/MacOSX/postinstall_fuse-t.sh | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/Setup/MacOSX/postinstall.sh b/src/Setup/MacOSX/postinstall.sh index 661b0f5b..2557f8e9 100755 --- a/src/Setup/MacOSX/postinstall.sh +++ b/src/Setup/MacOSX/postinstall.sh @@ -7,4 +7,10 @@ fi chmod -R go-w /Applications/VeraCrypt.app +# create simlink to VeraCrypt binary in /usr/local/bin +if !([ -e "/usr/local/bin/veracrypt" ]) +then + ln -s /Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt /usr/local/bin/veracrypt +fi + exit 0 diff --git a/src/Setup/MacOSX/postinstall_fuse-t.sh b/src/Setup/MacOSX/postinstall_fuse-t.sh index fb799b91..aacb06ff 100755 --- a/src/Setup/MacOSX/postinstall_fuse-t.sh +++ b/src/Setup/MacOSX/postinstall_fuse-t.sh @@ -2,4 +2,10 @@ chmod -R go-w /Applications/VeraCrypt.app +# create simlink to VeraCrypt binary in /usr/local/bin +if !([ -e "/usr/local/bin/veracrypt" ]) +then + ln -s /Applications/VeraCrypt.app/Contents/MacOS/VeraCrypt /usr/local/bin/veracrypt +fi + exit 0