From d16ca7ec139065e11e96232c540198baa1b0c482 Mon Sep 17 00:00:00 2001 From: Aditya Garg <85610623+AdityaGarg8@users.noreply.github.com> Date: Thu, 20 Jun 2024 16:10:43 +0530 Subject: [PATCH] Update iso.sh to support new naming scheme --- .github/workflows/iso.sh | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/iso.sh b/.github/workflows/iso.sh index 2aaa71d..1ce7cff 100644 --- a/.github/workflows/iso.sh +++ b/.github/workflows/iso.sh @@ -54,7 +54,7 @@ case "$flavinput" in ;; (3) flavour=mate - flavourcap=MATE + flavourcap=MATE ;; (*) echo "Invalid input. Aborting!" @@ -65,22 +65,19 @@ esac iso="linuxmint-21.3-${flavour}-${latestkver}-t2-jammy" ver="Linux Mint 21.3 \"Virginia\" - ${flavourcap} Edition" -if [ ! -f ${iso}.z01 ]; then +if [ ! -f ${iso}.iso.00 ]; then echo -e "\nDownloading Part 1 for ${ver}" echo -e "\n" - curl -#L https://github.com/t2linux/T2-Mint/releases/download/${latest}/${iso}.z01 > ${iso}.z01 + curl -#L https://github.com/t2linux/T2-Mint/releases/download/${latest}/${iso}.iso.00 > ${iso}.iso.00 fi -if [ ! -f ${iso}.zip ]; then +if [ ! -f ${iso}.iso.01 ]; then echo -e "\nDownloading Part 2 for ${ver}" echo -e "\n" - curl -#L https://github.com/t2linux/T2-Mint/releases/download/${latest}/${iso}.zip > ${iso}.zip + curl -#L https://github.com/t2linux/T2-Mint/releases/download/${latest}/${iso}.iso.01 > ${iso}.iso.01 fi echo -e "\nCreating ISO" -isofinal=$RANDOM -zip -F ${iso}.zip --out ${isofinal}.zip > /dev/null -unzip ${isofinal}.zip > /dev/null -mv $HOME/Downloads/home/runner/work/T2-Mint/T2-Mint/${iso}.iso $HOME/Downloads +cat ${iso}.iso.* > ${iso}.iso echo -e "\nVerifying sha256 checksums" @@ -105,9 +102,8 @@ echo -e "\nError: Failed to verify sha256 checksums of the ISO" rm $HOME/Downloads/${iso}.iso fi -rm -r $HOME/Downloads/home -rm $HOME/Downloads/${isofinal}.zip -rm $HOME/Downloads/${iso}.z?? +rm $HOME/Downloads/${iso}.iso.00 +rm $HOME/Downloads/${iso}.iso.01 if [[ ${actual_iso_chksum} != ${downloaded_iso_chksum} ]] then