From 4118b3acbc12b366f8330dec095282353196afc8 Mon Sep 17 00:00:00 2001 From: Marcel Taeumel Date: Wed, 5 Jan 2022 16:58:31 +0100 Subject: [PATCH] Pack Linux bundles as .tar.gz, not .zip --- helpers_bundles.sh | 9 ++++++++- prepare_bundle_linux_arm.sh | 2 +- prepare_bundle_linux_x86.sh | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/helpers_bundles.sh b/helpers_bundles.sh index 28d42bf..532f3ef 100644 --- a/helpers_bundles.sh +++ b/helpers_bundles.sh @@ -106,11 +106,18 @@ compress_into_product() { target=$1 echo "...compressing $target..." pushd "${BUILD_PATH}" > /dev/null - # tar czf "${PRODUCT_PATH}/${target}.tar.gz" "./" zip -q -r "${PRODUCT_PATH}/${target}.zip" "./" popd > /dev/null } +compress_into_product_Linux() { + target=$1 + echo "...compressing $target..." + pushd "${BUILD_PATH}" > /dev/null + tar czf "${PRODUCT_PATH}/${target}.tar.gz" "./" + popd > /dev/null +} + compress_into_product_macOS() { source_path=$1 target_name=$2 diff --git a/prepare_bundle_linux_arm.sh b/prepare_bundle_linux_arm.sh index 0515464..4577b4c 100755 --- a/prepare_bundle_linux_arm.sh +++ b/prepare_bundle_linux_arm.sh @@ -44,7 +44,7 @@ echo "...applying various templates (squeak.sh)..." sed -i".bak" "s/%VM_NAME%/squeak/g" "${BUNDLE_PATH}/squeak.sh" rm -f "${BUNDLE_PATH}/squeak.sh.bak" -compress_into_product "${BUNDLE_NAME_LIN_ARM}" +compress_into_product_Linux "${BUNDLE_NAME_LIN_ARM}" reset_build_dir end_group diff --git a/prepare_bundle_linux_x86.sh b/prepare_bundle_linux_x86.sh index 9381e56..b3680b0 100755 --- a/prepare_bundle_linux_x86.sh +++ b/prepare_bundle_linux_x86.sh @@ -45,7 +45,7 @@ echo "...applying various templates (squeak.sh)..." sed -i".bak" "s/%VM_NAME%/squeak/g" "${BUNDLE_PATH}/squeak.sh" rm -f "${BUNDLE_PATH}/squeak.sh.bak" -compress_into_product "${BUNDLE_NAME_LIN_X86}" +compress_into_product_Linux "${BUNDLE_NAME_LIN_X86}" reset_build_dir end_group