From 3163494d990be8c2422453b107e80316e06eed8c Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 21 Aug 2026 01:04:09 -0600 Subject: [PATCH] fix(fd): handle both old and new archive layouts in install.ps1 - Bare fd.exe (old layout) - fd-v*\fd.exe (new layout with versioned directory) --- fd/install.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fd/install.ps1 b/fd/install.ps1 index e758635..8c68ef3 100644 --- a/fd/install.ps1 +++ b/fd/install.ps1 @@ -24,7 +24,12 @@ if (!(Test-Path -Path "$Env:USERPROFILE\.local\bin\$VERNAME")) { Write-Output "Unpacking $Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE" & tar xf "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE" # Move single binary into root of temporary folder - & Move-Item "$Env:WEBI_PKG_FILE\$EXENAME" "$VERNAME" + # Handle both old layout (bare fd.exe) and new layout (fd-v*\fd.exe) + if (Test-Path -Path ".\$EXENAME") { + & Move-Item "$EXENAME" "$VERNAME" + } elseif (Test-Path -Path ".\$Env:PKG_NAME-*\$EXENAME") { + & Move-Item ".\$Env:PKG_NAME-*\$EXENAME" "$VERNAME" + } # Settle unpacked archive into place