Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Commit

Permalink
und - Amend the build system
Browse files Browse the repository at this point in the history
---

Type: und
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Oct 29, 2023
1 parent efa49c2 commit ff4f4c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tools/pack.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ if "%releaseconfig%" == "" set releaseconfig=Release
:packbin
echo Packing binary...
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%ksversion%-bin.zip "..\RetroKS\bin\%releaseconfig%\net6.0\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%ksversion%-bin7.zip "..\RetroKS\bin\%releaseconfig%\net7.0\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%ksversion%-bin48.zip "..\RetroKS\bin\%releaseconfig%\net48\*"
if %errorlevel% == 0 goto :complete
echo There was an error trying to pack binary (%errorlevel%).
goto :finished

:complete
move %temp%\%ksversion%-bin.zip
copy "..\RetroKS\bin\%releaseconfig%\net6.0\RetroKS.pdb" .\%ksversion%.pdb
move %temp%\%ksversion%-bin7.zip
move %temp%\%ksversion%-bin48.zip

echo Pack successful.
:finished
3 changes: 2 additions & 1 deletion tools/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ fi
# Pack binary
echo Packing binary...
cd "../RetroKS/bin/$ksreleaseconf/net6.0/" && "$zippath" -r /tmp/$ksversion-bin.zip . && cd -
cd "../RetroKS/bin/$ksreleaseconf/net7.0/" && "$zippath" -r /tmp/$ksversion-bin7.zip . && cd -
cd "../RetroKS/bin/$ksreleaseconf/net48/" && "$zippath" -r /tmp/$ksversion-bin48.zip . && cd -
if [ ! $? == 0 ]; then
echo Packing failed.
exit 1
fi

# Inform success
mv /tmp/$ksversion-bin.zip .
cp "../RetroKS/bin/$ksreleaseconf/net6.0/RetroKS.pdb" ./$ksversion.pdb
echo Build and pack successful.
exit 0

0 comments on commit ff4f4c3

Please sign in to comment.