Skip to content

Commit 836a673

Browse files
authored
Correct windows artifact (#7699)
1 parent a45610e commit 836a673

3 files changed

Lines changed: 7 additions & 10 deletions

File tree

crates/goose-cli/src/commands/update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ fn asset_name() -> &'static str {
2424
}
2525
#[cfg(all(target_os = "windows", target_arch = "x86_64"))]
2626
{
27-
"goose-x86_64-pc-windows-gnu.zip"
27+
"goose-x86_64-pc-windows-msvc.zip"
2828
}
2929
}
3030

download_cli.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ if ($ARCH -eq "AMD64") {
6363
}
6464

6565
# --- 3) Build download URL ---
66-
$FILE = "goose-$ARCH-pc-windows-gnu.zip"
66+
$FILE = "goose-$ARCH-pc-windows-msvc.zip"
6767
$DOWNLOAD_URL = "https://github.com/$REPO/releases/download/$RELEASE_TAG/$FILE"
6868

6969
Write-Host "Downloading $RELEASE_TAG release: $FILE..." -ForegroundColor Green

download_cli.sh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ elif [ "$OS" = "windows" ]; then
184184
echo "Error: Windows currently only supports x86_64 architecture."
185185
exit 1
186186
fi
187-
FILE="goose-$ARCH-pc-windows-gnu.zip"
187+
FILE="goose-$ARCH-pc-windows-msvc.zip"
188188
EXTRACT_CMD="unzip"
189189
OUT_FILE="goose.exe"
190190
else
@@ -235,7 +235,7 @@ set +e # Disable immediate exit on error
235235
if [ "$EXTRACT_CMD" = "tar" ]; then
236236
tar -xjf "$FILE" -C "$TMP_DIR" 2> tar_error.log
237237
extract_exit_code=$?
238-
238+
239239
# Check for tar errors
240240
if [ $extract_exit_code -ne 0 ]; then
241241
if grep -iEq "missing.*bzip2|bzip2.*missing|bzip2.*No such file|No such file.*bzip2" tar_error.log; then
@@ -252,7 +252,7 @@ else
252252
# Use unzip for Windows
253253
unzip -q "$FILE" -d "$TMP_DIR" 2> unzip_error.log
254254
extract_exit_code=$?
255-
255+
256256
# Check for unzip errors
257257
if [ $extract_exit_code -ne 0 ]; then
258258
echo "Error: Failed to extract $FILE. See details below:"
@@ -322,7 +322,7 @@ fi
322322
if [[ ":$PATH:" != *":$GOOSE_BIN_DIR:"* ]]; then
323323
echo ""
324324
echo "Warning: goose installed, but $GOOSE_BIN_DIR is not in your PATH."
325-
325+
326326
if [ "$OS" = "windows" ]; then
327327
echo "To add goose to your PATH in PowerShell:"
328328
echo ""
@@ -382,9 +382,6 @@ if [[ ":$PATH:" != *":$GOOSE_BIN_DIR:"* ]]; then
382382
fi
383383

384384
fi
385-
385+
386386
echo ""
387387
fi
388-
389-
390-

0 commit comments

Comments
 (0)