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