diff --git a/bucket/podman.json b/bucket/podman.json index 209c1395ef..150f540e6d 100644 --- a/bucket/podman.json +++ b/bucket/podman.json @@ -13,9 +13,16 @@ "installer": { "script": [ "Expand-DarkArchive \"$dir\\podman-$version-setup.exe\" \"$dir\\_tmp\" -Removal", - "Expand-MsiArchive \"$dir\\_tmp\\AttachedContainer\\podman.msi\" \"$dir\" -ExtractDir 'PFiles64\\RedHat\\Podman'" + "Expand-MsiArchive \"$dir\\_tmp\\AttachedContainer\\podman.msi\" \"$dir\" -ExtractDir 'PFiles64\\RedHat\\Podman'", + "if (get_config USE_ISOLATED_PATH) {", + " Add-Path -Path ('%' + $scoopPathEnvVar + '%') -Global:$global", + "}", + "Add-Path -Path $original_dir -TargetEnvVar $scoopPathEnvVar -Global:$global -Force" ] }, + "uninstaller": { + "script": "Remove-Path -Path $dir -TargetEnvVar $scoopPathEnvVar -Global:$global -Force" + }, "checkver": { "github": "https://github.com/containers/podman" },