-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·45 lines (36 loc) · 857 Bytes
/
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
#!/usr/bin/env bash
sdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $sdir
configuration="Release"
declare -a RID=(
"win-x64"
"win-x86"
"win-arm"
"win-arm64"
"win7-x64"
"win7-x86"
"win81-x64"
"win81-x86"
"win81-arm"
"win10-x64"
"win10-x86"
"win10-arm"
"win10-arm64"
"linux-x64"
"linux-musl-x64"
"linux-arm"
"linux-arm64"
"osx-x64"
"osx.10.10-x64"
"osx.10.11-x64"
"osx.10.12-x64"
"osx.10.13-x64"
"osx.10.14-x64"
)
for rt in "${RID[@]}"
do
mkdir -p "$sdir/bin/artifacts/$rt"
dotnet publish --configuration "$configuration" --runtime $rt -p:PublishSingleFile=true
rm "$sdir/bin/Release/netcoreapp3.1/$rt/publish/canvas-downloader.pdb"
mv "$sdir/bin/Release/netcoreapp3.1/$rt/publish/" "$sdir/bin/artifacts/$rt"
done