Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
Use 7z instead of zip and Compress-Archive
Browse files Browse the repository at this point in the history
Hopefully this will fix Windows artifacts
  • Loading branch information
nonperforming authored Mar 28, 2022
1 parent 3ba049b commit 180cf90
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if ($isWindows)

cmake --build "$RepoRoot/build" --config MinSizeRel --parallel 16

Compress-Archive -path "C:\projects\openspadesplus\openspadesplus\build\bin\MinSizeRel" -DestinationPath "C:\Windows.zip"
7z a Windows.zip build/bin/MinSizeRel -r
}
elseif ($isLinux)
{
Expand All @@ -48,8 +48,9 @@ elseif ($isLinux)
make -j 16

cp Resources bin
zip -1 -r Linux.zip bin
zip -1 -r Resources.zip Resources

7z a Linux.zip bin -r
7z a Linux.zip Resources -r
}
elseif ($isMacOS)
{
Expand All @@ -67,8 +68,7 @@ elseif ($isMacOS)
Push-Location build
ninja

Push-Location bin
zip -1 -r MacOS.zip OpenSpades.app
7z a MacOS.zip bin/OpenSpades.app -r
}
else
{
Expand Down

0 comments on commit 180cf90

Please sign in to comment.