Merge pull request 'Updated build script and added NuGet.Config so others can build this project.' (#5) from dev into main
Reviewed-on: #5
This commit is contained in:
commit
da72525cd3
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 "Building EllieHub"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
dotnet build -c Release
|
dotnet build -c Release
|
||||||
|
|
||||||
|
echo ""
|
||||||
echo "Testing EllieHub"
|
echo "Testing EllieHub"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
dotnet test
|
dotnet test
|
||||||
|
|
||||||
|
echo ""
|
||||||
echo "Publishing EllieHub"
|
echo "Publishing EllieHub"
|
||||||
echo ""
|
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
|
dotnet publish -c Release -r osx-arm64 -o ../build/EllieHub_osx-arm64 --self-contained
|
||||||
cd ..\
|
cd ..\
|
||||||
|
|
||||||
|
echo ""
|
||||||
echo "Packaging EllieHub"
|
echo "Packaging EllieHub"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue