-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
29 lines (22 loc) · 1.31 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
rm -rf ./publish
mkdir --mode=ug+rwX ./publish
rm -rf ./publish/build.net
rm -rf ./publish/build.cur
rm -rf ./publish/build.lin64
rm -rf ./publish/build.lin64sc
dotnet publish --output ./publish/build.net -c Release --self-contained false /p:PublishSingleFile=false
dotnet publish --output ./publish/build.cur -c Release --use-current-runtime true --self-contained false /p:PublishSingleFile=true /p:PublishReadyToRun=true
dotnet publish --output ./publish/build.lin64 -c Release -r linux-x64 --self-contained false /p:PublishSingleFile=true
dotnet publish --output ./publish/build.lin64sc -c Release -r linux-x64 --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=true /p:PublishReadyToRun=false
7z a -y -t7z -stl -m0=lzma -mx=9 -ms=on -bb0 -bd -ssc -ssw ./publish/sdel-dotnet.7z ./publish/build.net/ >> /dev/null
7z a -y -t7z -stl -m0=lzma -mx=9 -ms=on -bb0 -bd -ssc -ssw ./publish/sdel-lin64.7z ./publish/build.lin64/ >> /dev/null
7z a -y -t7z -stl -m0=lzma -mx=9 -ms=on -bb0 -bd -ssc -ssw ./publish/sdel-lin64sc.7z ./publish/build.lin64sc/ >> /dev/null
echo
date
echo
echo 'Published in '
echo `realpath ./publish`
echo
echo 'sdel-dotnet for execute with dotnet sdel.dll'
echo 'sdel-lin64 for execute sdel (with .NET 7.0 on Linux)'
echo 'sdel-lin64sc for execute sdel on Linux x64 without .NET 7.0'