From 2ded20840302fb137b4a7e9cf3b6af717ceec5cf Mon Sep 17 00:00:00 2001 From: Aditya Garg Date: Fri, 10 May 2024 00:39:23 +0530 Subject: [PATCH] Fix iso.sh --- .github/workflows/CI.yml | 12 ++++++-- .github/workflows/iso.sh | 61 +++++++++++++--------------------------- build.sh | 2 +- 3 files changed, 30 insertions(+), 45 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a8b39b9..25466a1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -17,9 +17,11 @@ jobs: remove-android: 'true' remove-dotnet: 'true' remove-haskell: 'true' + remove-swapfile: 'true' + remove-codeql: 'true' - name: Build - run: sudo ./build.sh cinnamon + run: sudo ./build_in_docker.sh cinnamon - name: print sha256sum run: cat output/sha256* @@ -76,9 +78,11 @@ jobs: remove-android: 'true' remove-dotnet: 'true' remove-haskell: 'true' + remove-swapfile: 'true' + remove-codeql: 'true' - name: Build - run: sudo ./build.sh mate + run: sudo ./build_in_docker.sh mate - name: print sha256sum run: cat output/sha256* @@ -131,9 +135,11 @@ jobs: remove-android: 'true' remove-dotnet: 'true' remove-haskell: 'true' + remove-swapfile: 'true' + remove-codeql: 'true' - name: Build - run: sudo ./build.sh xfce + run: sudo ./build_in_docker.sh xfce - name: print sha256sum run: cat output/sha256* diff --git a/.github/workflows/iso.sh b/.github/workflows/iso.sh index 07f19b7..0e6c9fc 100644 --- a/.github/workflows/iso.sh +++ b/.github/workflows/iso.sh @@ -27,54 +27,34 @@ set -e cd $HOME/Downloads -latest=$(curl -sL https://github.com/t2linux/T2-Ubuntu/releases/latest/ | grep "Release" | awk -F " " '{print $2}' ) +latest=$(curl -sL https://github.com/t2linux/T2-Mint/releases/latest/ | grep "<title>Release" | awk -F " " '{print $2}' ) latestkver=$(echo $latest | cut -d "v" -f 2 | cut -d "-" -f 1) cat <<EOF -Choose the flavour of Ubuntu you wish to install: +Choose the flavour of Linux Mint you wish to install: -1. Ubuntu -2. Kubuntu +1. Cinnamon +2. Xfce +3. MATE -Type your choice (1 or 2) from the above list and press return. +Type your choice (1,2 or 3) from the above list and press return. EOF read flavinput case "$flavinput" in (1) - flavour=ubuntu + flavour=cinnamon + flavourcap=Cinnamon ;; (2) - flavour=kubuntu + flavour=xfce + flavourcap=Xfce ;; - (*) - echo "Invalid input. Aborting!" - exit 1 - ;; -esac - -cat <<EOF - -Choose the version of Ubuntu you wish to install: - -1. 22.04 LTS - Jammy Jellyfish -2. 24.04 LTS - Noble Numbat - -Type your choice (1 or 2) from the above list and press return. -EOF - -read verinput - -case "$verinput" in - (1) - iso="${flavour}-22.04-${latestkver}-t2-jammy" - ver="22.04 LTS - Jammy Jellyfish" - ;; - (2) - iso="${flavour}-24.04-${latestkver}-t2-noble" - ver="24.04 LTS - Noble Numbat" + (3) + flavour=mate + flavourcap=MATE ;; (*) echo "Invalid input. Aborting!" @@ -82,19 +62,18 @@ case "$verinput" in ;; esac -firstChar=$(echo "$flavour" | cut -c1 | tr '[a-z]' '[A-Z]') -restOfString=$(echo "$flavour" | cut -c2-) -flavourcap="${firstChar}${restOfString}" +iso="linuxmint-21.3-${flavour}-${latestkver}-t2-jammy" +ver="Linux Mint 21.3 \"Virginia\" - ${flavourcap} Edition" if [ ! -f ${iso}.z01 ]; then - echo -e "\nDownloading Part 1 for ${flavourcap} ${ver}" + echo -e "\nDownloading Part 1 for ${ver}" echo -e "\n" - curl -#L https://github.com/t2linux/T2-Ubuntu/releases/download/${latest}/${iso}.z01 > ${iso}.z01 + curl -#L https://github.com/t2linux/T2-Mint/releases/download/${latest}/${iso}.z01 > ${iso}.z01 fi if [ ! -f ${iso}.zip ]; then - echo -e "\nDownloading Part 2 for ${flavourcap} ${ver}" + echo -e "\nDownloading Part 2 for ${ver}" echo -e "\n" - curl -#L https://github.com/t2linux/T2-Ubuntu/releases/download/${latest}/${iso}.zip > ${iso}.zip + curl -#L https://github.com/t2linux/T2-Mint/releases/download/${latest}/${iso}.zip > ${iso}.zip fi echo -e "\nCreating ISO" @@ -105,7 +84,7 @@ mv $HOME/Downloads/repo/${iso}.iso $HOME/Downloads echo -e "\nVerifying sha256 checksums" -actual_iso_chksum=$(curl -sL https://github.com/t2linux/T2-Ubuntu/releases/download/${latest}/sha256-${flavour}-$(echo ${ver} | cut -d " " -f 1) | cut -d " " -f 1) +actual_iso_chksum=$(curl -sL https://github.com/t2linux/T2-Mint/releases/download/${latest}/sha256-${flavour} case "$os" in (Darwin) diff --git a/build.sh b/build.sh index ea17d52..5b4b09e 100755 --- a/build.sh +++ b/build.sh @@ -104,7 +104,7 @@ do zip -s 2000m "${ROOT_PATH}/output/linuxmint-${MINT_VERSION}-${FLAVOUR}-${KERNEL_VERSION}-${ALTERNATIVE}.zip" "${ROOT_PATH}/linuxmint-${MINT_VERSION}-${FLAVOUR}-${KERNEL_VERSION}-${ALTERNATIVE}.iso" done ## Calculate sha256 sums of built ISO -sha256sum "${ROOT_PATH}"/*.iso >"${ROOT_PATH}/output/sha256-linuxmint-${MINT_VERSION}-${FLAVOUR}" +sha256sum "${ROOT_PATH}"/*.iso >"${ROOT_PATH}/output/sha256-${FLAVOUR}" find ./ | grep ".iso" find ./ | grep ".zip"