-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
62 lines (42 loc) · 1.72 KB
/
build.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
## Build
# Windows
dotnet publish ./WhoIsLive.UX.Desktop/ -c Release -r win-x64 -o build/win-x64 --no-self-contained
dotnet publish ./WhoIsLive.UX.Desktop/ -c Release -r win-x86 -o build/win-x86 --no-self-contained
dotnet publish ./WhoIsLive.UX.Desktop/ -c Release -r win-arm64 -o build/win-arm64 --no-self-contained
# Linux
dotnet publish ./WhoIsLive.UX.Desktop/ -c Release -r linux-x64 -o build/linux-x64 --no-self-contained
dotnet publish ./WhoIsLive.UX.Desktop/ -c Release -r linux-arm -o build/linux-arm --no-self-contained
dotnet publish ./WhoIsLive.UX.Desktop/ -c Release -r linux-arm64 -o build/linux-arm64 --no-self-contained
# Mac
dotnet publish ./WhoIsLive.UX.Desktop/ -c Release -r osx-x64 -o build/osx-x64 --no-self-contained
dotnet publish ./WhoIsLive.UX.Desktop/ -c Release -r osx-arm64 -o build/osx-arm64 --no-self-contained
## Zip
# Windows
zip -r build/WhoIsLive-win-x64.zip build/win-x64/*
zip -r build/WhoIsLive-win-x86.zip build/win-x86/*
zip -r build/WhoIsLive-win-arm64.zip build/win-arm64/*
# Linux
zip -r build/WhoIsLive-linux-x64.zip build/linux-x64/*
zip -r build/WhoIsLive-linux-arm.zip build/linux-arm/*
zip -r build/WhoIsLive-linux-arm64.zip build/linux-arm64/*
# Mac
zip -r build/WhoIsLive-osx-x64.zip build/osx-x64/*
zip -r build/WhoIsLive-osx-arm64.zip build/osx-arm64/*
# Re-create hashes.txt
> "./build/hashes.txt"
# Append all hashes to hashes.txt
(
cd ./build
echo "" >> hashes.txt
# Compute all UX Hashes
for os in win linux osx; do
for arch in x64 x86 arm64; do
name="WhoIsLive-$os-$arch.zip"
if [ -f "$name" ]; then
echo "Computing $name"
sha256sum $name >> "hashes.txt"
fi
done
done
)