Correct windows artifact (#7699)
This commit is contained in:
@@ -24,7 +24,7 @@ fn asset_name() -> &'static str {
|
|||||||
}
|
}
|
||||||
#[cfg(all(target_os = "windows", target_arch = "x86_64"))]
|
#[cfg(all(target_os = "windows", target_arch = "x86_64"))]
|
||||||
{
|
{
|
||||||
"goose-x86_64-pc-windows-gnu.zip"
|
"goose-x86_64-pc-windows-msvc.zip"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -63,7 +63,7 @@ if ($ARCH -eq "AMD64") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# --- 3) Build download URL ---
|
# --- 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"
|
$DOWNLOAD_URL = "https://github.com/$REPO/releases/download/$RELEASE_TAG/$FILE"
|
||||||
|
|
||||||
Write-Host "Downloading $RELEASE_TAG release: $FILE..." -ForegroundColor Green
|
Write-Host "Downloading $RELEASE_TAG release: $FILE..." -ForegroundColor Green
|
||||||
|
|||||||
+5
-8
@@ -184,7 +184,7 @@ elif [ "$OS" = "windows" ]; then
|
|||||||
echo "Error: Windows currently only supports x86_64 architecture."
|
echo "Error: Windows currently only supports x86_64 architecture."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
FILE="goose-$ARCH-pc-windows-gnu.zip"
|
FILE="goose-$ARCH-pc-windows-msvc.zip"
|
||||||
EXTRACT_CMD="unzip"
|
EXTRACT_CMD="unzip"
|
||||||
OUT_FILE="goose.exe"
|
OUT_FILE="goose.exe"
|
||||||
else
|
else
|
||||||
@@ -235,7 +235,7 @@ set +e # Disable immediate exit on error
|
|||||||
if [ "$EXTRACT_CMD" = "tar" ]; then
|
if [ "$EXTRACT_CMD" = "tar" ]; then
|
||||||
tar -xjf "$FILE" -C "$TMP_DIR" 2> tar_error.log
|
tar -xjf "$FILE" -C "$TMP_DIR" 2> tar_error.log
|
||||||
extract_exit_code=$?
|
extract_exit_code=$?
|
||||||
|
|
||||||
# Check for tar errors
|
# Check for tar errors
|
||||||
if [ $extract_exit_code -ne 0 ]; then
|
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
|
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
|
# Use unzip for Windows
|
||||||
unzip -q "$FILE" -d "$TMP_DIR" 2> unzip_error.log
|
unzip -q "$FILE" -d "$TMP_DIR" 2> unzip_error.log
|
||||||
extract_exit_code=$?
|
extract_exit_code=$?
|
||||||
|
|
||||||
# Check for unzip errors
|
# Check for unzip errors
|
||||||
if [ $extract_exit_code -ne 0 ]; then
|
if [ $extract_exit_code -ne 0 ]; then
|
||||||
echo "Error: Failed to extract $FILE. See details below:"
|
echo "Error: Failed to extract $FILE. See details below:"
|
||||||
@@ -322,7 +322,7 @@ fi
|
|||||||
if [[ ":$PATH:" != *":$GOOSE_BIN_DIR:"* ]]; then
|
if [[ ":$PATH:" != *":$GOOSE_BIN_DIR:"* ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "Warning: goose installed, but $GOOSE_BIN_DIR is not in your PATH."
|
echo "Warning: goose installed, but $GOOSE_BIN_DIR is not in your PATH."
|
||||||
|
|
||||||
if [ "$OS" = "windows" ]; then
|
if [ "$OS" = "windows" ]; then
|
||||||
echo "To add goose to your PATH in PowerShell:"
|
echo "To add goose to your PATH in PowerShell:"
|
||||||
echo ""
|
echo ""
|
||||||
@@ -382,9 +382,6 @@ if [[ ":$PATH:" != *":$GOOSE_BIN_DIR:"* ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user