From eeac3c82b3b6f6e31173da51bf2f28a47fd1009c Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 19 Jan 2024 00:45:09 +0100 Subject: [PATCH] feat: Add Tiny10 and Tiny11 --- src/install.sh | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/install.sh b/src/install.sh index 6bf4d81..0578375 100644 --- a/src/install.sh +++ b/src/install.sh @@ -2,11 +2,9 @@ set -Eeuo pipefail : "${MANUAL:=""}" -: "${EXTERNAL:="N"}" +: "${EXTERNAL:=""}" : "${VERSION:="win11x64"}" -[[ "${VERSION,,}" == "http"* ]] && EXTERNAL="Y" - [[ "${VERSION,,}" == "11" ]] && VERSION="win11x64" [[ "${VERSION,,}" == "win11" ]] && VERSION="win11x64" @@ -34,6 +32,20 @@ set -Eeuo pipefail [[ "${VERSION,,}" == "win16" ]] && VERSION="win2016-eval" [[ "${VERSION,,}" == "win2016" ]] && VERSION="win2016-eval" +if [[ "${VERSION,,}" == "tiny10" ]]; then + VERSION="https://archive.org/download/tiny-10-23-h2/tiny10%20x64%2023h2.iso" +fi + +if [[ "${VERSION,,}" == "tiny11" ]]; then + VERSION="https://archive.org/download/tiny-11-NTDEV/tiny11%2023H2%20x64.iso" +fi + +if [[ "${VERSION,,}" == "http"* ]]; + EXTERNAL="Y" +else + EXTERNAL="N" +fi + MSG="Please wait while Windows is being started..." if [ ! -f "$STORAGE/custom.iso" ]; then @@ -131,10 +143,9 @@ if [ -z "$MANUAL" ]; then MANUAL="N" if [[ "$EXTERNAL" == [Yy1]* ]]; then - [[ "${BASE,,}" == "tiny10"* ]] && MANUAL="Y" - fi + fi if [[ "$MANUAL" != [Yy1]* ]]; then