ci(windows): maintain SourceGit folder structure (#1076)

This commit is contained in:
Gadfly 2025-03-10 15:44:39 +08:00 committed by GitHub
parent 2e51e8939b
commit cdae9168ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ cd build
rm -rf SourceGit/*.pdb
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" || "$OSTYPE" == "win32" ]]; then
powershell -Command "Compress-Archive -Path SourceGit\\* -DestinationPath \"sourcegit_$VERSION.$RUNTIME.zip\" -Force"
powershell -Command "Compress-Archive -Path SourceGit -DestinationPath \"sourcegit_$VERSION.$RUNTIME.zip\" -Force"
else
zip "sourcegit_$VERSION.$RUNTIME.zip" -r SourceGit
zip "sourcegit_$VERSION.$RUNTIME.zip" -r SourceGit
fi