From 2f14270379eed5f11d004241c974babd88dc2801 Mon Sep 17 00:00:00 2001 From: Michael Babienco Date: Mon, 2 Mar 2026 17:50:57 +0900 Subject: [PATCH] Improve Linux build script with auto-zip --- installers/build-linux.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/installers/build-linux.sh b/installers/build-linux.sh index 43145b0..d2c506b 100755 --- a/installers/build-linux.sh +++ b/installers/build-linux.sh @@ -1,5 +1,6 @@ #!/bin/bash +VERSION="1.3.0" SRC_DIR="src" # user ran script from main folder if [ ! -d "$SRC_DIR" ]; then SRC_DIR= "../src" # try @@ -11,6 +12,12 @@ 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-arm64.zip" . +cd ../../../../../ echo "Building release for linux-arm64..." dotnet publish -c Release -r linux-arm64 -p:StripSymbols=False -p:PublishAot=False -# TODO: add automatic zipping and version number setting for ease of use \ No newline at end of file +cd bin/Release/net10.0/linux-arm64/publish +zip -r "../../../../MayShow $VERSION linux-arm64.zip" . +cd ../../../../../ \ No newline at end of file