From 3ac533860c7ea79a49cde45dfce7179e7b258399 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 22 Aug 2021 20:15:00 +0200 Subject: macOS: During install, set libfuse.2.dylib as symbolic link to libosxfuse.2.dylib if it doesn't already exist --- src/Setup/MacOSX/postinstall.sh | 8 ++++++++ src/Setup/MacOSX/veracrypt.pkgproj | 4 +++- src/Setup/MacOSX/veracrypt_Legacy.pkgproj | 4 +++- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100755 src/Setup/MacOSX/postinstall.sh (limited to 'src/Setup') diff --git a/src/Setup/MacOSX/postinstall.sh b/src/Setup/MacOSX/postinstall.sh new file mode 100755 index 00000000..7ce14ffc --- /dev/null +++ b/src/Setup/MacOSX/postinstall.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if !([ -e "/usr/local/lib/libfuse.2.dylib" ]) +then + ln -s /usr/local/lib/libosxfuse.2.dylib /usr/local/lib/libfuse.2.dylib +fi + +exit 0 diff --git a/src/Setup/MacOSX/veracrypt.pkgproj b/src/Setup/MacOSX/veracrypt.pkgproj index 22a2450e..0911e7b2 100755 --- a/src/Setup/MacOSX/veracrypt.pkgproj +++ b/src/Setup/MacOSX/veracrypt.pkgproj @@ -519,8 +519,10 @@ POSTINSTALL_PATH + PATH + postinstall.sh PATH_TYPE - 0 + 1 PREINSTALL_PATH diff --git a/src/Setup/MacOSX/veracrypt_Legacy.pkgproj b/src/Setup/MacOSX/veracrypt_Legacy.pkgproj index 2bfbdbd8..fa4388f4 100755 --- a/src/Setup/MacOSX/veracrypt_Legacy.pkgproj +++ b/src/Setup/MacOSX/veracrypt_Legacy.pkgproj @@ -519,8 +519,10 @@ POSTINSTALL_PATH + PATH + postinstall.sh PATH_TYPE - 0 + 1 PREINSTALL_PATH -- cgit v1.2.3