From c8f314dcc72c873248dc066cb45cf879a6930522 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 1 Oct 2026 20:14:22 -0700 Subject: [PATCH] compile, finalize the tar files. --- compile.sh | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/compile.sh b/compile.sh index c6c2d9b..b629c8f 100755 --- a/compile.sh +++ b/compile.sh @@ -60,23 +60,26 @@ set -x flutter build linux ${BUILD_OPTIONS[@]} set +x -log "Saving Linux Bundle..." - log "- zip" filename=$RELEASE.linux-bundle.zip +contents="build/linux/x64/release/bundle/" if [[ -e $filename ]]; then rm -v $filename fi -zip -r $filename build/linux/x64/release/bundle/* +zip -qr "$filename" "$contents"/* ls -sh $filename -#log "- tar" -#filename=$RELEASE.linux-bundle.tar -#if [[ -e "$filename"* ]]; then -# rm -v $filename* -#fi -#zip -r $filename build/linux/x64/release/bundle/* -#ls -sh $filename +log "- tar" +filename=$RELEASE.tar +if [[ -e "$filename"* ]]; then + rm -v "$filename"* +fi +set -x +tar -c --zstd -f "${filename}.zst" -C "$contents" . +tar -cz -f "${filename}.gz" -C "$contents" . +tar -cJ -f "${filename}.xz" -C "$contents" . +set +x +ls -sh "$filename"* | sort -h # Android