VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2021-08-22 20:15:00 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2021-08-23 00:05:17 +0200
commit3ac533860c7ea79a49cde45dfce7179e7b258399 (patch)
tree0d9f5f935a978f5c7eeedbf10236b7e001ec57f5 /src
parent7df5a58adc83702b40ec58a435e9c5e1b6062e26 (diff)
downloadVeraCrypt-3ac533860c7ea79a49cde45dfce7179e7b258399.tar.gz
VeraCrypt-3ac533860c7ea79a49cde45dfce7179e7b258399.zip
macOS: During install, set libfuse.2.dylib as symbolic link to libosxfuse.2.dylib if it doesn't already exist
Diffstat (limited to 'src')
-rwxr-xr-xsrc/Setup/MacOSX/postinstall.sh8
-rwxr-xr-xsrc/Setup/MacOSX/veracrypt.pkgproj4
-rwxr-xr-xsrc/Setup/MacOSX/veracrypt_Legacy.pkgproj4
3 files changed, 14 insertions, 2 deletions
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 @@
<dict>
<key>POSTINSTALL_PATH</key>
<dict>
+ <key>PATH</key>
+ <string>postinstall.sh</string>
<key>PATH_TYPE</key>
- <integer>0</integer>
+ <integer>1</integer>
</dict>
<key>PREINSTALL_PATH</key>
<dict>
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 @@
<dict>
<key>POSTINSTALL_PATH</key>
<dict>
+ <key>PATH</key>
+ <string>postinstall.sh</string>
<key>PATH_TYPE</key>
- <integer>0</integer>
+ <integer>1</integer>
</dict>
<key>PREINSTALL_PATH</key>
<dict>