52 lines
No EOL
2.5 KiB
PowerShell
52 lines
No EOL
2.5 KiB
PowerShell
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 ""
|
|
|
|
cd .\EllieHub\
|
|
dotnet publish -c Release -r win-x64 -o ../build/EllieHub_win-x64 --self-contained
|
|
dotnet publish -c Release -r win-arm64 -o ../build/EllieHub_win-arm64 --self-contained
|
|
dotnet publish -c Release -r linux-x64 -o ../build/EllieHub_linux-x64 --self-contained
|
|
dotnet publish -c Release -r linux-arm64 -o ../build/EllieHub_linux-arm64 --self-contained
|
|
dotnet publish -c Release -r osx-x64 -o ../build/EllieHub_osx-x64 --self-contained
|
|
dotnet publish -c Release -r osx-arm64 -o ../build/EllieHub_osx-arm64 --self-contained
|
|
cd ..\
|
|
|
|
echo ""
|
|
echo "Packaging EllieHub"
|
|
echo ""
|
|
|
|
New-Item -ItemType Directory -Path zips\
|
|
Compress-Archive -Path "build\EllieHub_win-x64" -DestinationPath "zips\EllieHub_win-x64.zip"
|
|
Compress-Archive -Path "build\EllieHub_win-arm64" -DestinationPath "zips\EllieHub_win-arm64.zip"
|
|
Compress-Archive -Path "build\EllieHub_linux-x64" -DestinationPath "zips\EllieHub_linux-x64.zip"
|
|
Compress-Archive -Path "build\EllieHub_linux-arm64" -DestinationPath "zips\EllieHub_linux-arm64.zip"
|
|
Compress-Archive -Path "build\EllieHub_osx-x64" -DestinationPath "zips\EllieHub_osx-x64.zip"
|
|
Compress-Archive -Path "build\EllieHub_osx-arm64" -DestinationPath "zips\EllieHub_osx-arm64.zip"
|
|
|
|
echo ""
|
|
echo ""
|
|
echo "Finished building and packaging EllieHub"
|
|
echo "For completed zip builds check the zips folder" |