mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-04-20 03:25:16 +00:00
31 lines
No EOL
1.1 KiB
Bash
Executable file
31 lines
No EOL
1.1 KiB
Bash
Executable file
mkdir -p builds;
|
|
#dotnet clean;
|
|
|
|
dotnet publish -c Windows -r win-x64 --self-contained
|
|
|
|
dotnet publish -c Linux -r linux-x64 --self-contained
|
|
dotnet publish -c Linux -r linux-arm --self-contained
|
|
dotnet publish -c Linux -r linux-arm64 --self-contained
|
|
|
|
dotnet publish -c MacOS -r osx-x64 --self-contained
|
|
dotnet publish -c MacOS -r osx-arm64 --self-contained
|
|
|
|
# $1: Name.zip
|
|
# $2: Path to zip
|
|
function zipPath() {
|
|
currentDirectory=$(pwd)
|
|
cd $2 || return 1;
|
|
|
|
zip "$1" *;
|
|
cd $currentDirectory || return 1;
|
|
mv "$2/$1" builds/
|
|
}
|
|
|
|
zipPath "UnionPatcher-Windows-x64.zip" "UnionPatcher.Gui.Windows/bin/Release/net6.0-windows/win-x64/publish/"
|
|
|
|
zipPath "UnionPatcher-Linux-x64.zip" "UnionPatcher.Gui.Linux/bin/Release/net6.0/linux-x64/publish/"
|
|
zipPath "UnionPatcher-Linux-arm.zip" "UnionPatcher.Gui.Linux/bin/Release/net6.0/linux-arm/publish/"
|
|
zipPath "UnionPatcher-Linux-arm64.zip" "UnionPatcher.Gui.Linux/bin/Release/net6.0/linux-arm64/publish/"
|
|
|
|
zipPath "UnionPatcher-macOS-x64.zip" "UnionPatcher.Gui.MacOS/bin/Release/net6.0/osx-x64/publish/"
|
|
zipPath "UnionPatcher-macOS-arm64.zip" "UnionPatcher.Gui.MacOS/bin/Release/net6.0/osx-arm64/publish/" |