From 4b57fca0a0abe94f59a35ef9674e16757af0aaa2 Mon Sep 17 00:00:00 2001 From: Doddddd <88972478+Doddddd@users.noreply.github.com> Date: Mon, 4 Mar 2024 10:56:50 +0800 Subject: [PATCH 1/2] Add tar compress format --- scripts/run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/run.sh b/scripts/run.sh index b926b27fa..99361cc12 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -121,6 +121,7 @@ if [ "$COMPRESS_OUTPUT" = "--compress" ]; then Radiolist '([title]="Compress format" [default]="7z")' \ '7z' "7-Zip" 'on' \ + 'tar' "Tar" 'off' \ 'zip' "Zip" 'off' ) fi From cf290ac99e5976a2f95350769887c03449aff717 Mon Sep 17 00:00:00 2001 From: Doddddd <88972478+Doddddd@users.noreply.github.com> Date: Mon, 4 Mar 2024 10:59:54 +0800 Subject: [PATCH 2/2] Add tar compress format --- scripts/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index 2d72d6a3f..b6c9c02c4 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -130,6 +130,7 @@ ROOT_SOL_MAP=( COMPRESS_FORMAT_MAP=( "7z" + "tar" "zip" "none" ) @@ -561,6 +562,9 @@ if [ "$COMPRESS_FORMAT" != "none" ]; then if [ "$COMPRESS_FORMAT" = "7z" ]; then echo "Compressing with 7z to $OUTPUT_PATH" 7z a "${OUTPUT_PATH:?}" "$WORK_DIR/wsa/$artifact_name" || abort + elif [ "$COMPRESS_FORMAT" = "tar" ]; then + echo "Compressing with tar to $OUTPUT_PATH" + tar -C "$WORK_DIR/wsa" -cf "$OUTPUT_PATH" "$artifact_name" || abort elif [ "$COMPRESS_FORMAT" = "zip" ]; then echo "Compressing with zip to $OUTPUT_PATH" 7z -tzip a "$OUTPUT_PATH" "$WORK_DIR/wsa/$artifact_name" || abort