mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-14 14:23:12 +01:00
switched zip expansion from tar to zip so it works in Mojave
This commit is contained in:
@@ -1144,8 +1144,20 @@ installFromPKG() {
|
|||||||
installFromZIP() {
|
installFromZIP() {
|
||||||
# unzip the archive
|
# unzip the archive
|
||||||
printlog "Unzipping $archiveName"
|
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"
|
installAppWithPath "$tmpDir/$appName"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1326,9 +1338,12 @@ case $type in
|
|||||||
pkg)
|
pkg)
|
||||||
installFromPKG
|
installFromPKG
|
||||||
;;
|
;;
|
||||||
zip|tbz)
|
zip)
|
||||||
installFromZIP
|
installFromZIP
|
||||||
;;
|
;;
|
||||||
|
tbz)
|
||||||
|
installFromTBZ
|
||||||
|
;;
|
||||||
pkgInDmg)
|
pkgInDmg)
|
||||||
installPkgInDmg
|
installPkgInDmg
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user