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

Commit

Permalink
upd - Updated build scripts to support .NET 8.0
Browse files Browse the repository at this point in the history
---

Type: upd
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Nov 15, 2023
1 parent 6050ab1 commit 370089d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions tools/pack.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,24 @@ if "%releaseconfig%" == "" set releaseconfig=Release

:packbin
echo Packing binary...
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%version%-bin.zip "..\GRILO.Bootloader\bin\%releaseconfig%\net6.0\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%version%-bin6.zip "..\GRILO.Bootloader\bin\%releaseconfig%\net6.0\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%version%-bin7.zip "..\GRILO.Bootloader\bin\%releaseconfig%\net7.0\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%version%-bin.zip "..\GRILO.Bootloader\bin\%releaseconfig%\net8.0\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%version%-bin48.zip "..\GRILO.Bootloader\bin\%releaseconfig%\net48\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%version%-demo.zip "..\GRILO.BootableAppDemo\bin\%releaseconfig%\net6.0\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%version%-demo6.zip "..\GRILO.BootableAppDemo\bin\%releaseconfig%\net6.0\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%version%-demo7.zip "..\GRILO.BootableAppDemo\bin\%releaseconfig%\net7.0\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%version%-demo.zip "..\GRILO.BootableAppDemo\bin\%releaseconfig%\net8.0\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%version%-demo48.zip "..\GRILO.BootableAppDemo\bin\%releaseconfig%\net48\*"
"%ProgramFiles%\7-Zip\7z.exe" a -tzip %temp%/%version%-boot.zip "..\GRILO.Boot\bin\%releaseconfig%\netstandard2.0\*"
if %errorlevel% == 0 goto :complete
echo There was an error trying to pack binary (%errorlevel%).
goto :finished

:complete
move %temp%\%version%-bin6.rar
move %temp%\%version%-demo6.rar
move %temp%\%version%-bin7.rar
move %temp%\%version%-demo7.rar
move %temp%\%version%-bin.rar
move %temp%\%version%-demo.rar
move %temp%\%version%-bin48.rar
Expand Down
12 changes: 10 additions & 2 deletions tools/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ fi

# Pack binary
echo Packing binary...
cd "../GRILO.Bootloader/bin/$releaseconf/net6.0/" && "$zippath" -r /tmp/$version-bin.zip . && cd -
cd "../GRILO.Bootloader/bin/$releaseconf/net6.0/" && "$zippath" -r /tmp/$version-bin6.zip . && cd -
cd "../GRILO.Bootloader/bin/$releaseconf/net7.0/" && "$zippath" -r /tmp/$version-bin7.zip . && cd -
cd "../GRILO.Bootloader/bin/$releaseconf/net8.0/" && "$zippath" -r /tmp/$version-bin.zip . && cd -
cd "../GRILO.Bootloader/bin/$releaseconf/net48/" && "$zippath" -r /tmp/$version-bin48.zip . && cd -
cd "../GRILO.BootableAppDemo/bin/$releaseconf/net6.0/" && "$zippath" -r /tmp/$version-demo.zip . && cd -
cd "../GRILO.BootableAppDemo/bin/$releaseconf/net6.0/" && "$zippath" -r /tmp/$version-demo6.zip . && cd -
cd "../GRILO.BootableAppDemo/bin/$releaseconf/net7.0/" && "$zippath" -r /tmp/$version-demo7.zip . && cd -
cd "../GRILO.BootableAppDemo/bin/$releaseconf/net8.0/" && "$zippath" -r /tmp/$version-demo.zip . && cd -
cd "../GRILO.BootableAppDemo/bin/$releaseconf/net48/" && "$zippath" -r /tmp/$version-demo48.zip . && cd -
cd "../GRILO.Boot/bin/$releaseconf/netstandard2.0/" && "$zippath" -r /tmp/$version-boot.zip . && cd -
if [ ! $? == 0 ]; then
Expand All @@ -27,6 +31,10 @@ if [ ! $? == 0 ]; then
fi

# Inform success
mv ~/tmp/$version-bin6.zip .
mv ~/tmp/$version-demo6.zip .
mv ~/tmp/$version-bin7.zip .
mv ~/tmp/$version-demo7.zip .
mv ~/tmp/$version-bin.zip .
mv ~/tmp/$version-demo.zip .
mv ~/tmp/$version-bin48.zip .
Expand Down

0 comments on commit 370089d

Please sign in to comment.