From f31fe9dacf27cf85dbd2c267bf5910a9b8650724 Mon Sep 17 00:00:00 2001 From: Gu1llaum-3 Date: Wed, 17 Sep 2025 14:44:50 +0200 Subject: [PATCH] fix: update Windows install script for GoReleaser format - Change from sshm-windows-amd64.zip to sshm_Windows_x86_64.zip - Update architecture mapping (amd64 -> x86_64, 386 -> i386) - Fix extracted binary name (now just 'sshm.exe') - Update migration documentation --- install/windows.ps1 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/install/windows.ps1 b/install/windows.ps1 index 4a71a49..c3cedca 100644 --- a/install/windows.ps1 +++ b/install/windows.ps1 @@ -80,7 +80,11 @@ if ($LocalBinary -ne "") { } # Download binary - $fileName = "sshm-windows-$arch.zip" + # Map architecture to match GoReleaser format + $goreleaserArch = if ($arch -eq "amd64") { "x86_64" } else { "i386" } + + # GoReleaser format: sshm_Windows_x86_64.zip + $fileName = "sshm_Windows_$goreleaserArch.zip" $downloadUrl = "https://github.com/Gu1llaum-3/sshm/releases/download/$latestVersion/$fileName" $tempFile = "$env:TEMP\$fileName" @@ -101,7 +105,8 @@ if ($LocalBinary -ne "") { Write-Info "Extracting..." try { Expand-Archive -Path $tempFile -DestinationPath $env:TEMP -Force - $extractedBinary = "$env:TEMP\sshm-windows-$arch.exe" + # GoReleaser extracts the binary as just "sshm.exe", not with platform suffix + $extractedBinary = "$env:TEMP\sshm.exe" $targetPath = "$InstallDir\sshm.exe" Move-Item -Path $extractedBinary -Destination $targetPath -Force