Abheek Dhawan
3 years ago
3 changed files with 16 additions and 1 deletions
@ -0,0 +1,5 @@ |
|||||
|
#!/bin/bash |
||||
|
|
||||
|
dotnet publish -r linux-x64 -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -o ./builds/linux-x64 |
||||
|
dotnet publish -r win-x64 -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -o ./builds/win-x64 |
||||
|
dotnet publish -r osx-x64 -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true -o ./builds/osx-x64 |
@ -1,6 +1,15 @@ |
|||||
FOLDERS=UsmToolkit/bin/Release/netcoreapp3.1/*/ |
#!/bin/bash |
||||
|
cd builds |
||||
|
FOLDERS=*/ |
||||
|
|
||||
for f in $FOLDERS |
for f in $FOLDERS |
||||
do |
do |
||||
zip -r "${f%/*}.zip" $f |
zip -r "${f%/*}.zip" $f |
||||
done |
done |
||||
|
|
||||
|
echo "Cleaning up original directories..." |
||||
|
for f in $FOLDERS |
||||
|
do |
||||
|
rm -R $f |
||||
|
done |
||||
|
echo "Cleaned up. Exiting..." |
||||
|
Loading…
Reference in new issue