23 lines
778 B
Bash
Executable File
23 lines
778 B
Bash
Executable File
#!/bin/bash
|
|
|
|
VERSION="1.4.0"
|
|
SRC_DIR="src" # user ran script from main folder
|
|
if [ ! -d "$SRC_DIR" ]; then
|
|
SRC_DIR= "../src" # try
|
|
fi
|
|
if [ ! -d "$SRC_DIR" ]; then
|
|
echo "Please run from "installers" dir or from main repo directory"
|
|
exit 1
|
|
fi
|
|
cd "$SRC_DIR"
|
|
echo "Building release for linux-x64..."
|
|
dotnet publish -c Release -r linux-x64 -p:StripSymbols=False -p:PublishAot=False
|
|
echo "Zipping up linux-x64..."
|
|
cd bin/Release/net10.0/linux-x64/publish
|
|
zip -r "../../../../MayShow $VERSION linux-x64.zip" .
|
|
cd ../../../../../
|
|
echo "Building release for linux-arm64..."
|
|
dotnet publish -c Release -r linux-arm64 -p:StripSymbols=False -p:PublishAot=False
|
|
cd bin/Release/net10.0/linux-arm64/publish
|
|
zip -r "../../../../MayShow $VERSION linux-arm64.zip" .
|
|
cd ../../../../../ |