From 20ad69ba881b89e6b3cdba2cb570b59d56425ec0 Mon Sep 17 00:00:00 2001 From: Hsiao-nan Cheung Date: Fri, 22 Nov 2024 14:43:01 +0800 Subject: [PATCH] podman: Fix 'winsymlink' error (#6335) --- bucket/podman.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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" },