switched zip expansion from tar to zip so it works in Mojave

This commit is contained in:
Armin Briegel
2020-07-22 11:13:52 +02:00
parent 127866750e
commit ee91690a0d

View File

@@ -1144,8 +1144,20 @@ installFromPKG() {
installFromZIP() {
# unzip the archive
printlog "Unzipping $archiveName"
tar -xf "$archiveName"
# tar -xf "$archiveName"
# note: when you expand a zip using tar in Mojave the expanded
# app will never pass the spctl check
unzip -o -qq "$archiveName"
installAppWithPath "$tmpDir/$appName"
}
installFromTBZ() {
# unzip the archive
printlog "Unzipping $archiveName"
tar -xf "$archiveName"
installAppWithPath "$tmpDir/$appName"
}
@@ -1326,9 +1338,12 @@ case $type in
pkg)
installFromPKG
;;
zip|tbz)
zip)
installFromZIP
;;
tbz)
installFromTBZ
;;
pkgInDmg)
installPkgInDmg
;;