From 9daa9664848879a4f96227eb203744c65dc842d4 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fd/install.ps1 b/fd/install.ps1 index e758635..db8b31f 100644 --- a/fd/install.ps1 +++ b/fd/install.ps1 @@ -24,7 +24,13 @@ 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