Skip to content

Commit b568d00

Browse files
committed
ci(windows): maintain SourceGit folder structure
1 parent 2e51e89 commit b568d00

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build/scripts/package.windows.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ cd build
1010
rm -rf SourceGit/*.pdb
1111

1212
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" || "$OSTYPE" == "win32" ]]; then
13-
powershell -Command "Compress-Archive -Path SourceGit\\* -DestinationPath \"sourcegit_$VERSION.$RUNTIME.zip\" -Force"
13+
# Create temp directory to maintain SourceGit folder structure
14+
mkdir -p temp
15+
cp -r SourceGit temp/
16+
powershell -Command "Compress-Archive -Path temp\\* -DestinationPath \"sourcegit_$VERSION.$RUNTIME.zip\" -Force"
1417
else
15-
zip "sourcegit_$VERSION.$RUNTIME.zip" -r SourceGit
18+
zip "sourcegit_$VERSION.$RUNTIME.zip" -r SourceGit
1619
fi

0 commit comments

Comments
 (0)