-
Notifications
You must be signed in to change notification settings - Fork 12
/
build-all.sh
executable file
·31 lines (23 loc) · 1.1 KB
/
build-all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 createBuild() {
currentDirectory=$(pwd)
cd $2 || return 1
zip -r "$1" *
cd $currentDirectory || return 1
mv "$2/$1" builds/
}
createBuild "UnionPatcher-Windows-x64.zip" "UnionPatcher.Gui.Windows/bin/Release/net8.0-windows/win-x64/publish/"
createBuild "UnionPatcher-Linux-x64.zip" "UnionPatcher.Gui.Linux/bin/Release/net8.0/linux-x64/publish/"
createBuild "UnionPatcher-Linux-arm.zip" "UnionPatcher.Gui.Linux/bin/Release/net8.0/linux-arm/publish/"
createBuild "UnionPatcher-Linux-arm64.zip" "UnionPatcher.Gui.Linux/bin/Release/net8.0/linux-arm64/publish/"
# CODESIGN_IDENTITY is the certificate that you want to use for codesigning for mac, if not present then will not be signed
./build-mac.sh $CODESIGN_IDENTITY