Correct windows artifact (#7699)

This commit is contained in:
Jack Amadeo
2026-03-06 11:39:11 -05:00
committed by GitHub
parent a45610ec3f
commit 836a673e77
3 changed files with 7 additions and 10 deletions

View File

@@ -24,7 +24,7 @@ fn asset_name() -> &'static str {
}
#[cfg(all(target_os = "windows", target_arch = "x86_64"))]
{
"goose-x86_64-pc-windows-gnu.zip"
"goose-x86_64-pc-windows-msvc.zip"
}
}

View File

@@ -63,7 +63,7 @@ if ($ARCH -eq "AMD64") {
}
# --- 3) Build download URL ---
$FILE = "goose-$ARCH-pc-windows-gnu.zip"
$FILE = "goose-$ARCH-pc-windows-msvc.zip"
$DOWNLOAD_URL = "https://github.com/$REPO/releases/download/$RELEASE_TAG/$FILE"
Write-Host "Downloading $RELEASE_TAG release: $FILE..." -ForegroundColor Green

View File

@@ -184,7 +184,7 @@ elif [ "$OS" = "windows" ]; then
echo "Error: Windows currently only supports x86_64 architecture."
exit 1
fi
FILE="goose-$ARCH-pc-windows-gnu.zip"
FILE="goose-$ARCH-pc-windows-msvc.zip"
EXTRACT_CMD="unzip"
OUT_FILE="goose.exe"
else
@@ -235,7 +235,7 @@ set +e # Disable immediate exit on error
if [ "$EXTRACT_CMD" = "tar" ]; then
tar -xjf "$FILE" -C "$TMP_DIR" 2> tar_error.log
extract_exit_code=$?
# Check for tar errors
if [ $extract_exit_code -ne 0 ]; then
if grep -iEq "missing.*bzip2|bzip2.*missing|bzip2.*No such file|No such file.*bzip2" tar_error.log; then
@@ -252,7 +252,7 @@ else
# Use unzip for Windows
unzip -q "$FILE" -d "$TMP_DIR" 2> unzip_error.log
extract_exit_code=$?
# Check for unzip errors
if [ $extract_exit_code -ne 0 ]; then
echo "Error: Failed to extract $FILE. See details below:"
@@ -322,7 +322,7 @@ fi
if [[ ":$PATH:" != *":$GOOSE_BIN_DIR:"* ]]; then
echo ""
echo "Warning: goose installed, but $GOOSE_BIN_DIR is not in your PATH."
if [ "$OS" = "windows" ]; then
echo "To add goose to your PATH in PowerShell:"
echo ""
@@ -382,9 +382,6 @@ if [[ ":$PATH:" != *":$GOOSE_BIN_DIR:"* ]]; then
fi
fi
echo ""
fi