Browse Source

Export tar.xz

pull/56/head
Luigi Cruz 3 years ago
parent
commit
d960adcc0b
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      export-image/04-finalise/01-run.sh

+ 3
- 2
export-image/04-finalise/01-run.sh View File

@@ -80,6 +80,7 @@ mkdir -p "${DEPLOY_DIR}"


rm -f "${DEPLOY_DIR}/${ZIP_FILENAME}${IMG_SUFFIX}.zip" rm -f "${DEPLOY_DIR}/${ZIP_FILENAME}${IMG_SUFFIX}.zip"
rm -f "${DEPLOY_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.img" rm -f "${DEPLOY_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.img"
rm -f "${DEPLOY_DIR}/${ZIP_FILENAME}${IMG_SUFFIX}.img.xz"


mv "$INFO_FILE" "$DEPLOY_DIR/" mv "$INFO_FILE" "$DEPLOY_DIR/"


@@ -97,9 +98,9 @@ fi


if [ "${DEPLOY_ZIP}" == "1" ]; then if [ "${DEPLOY_ZIP}" == "1" ]; then
pushd "${STAGE_WORK_DIR}" > /dev/null pushd "${STAGE_WORK_DIR}" > /dev/null
zip "${DEPLOY_DIR}/${ZIP_FILENAME}${IMG_SUFFIX}.zip" \
"$(basename "${IMG_FILE}")"
xz -c "$(basename "${IMG_FILE}")" > "${DEPLOY_DIR}/${ZIP_FILENAME}${IMG_SUFFIX}.img.xz"
popd > /dev/null popd > /dev/null
rm -f "${DEPLOY_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.img"
else else
mv "$IMG_FILE" "$DEPLOY_DIR/" mv "$IMG_FILE" "$DEPLOY_DIR/"
fi fi

Loading…
Cancel
Save