Updated build script and added NuGet.Config so others can build this project.
This commit is contained in:
parent
7427592de9
commit
3d6b44530a
2 changed files with 21 additions and 0 deletions
6
NuGet.Config
Normal file
6
NuGet.Config
Normal 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>
|
15
build.ps1
15
build.ps1
|
@ -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 ""
|
||||
|
||||
|
|
Loading…
Reference in a new issue