Skip to content

Commit

Permalink
Pack Linux bundles as .tar.gz, not .zip
Browse files Browse the repository at this point in the history
  • Loading branch information
marceltaeumel committed Jan 5, 2022
1 parent f058acf commit 4118b3a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion helpers_bundles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion prepare_bundle_linux_arm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion prepare_bundle_linux_x86.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4118b3a

Please sign in to comment.