-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·32 lines (27 loc) · 1.38 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
#!/usr/bin/env bash
set -euo pipefail
rm -rf ./bin ./obj
# runtime ids https://learn.microsoft.com/en-us/dotnet/core/rid-catalog
dotnet publish --runtime osx-arm64
dotnet publish --runtime osx-x64
dotnet publish --runtime linux-arm64
dotnet publish --runtime linux-x64
dotnet publish --runtime win-arm64
dotnet publish --runtime win-x64
dotnet publish --runtime win-x86
gzip -k 'bin/Release/net8.0/osx-arm64/publish/bunny-sdk'
gzip -k 'bin/Release/net8.0/osx-x64/publish/bunny-sdk'
gzip -k 'bin/Release/net8.0/linux-arm64/publish/bunny-sdk'
gzip -k 'bin/Release/net8.0/linux-x64/publish/bunny-sdk'
gzip -k 'bin/Release/net8.0/win-arm64/publish/bunny-sdk.exe'
gzip -k 'bin/Release/net8.0/win-x64/publish/bunny-sdk.exe'
gzip -k 'bin/Release/net8.0/win-x86/publish/bunny-sdk.exe'
rm -rf build
mkdir build
mv 'bin/Release/net8.0/osx-arm64/publish/bunny-sdk.gz' 'build/bunny-sdk-osx-arm64.gz'
mv 'bin/Release/net8.0/osx-x64/publish/bunny-sdk.gz' 'build/bunny-sdk-osx-x64.gz'
mv 'bin/Release/net8.0/linux-arm64/publish/bunny-sdk.gz' 'build/bunny-sdk-linux-arm64.gz'
mv 'bin/Release/net8.0/linux-x64/publish/bunny-sdk.gz' 'build/bunny-sdk-linux-x64.gz'
mv 'bin/Release/net8.0/win-arm64/publish/bunny-sdk.exe.gz' 'build/bunny-sdk-win-arm64.gz'
mv 'bin/Release/net8.0/win-x64/publish/bunny-sdk.exe.gz' 'build/bunny-sdk-win-x64.gz'
mv 'bin/Release/net8.0/win-x86/publish/bunny-sdk.exe.gz' 'build/bunny-sdk-win-x86.gz'