From ee91690a0da63aacd59777c9f0301f6b7558d81c Mon Sep 17 00:00:00 2001 From: Armin Briegel <1933192+scriptingosx@users.noreply.github.com> Date: Wed, 22 Jul 2020 11:13:52 +0200 Subject: [PATCH] switched zip expansion from tar to zip so it works in Mojave --- Installomator.sh | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Installomator.sh b/Installomator.sh index 9954c81..141defb 100755 --- a/Installomator.sh +++ b/Installomator.sh @@ -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 ;;