From 09ebcf9c85cc7e0d4b610fdcc24a469c950425a2 Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Wed, 24 Jan 2024 17:34:49 +0300 Subject: [PATCH] idk but this works fine for me ig the trys are important --- installer/mac/Scripts/postinstall | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/installer/mac/Scripts/postinstall b/installer/mac/Scripts/postinstall index 55d0f26d..80f0faf4 100755 --- a/installer/mac/Scripts/postinstall +++ b/installer/mac/Scripts/postinstall @@ -90,7 +90,11 @@ if installerAnswer is "Install Geode" then ExitWithMessage ("Moving resources failed: " & (gdPath & newResourcesPath)) end try - do shell script "sudo xattr -dr com.apple.quarantine \"" & gdPath & "\"" + try + do shell script "sudo xattr -dr com.apple.quarantine \"" & gdPath & "\"" + on error + + end try else if installerAnswer is "Uninstall Geode" then @@ -116,6 +120,9 @@ else if installerAnswer is "Uninstall Geode" then end if +try + do shell script "sudo rm -rf \"" & binPath & "\"" +on error +end try -do shell script "sudo rm -rf \"" & binPath & "\""