Updated build script and added NuGet.Config so others can build this project.

This commit is contained in:
Toastie (DCS Team) 2024-07-10 21:08:44 +12:00
parent 7427592de9
commit 3d6b44530a
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
2 changed files with 21 additions and 0 deletions

6
NuGet.Config Normal file
View file

@ -0,0 +1,6 @@
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="toastielab.dev" value="https://toastielab.dev/api/packages/toastie_t0ast/nuget/index.json" protocolVersion="3" />
</packageSources>
</configuration>

View file

@ -1,13 +1,27 @@
echo ""
echo "███████╗██╗ ██╗ ██╗███████╗██╗ ██╗██╗ ██╗██████╗ "
echo "██╔════╝██║ ██║ ██║██╔════╝██║ ██║██║ ██║██╔══██╗"
echo "█████╗ ██║ ██║ ██║█████╗ ███████║██║ ██║██████╔╝"
echo "██╔══╝ ██║ ██║ ██║██╔══╝ ██╔══██║██║ ██║██╔══██╗"
echo "███████╗███████╗███████╗██║███████╗██║ ██║╚██████╔╝██████╔╝"
echo "╚══════╝╚══════╝╚══════╝╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ "
echo ""
echo "Copyright © 2024 Toastie_t0ast & EllieBotDevs"
echo ""
echo ""
echo "Building EllieHub"
echo ""
dotnet build -c Release
echo ""
echo "Testing EllieHub"
echo ""
dotnet test
echo ""
echo "Publishing EllieHub"
echo ""
@ -20,6 +34,7 @@ dotnet publish -c Release -r osx-x64 -o ../build/EllieHub_osx-x64 --self-contain
dotnet publish -c Release -r osx-arm64 -o ../build/EllieHub_osx-arm64 --self-contained
cd ..\
echo ""
echo "Packaging EllieHub"
echo ""