Skip to content

Commit f0760e1

Browse files
committed
fix: use 7z instead of Compress-Archive to avoid backslash paths in zip
Compress-Archive creates zips with Windows backslash separators, which breaks unzip in bash. 7z creates cross-platform compatible zips.
1 parent b4c1339 commit f0760e1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/ci-windows.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,9 @@ jobs:
274274
echo "::warning::xlings.exe not found at $XLINGS_EXE"
275275
fi
276276
277-
# Create zip
277+
# Create zip (use 7z to avoid backslash path issues from Compress-Archive)
278278
mkdir -p dist
279-
(cd "$STAGING" && powershell.exe -Command \
280-
"Compress-Archive -Path '$WRAPPER' -DestinationPath '$WRAPPER.zip'")
279+
(cd "$STAGING" && 7z a -tzip "$ZIPNAME" "$WRAPPER")
281280
cp "$STAGING/$ZIPNAME" "dist/$ZIPNAME"
282281
283282
# SHA256

0 commit comments

Comments
 (0)