From b84a2b60a9e1737f8b8183df996440f649451493 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 24 Nov 2024 22:00:24 +0100 Subject: [PATCH] feat: Additional download mirrors (#923) --- Dockerfile | 2 +- src/define.sh | 995 +++++--------------------------------------------- src/mido.sh | 261 ++++++++++++- 3 files changed, 347 insertions(+), 911 deletions(-) diff --git a/Dockerfile b/Dockerfile index a610fbc..80619ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ ARG VERSION_ARG="latest" FROM scratch AS build-amd64 -COPY --from=qemux/qemu-docker:6.08 / / +COPY --from=qemux/qemu-docker:6.09 / / ARG DEBCONF_NOWARNINGS="yes" ARG DEBIAN_FRONTEND="noninteractive" diff --git a/src/define.sh b/src/define.sh index 00fe997..ef93d41 100644 --- a/src/define.sh +++ b/src/define.sh @@ -14,7 +14,7 @@ set -Eeuo pipefail : "${USERNAME:=""}" : "${PASSWORD:=""}" -MIRRORS=4 +MIRRORS=3 PLATFORM="x64" parseVersion() { @@ -132,162 +132,202 @@ getLanguage() { local ret="$2" local lang="" local desc="" + local short="" local culture="" case "${id,,}" in "ar" | "ar-"* ) + short="ar" lang="Arabic" desc="$lang" culture="ar-SA" ;; "bg" | "bg-"* ) + short="bg" lang="Bulgarian" desc="$lang" culture="bg-BG" ;; "cs" | "cs-"* | "cz" | "cz-"* ) + short="cs" lang="Czech" desc="$lang" culture="cs-CZ" ;; "da" | "da-"* | "dk" | "dk-"* ) + short="da" lang="Danish" desc="$lang" culture="da-DK" ;; "de" | "de-"* ) + short="de" lang="German" desc="$lang" culture="de-DE" ;; "el" | "el-"* | "gr" | "gr-"* ) + short="el" lang="Greek" desc="$lang" culture="el-GR" ;; "gb" | "en-gb" ) + short="en-gb" lang="English International" desc="English" culture="en-GB" ;; "en" | "en-"* ) + short="en" lang="English" desc="English" culture="en-US" ;; "mx" | "es-mx" ) + short="mx" lang="Spanish (Mexico)" desc="Spanish" culture="es-MX" ;; "es" | "es-"* ) + short="es" lang="Spanish" desc="$lang" culture="es-ES" ;; "et" | "et-"* ) + short="et" lang="Estonian" desc="$lang" culture="et-EE" ;; "fi" | "fi-"* ) + short="fi" lang="Finnish" desc="$lang" culture="fi-FI" ;; "ca" | "fr-ca" ) + short="ca" lang="French Canadian" desc="French" culture="fr-CA" ;; "fr" | "fr-"* ) + short="fr" lang="French" desc="$lang" culture="fr-FR" ;; "he" | "he-"* | "il" | "il-"* ) + short="he" lang="Hebrew" desc="$lang" culture="he-IL" ;; "hr" | "hr-"* | "cr" | "cr-"* ) + short="hr" lang="Croatian" desc="$lang" culture="hr-HR" ;; "hu" | "hu-"* ) + short="hu" lang="Hungarian" desc="$lang" culture="hu-HU" ;; "it" | "it-"* ) + short="it" lang="Italian" desc="$lang" culture="it-IT" ;; "ja" | "ja-"* | "jp" | "jp-"* ) + short="ja" lang="Japanese" desc="$lang" culture="ja-JP" ;; "ko" | "ko-"* | "kr" | "kr-"* ) + short="ko" lang="Korean" desc="$lang" culture="ko-KR" ;; "lt" | "lt-"* ) + short="lt" lang="Lithuanian" desc="$lang" - culture="lv-LV" ;; + culture="lt-LT" ;; "lv" | "lv-"* ) + short="lv" lang="Latvian" desc="$lang" - culture="lt-LT" ;; + culture="lv-LV" ;; "nb" | "nb-"* |"nn" | "nn-"* | "no" | "no-"* ) + short="no" lang="Norwegian" desc="$lang" culture="nb-NO" ;; "nl" | "nl-"* ) + short="nl" lang="Dutch" desc="$lang" culture="nl-NL" ;; "pl" | "pl-"* ) + short="pl" lang="Polish" desc="$lang" culture="pl-PL" ;; "br" | "pt-br" ) + short="pt" lang="Brazilian Portuguese" desc="Portuguese" culture="pt-BR" ;; "pt" | "pt-"* ) + short="pp" lang="Portuguese" desc="$lang" culture="pt-BR" ;; "ro" | "ro-"* ) + short="ro" lang="Romanian" desc="$lang" culture="ro-RO" ;; "ru" | "ru-"* ) + short="ru" lang="Russian" desc="$lang" culture="ru-RU" ;; "sk" | "sk-"* ) + short="sk" lang="Slovak" desc="$lang" culture="sk-SK" ;; "sl" | "sl-"* | "si" | "si-"* ) + short="sl" lang="Slovenian" desc="$lang" culture="sl-SI" ;; "sr" | "sr-"* ) + short="sr" lang="Serbian Latin" desc="Serbian" culture="sr-Latn-RS" ;; "sv" | "sv-"* | "se" | "se-"* ) + short="sv" lang="Swedish" desc="$lang" culture="sv-SE" ;; "th" | "th-"* ) + short="th" lang="Thai" desc="$lang" culture="th-TH" ;; "tr" | "tr-"* ) + short="tr" lang="Turkish" desc="$lang" culture="tr-TR" ;; "ua" | "ua-"* | "uk" | "uk-"* ) + short="uk" lang="Ukrainian" desc="$lang" culture="uk-UA" ;; "hk" | "zh-hk" | "cn-hk" ) + short="hk" lang="Chinese (Traditional)" desc="Chinese HK" culture="zh-TW" ;; "tw" | "zh-tw" | "cn-tw" ) + short="tw" lang="Chinese (Traditional)" desc="Chinese TW" culture="zh-TW" ;; "zh" | "zh-"* | "cn" | "cn-"* ) + short="cn" lang="Chinese (Simplified)" desc="Chinese" culture="zh-CN" ;; @@ -296,6 +336,7 @@ getLanguage() { case "${ret,,}" in "desc" ) echo "$desc" ;; "name" ) echo "$lang" ;; + "code" ) echo "$short" ;; "culture" ) echo "$culture" ;; *) echo "$desc";; esac @@ -949,900 +990,6 @@ getLink2() { getLink3() { - # Fallbacks for users who cannot connect to the Microsoft servers - - local id="$1" - local lang="$2" - local ret="$3" - local url="" - local sum="" - local size="" - local host="https://drive.massgrave.dev" - local w19="windows_server_2019_x64_dvd" - local w25="windows_server_2025_x64_dvd" - local w16="windows_server_2016_vl_x64_dvd" - local w12="windows_server_2012_r2_vl_with_update_x64_dvd" - local w08="windows_server_2008_r2_with_sp1_vl_build_x64_dvd" - local w81="windows_8.1_enterprise_with_update_x64_dvd" - local l11="windows_11_enterprise_ltsc_2024_x64_dvd" - local l10="windows_10_enterprise_ltsc_2021_x64_dvd" - local c11="windows_11_consumer_editions_version_24h2_x64_dvd" - local b11="windows_11_business_editions_version_24h2_x64_dvd" - local w22="windows_server_2022_updated_oct_2024_x64_dvd_d1a47ecc" - local b10="windows_10_business_editions_version_22h2_updated_oct_2024_x64_dvd" - local c10="windows_10_consumer_editions_version_22h2_updated_oct_2024_x64_dvd_d0cfb2e9" - - culture=$(getLanguage "$lang" "culture") - - case "${id,,}" in - "win11x64" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar-sa_${c11}_3c9a7ef3.iso" ;; - "bg" | "bg-"* ) url="bg-bg_${c11}_f8623745.iso" ;; - "cs" | "cs-"* ) url="cs-cz_${c11}_ae72ca80.iso" ;; - "da" | "da-"* ) url="da-dk_${c11}_4f25c452.iso" ;; - "de" | "de-"* ) url="de-de_${c11}_bc4adebe.iso" ;; - "el" | "el-"* ) url="el-gr_${c11}_9e6ef9a0.iso" ;; - "gb" | "en-gb" ) url="en-gb_${c11}_4b3a8183.iso" ;; - "en" | "en-"* ) - size=5819484160 - sum="b56b911bf18a2ceaeb3904d87e7c770bdf92d3099599d61ac2497b91bf190b11" - url="en-us_${c11}_1d5fcad3.iso" ;; - "mx" | "es-mx" ) url="es-es_${c11}_3bc0e5c3.iso" ;; - "es" | "es-"* ) url="es-mx_${c11}_a28d9dab.iso" ;; - "et" | "et-"* ) url="et-ee_${c11}_48306c65.iso" ;; - "fi" | "fi-"* ) url="fi-fi_${c11}_21618747.iso" ;; - "ca" | "fr-ca" ) url="fr-ca_${c11}_42755257.iso" ;; - "fr" | "fr-"* ) url="fr-fr_${c11}_033875c5.iso" ;; - "he" | "he-"* ) url="he-il_${c11}_533bc3ac.iso" ;; - "hr" | "hr-"* ) url="hr-hr_${c11}_40c769ed.iso" ;; - "hu" | "hu-"* ) url="hu-hu_${c11}_7d2259d6.iso" ;; - "it" | "it-"* ) url="it-it_${c11}_33e81ff0.iso" ;; - "ja" | "ja-"* ) url="ja-jp_${c11}_fc6538fd.iso" ;; - "ko" | "ko-"* ) url="ko-kr_${c11}_f09a396b.iso" ;; - "lt" | "lt-"* ) url="lt-lt_${c11}_22d54265.iso" ;; - "lv" | "lv-"* ) url="lv-lv_${c11}_5ff65441.iso" ;; - "nb" | "nb-"* ) url="nb-no_${c11}_5a5d625b.iso" ;; - "nl" | "nl-"* ) url="nl-nl_${c11}_7959020a.iso" ;; - "pl" | "pl-"* ) url="pl-pl_${c11}_c0dcd21b.iso" ;; - "br" | "pt-br" ) url="pt-br_${c11}_751fe150.iso" ;; - "pt" | "pt-"* ) url="pt-pt_${c11}_e0df188a.iso" ;; - "ro" | "ro-"* ) url="ro-ro_${c11}_0821b265.iso" ;; - "ru" | "ru-"* ) url="ru-ru_${c11}_784471d8.iso" ;; - "sk" | "sk-"* ) url="sk-sk_${c11}_fd13020e.iso" ;; - "sl" | "sl-"* ) url="sl-si_${c11}_9aa9f408.iso" ;; - "sr" | "sr-"* ) url="sr-latn-rs_${c11}_febab1a9.iso" ;; - "sv" | "sv-"* ) url="sv-se_${c11}_fe34647f.iso" ;; - "th" | "th-"* ) url="th-th_${c11}_fc3e523e.iso" ;; - "tr" | "tr-"* ) url="tr-tr_${c11}_443fefaf.iso" ;; - "uk" | "uk-"* ) url="uk-ua_${c11}_32966915.iso" ;; - "zh-hk" | "zh-tw" ) url="zh-tw_${c11}_d0825b63.iso" ;; - "zh" | "zh-"* ) url="zh-cn_${c11}_bfc0d79b.iso" ;; - esac - ;; - "win11x64-enterprise" | "win11x64-enterprise-eval" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar-sa_${b11}_47dae48e.iso" ;; - "bg" | "bg-"* ) url="bg-bg_${b11}_4231caca.iso" ;; - "cs" | "cs-"* ) url="cs-cz_${b11}_ca1661fd.iso" ;; - "da" | "da-"* ) url="da-dk_${b11}_ac0db9fc.iso" ;; - "de" | "de-"* ) url="de-de_${b11}_87a70226.iso" ;; - "el" | "el-"* ) url="el-gr_${b11}_946ba34d.iso" ;; - "gb" | "en-gb" ) url="en-gb_${b11}_27d8c2f1.iso" ;; - "en" | "en-"* ) - size=5722114048 - sum="d0dca325314322518ae967d58c3061bcae57ee9743a8a1cf374aad8637e5e8ac" - url="en-us_${b11}_59a1851e.iso" ;; - "mx" | "es-mx" ) url="es-es_${b11}_86632f8d.iso" ;; - "es" | "es-"* ) url="es-mx_${b11}_6ee25ce4.iso" ;; - "et" | "et-"* ) url="et-ee_${b11}_c26c1e3a.iso" ;; - "fi" | "fi-"* ) url="fi-fi_${b11}_59dd0bb5.iso" ;; - "ca" | "fr-ca" ) url="fr-ca_${b11}_a02f0c99.iso" ;; - "fr" | "fr-"* ) url="fr-fr_${b11}_c0a4510e.iso" ;; - "he" | "he-"* ) url="he-il_${b11}_c844d280.iso" ;; - "hr" | "hr-"* ) url="hr-hr_${b11}_6e4839cc.iso" ;; - "hu" | "hu-"* ) url="hu-hu_${b11}_aed71101.iso" ;; - "it" | "it-"* ) url="it-it_${b11}_5552c3a1.iso" ;; - "ja" | "ja-"* ) url="ja-jp_${b11}_7fdb7541.iso" ;; - "ko" | "ko-"* ) url="ko-kr_${b11}_646bb9fc.iso" ;; - "lt" | "lt-"* ) url="lt-lt_${b11}_54d6d7e2.iso" ;; - "lv" | "lv-"* ) url="lv-lv_${b11}_acee0541.iso" ;; - "nb" | "nb-"* ) url="nb-no_${b11}_78f22960.iso" ;; - "nl" | "nl-"* ) url="nl-nl_${b11}_0719b251.iso" ;; - "pl" | "pl-"* ) url="pl-pl_${b11}_1a183794.iso" ;; - "br" | "pt-br" ) url="pt-br_${b11}_ecc90645.iso" ;; - "pt" | "pt-"* ) url="pt-pt_${b11}_e7bf77a1.iso" ;; - "ro" | "ro-"* ) url="ro-ro_${b11}_9adc8d7b.iso" ;; - "ru" | "ru-"* ) url="ru-ru_${b11}_f9b9b5d6.iso" ;; - "sk" | "sk-"* ) url="sk-sk_${b11}_1a91433b.iso" ;; - "sl" | "sl-"* ) url="sl-si_${b11}_0b79bd14.iso" ;; - "sr" | "sr-"* ) url="sr-latn-rs_${b11}_8a4b35b5.iso" ;; - "sv" | "sv-"* ) url="sv-se_${b11}_55ad9818.iso" ;; - "th" | "th-"* ) url="th-th_${b11}_a2a350c3.iso" ;; - "tr" | "tr-"* ) url="tr-tr_${b11}_f35a9f1b.iso" ;; - "uk" | "uk-"* ) url="uk-ua_${b11}_38ff1d1d.iso" ;; - "zh-hk" | "zh-tw" ) url="zh-tw_${b11}_a9b30de5.iso" ;; - "zh" | "zh-"* ) url="zh-cn_${b11}_5f9e5858.iso" ;; - esac - ;; - "win11x64-ltsc" | "win11x64-enterprise-ltsc-eval" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar-sa_${l11}_8012f159.iso" ;; - "bg" | "bg-"* ) url="bg-bg_${l11}_2778f4e8.iso" ;; - "cs" | "cs-"* ) url="cs-cz_${l11}_d4ef05f2.iso" ;; - "da" | "da-"* ) url="da-dk_${l11}_c231c267.iso" ;; - "de" | "de-"* ) url="de-de_${l11}_4f136f69.iso" ;; - "el" | "el-"* ) url="el-gr_${l11}_54eaabb2.iso" ;; - "gb" | "en-gb" ) url="en-gb_${l11}_e2137661.iso" ;; - "en" | "en-"* ) - size=5125844992 - sum="157d8365a517c40afeb3106fdd74d0836e1025debbc343f2080e1a8687607f51" - url="en-us_${l11}_965cfb00.iso" ;; - "mx" | "es-mx" ) url="es-mx_${l11}_3310c094.iso" ;; - "es" | "es-"* ) url="es-es_${l11}_77392d61.iso" ;; - "et" | "et-"* ) url="et-ee_${l11}_2dbd4bfe.iso" ;; - "fi" | "fi-"* ) url="fi-fi_${l11}_998f5df6.iso" ;; - "ca" | "fr-ca" ) url="fr-ca_${l11}_78732953.iso" ;; - "fr" | "fr-"* ) url="fr-fr_${l11}_d66e386e.iso" ;; - "he" | "he-"* ) url="he-il_${l11}_fae050ec.iso" ;; - "hr" | "hr-"* ) url="hr-hr_${l11}_e3594411.iso" ;; - "hu" | "hu-"* ) url="hu-hu_${l11}_8fea6034.iso" ;; - "it" | "it-"* ) url="it-it_${l11}_1e8cabb6.iso" ;; - "ja" | "ja-"* ) url="ja-jp_${l11}_e59ad418.iso" ;; - "ko" | "ko-"* ) url="ko-kr_${l11}_b6b6eb18.iso" ;; - "lt" | "lt-"* ) url="lt-lt_${l11}_145479e9.iso" ;; - "lv" | "lv-"* ) url="lv-lv_${l11}_e0ebc53d.iso" ;; - "nb" | "nb-"* ) url="nb-no_${l11}_d41eeb48.iso" ;; - "nl" | "nl-"* ) url="nl-nl_${l11}_e3063aab.iso" ;; - "pl" | "pl-"* ) url="pl-pl_${l11}_e00807a1.iso" ;; - "br" | "pt-br" ) url="pt-br_${l11}_2bb6b75b.iso" ;; - "pt" | "pt-"* ) url="pt-pt_${l11}_2f34bd6b.iso" ;; - "ro" | "ro-"* ) url="ro-ro_${l11}_2eadb4df.iso" ;; - "ru" | "ru-"* ) url="ru-ru_${l11}_f9af5773.iso" ;; - "sk" | "sk-"* ) url="sk-sk_${l11}_03b916e7.iso" ;; - "sl" | "sl-"* ) url="sl-si_${l11}_310b3a76.iso" ;; - "sr" | "sr-"* ) url="sr-latn-rs_${l11}_3dfa5da5.iso" ;; - "sv" | "sv-"* ) url="sv-se_${l11}_191cf991.iso" ;; - "th" | "th-"* ) url="th-th_${l11}_47ce2c8a.iso" ;; - "tr" | "tr-"* ) url="tr-tr_${l11}_27bdab81.iso" ;; - "uk" | "uk-"* ) url="uk-ua_${l11}_b3f00872.iso" ;; - "zh-hk" | "zh-tw" ) url="zh-tw_${l11}_6287d84d.iso" ;; - "zh" | "zh-"* ) url="zh-cn_${l11}_cff9cd2d.iso" ;; - esac - ;; - "win11x64-iot" | "win11x64-enterprise-iot-eval" ) - [[ "${lang,,}" != "en" ]] && [[ "${lang,,}" != "en-us" ]] && return 0 - size=5144817664 - sum="4f59662a96fc1da48c1b415d6c369d08af55ddd64e8f1c84e0166d9e50405d7a" - url="en-us_windows_11_iot_enterprise_ltsc_2024_x64_dvd_f6b14814.iso" - ;; - "win10x64" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar-sa_${c10}.iso" ;; - "bg" | "bg-"* ) url="bg-bg_${c10}.iso" ;; - "cs" | "cs-"* ) url="cs-cz_${c10}.iso" ;; - "da" | "da-"* ) url="da-dk_${c10}.iso" ;; - "de" | "de-"* ) url="de-de_${c10}.iso" ;; - "el" | "el-"* ) url="el-gr_${c10}.iso" ;; - "gb" | "en-gb" ) url="en-gb_${c10}.iso" ;; - "en" | "en-"* ) - size=7176140800 - sum="dda45d271061937657689b30944c792be97405fd5ca2110094049dc01a9201ec" - url="en-us_${c10}.iso" ;; - "mx" | "es-mx" ) url="es-mx_${c10}.iso" ;; - "es" | "es-"* ) url="es-es_${c10}.iso" ;; - "et" | "et-"* ) url="et-ee_${c10}.iso" ;; - "fi" | "fi-"* ) url="fi-fi_${c10}.iso" ;; - "ca" | "fr-ca" ) url="fr-ca_${c10}.iso" ;; - "fr" | "fr-"* ) url="fr-fr_${c10}.iso" ;; - "he" | "he-"* ) url="he-il_${c10}.iso" ;; - "hr" | "hr-"* ) url="hr-hr_${c10}.iso" ;; - "hu" | "hu-"* ) url="hu-hu_${c10}.iso" ;; - "it" | "it-"* ) url="it-it_${c10}.iso" ;; - "ja" | "ja-"* ) url="ja-jp_${c10}.iso" ;; - "ko" | "ko-"* ) url="ko-kr_${c10}.iso" ;; - "lt" | "lt-"* ) url="lt-lt_${c10}.iso" ;; - "lv" | "lv-"* ) url="lv-lv_${c10}.iso" ;; - "nb" | "nb-"* ) url="nb-no_${c10}.iso" ;; - "nl" | "nl-"* ) url="nl-nl_${c10}.iso" ;; - "pl" | "pl-"* ) url="pl-pl_${c10}.iso" ;; - "br" | "pt-br" ) url="pt-br_${c10}.iso" ;; - "pt" | "pt-"* ) url="pt-pt_${c10}.iso" ;; - "ro" | "ro-"* ) url="ro-ro_${c10}.iso" ;; - "ru" | "ru-"* ) url="ru-ru_${c10}.iso" ;; - "sk" | "sk-"* ) url="sk-sk_${c10}.iso" ;; - "sl" | "sl-"* ) url="sl-si_${c10}.iso" ;; - "sr" | "sr-"* ) url="sr-latn-rs_${c10}.iso" ;; - "sv" | "sv-"* ) url="sv-se_${c10}.iso" ;; - "th" | "th-"* ) url="th-th_${c10}.iso" ;; - "tr" | "tr-"* ) url="tr-tr_${c10}.iso" ;; - "uk" | "uk-"* ) url="uk-ua_${c10}.iso" ;; - "zh-hk" | "zh-tw" ) url="zh-tw_${c10}.iso" ;; - "zh" | "zh-"* ) url="zh-cn_${c10}.iso" ;; - esac - ;; - "win10x64-enterprise" | "win10x64-enterprise-eval" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar-sa_${b10}_72d26609.iso" ;; - "bg" | "bg-"* ) url="bg-bg_${b10}_916cba75.iso" ;; - "cs" | "cs-"* ) url="cs-cz_${b10}_737b3dce.iso" ;; - "da" | "da-"* ) url="da-dk_${b10}_beb2874a.iso" ;; - "de" | "de-"* ) url="de-de_${b10}_e5656293.iso" ;; - "el" | "el-"* ) url="el-gr_${b10}_3dcced88.iso" ;; - "gb" | "en-gb" ) url="en-gb_${b10}_4b87ccc8.iso" ;; - "en" | "en-"* ) - size=6985318400 - sum="cd224fff371bbce4ab2120a3ace8ed30dc5c48c87f766ff699eed3327d0db83e" - url="en-us_${b10}_66a185c7.iso" ;; - "mx" | "es-mx" ) url="es-mx_${b10}_c71c3a9b.iso" ;; - "es" | "es-"* ) url="es-es_${b10}_6a893bdb.iso" ;; - "et" | "et-"* ) url="et-ee_${b10}_e73ca294.iso" ;; - "fi" | "fi-"* ) url="fi-fi_${b10}_b4138a1f.iso" ;; - "ca" | "fr-ca" ) url="fr-ca_${b10}_fa1fcfd1.iso" ;; - "fr" | "fr-"* ) url="fr-fr_${b10}_2582115c.iso" ;; - "he" | "he-"* ) url="he-il_${b10}_070da6e1.iso" ;; - "hr" | "hr-"* ) url="hr-hr_${b10}_7ab0b83d.iso" ;; - "hu" | "hu-"* ) url="hu-hu_${b10}_9ae1341c.iso" ;; - "it" | "it-"* ) url="it-it_${b10}_ed9771c1.iso" ;; - "ja" | "ja-"* ) url="ja-jp_${b10}_41fb6974.iso" ;; - "ko" | "ko-"* ) url="ko-kr_${b10}_8ee84458.iso" ;; - "lt" | "lt-"* ) url="lt-lt_${b10}_dde00c8b.iso" ;; - "lv" | "lv-"* ) url="lv-lv_${b10}_3c6ec670.iso" ;; - "nb" | "nb-"* ) url="nb-no_${b10}_5c0830a7.iso" ;; - "nl" | "nl-"* ) url="nl-nl_${b10}_98c1911c.iso" ;; - "pl" | "pl-"* ) url="pl-pl_${b10}_21470c6f.iso" ;; - "br" | "pt-br" ) url="pt-br_${b10}_a8287ba4.iso" ;; - "pt" | "pt-"* ) url="pt-pt_${b10}_927e183d.iso" ;; - "ro" | "ro-"* ) url="ro-ro_${b10}_05768a51.iso" ;; - "ru" | "ru-"* ) url="ru-ru_${b10}_e0d31c6c.iso" ;; - "sk" | "sk-"* ) url="sk-sk_${b10}_a09d6210.iso" ;; - "sl" | "sl-"* ) url="sl-si_${b10}_b6e9be37.iso" ;; - "sr" | "sr-"* ) url="sr-latn-rs_${b10}_d3114222.iso" ;; - "sv" | "sv-"* ) url="sv-se_${b10}_4fbbd5fa.iso" ;; - "th" | "th-"* ) url="th-th_${b10}_c820f914.iso" ;; - "tr" | "tr-"* ) url="tr-tr_${b10}_62d51ca5.iso" ;; - "uk" | "uk-"* ) url="uk-ua_${b10}_3d50cf88.iso" ;; - "zh-hk" | "zh-tw" ) url="zh-tw_${b10}_2fab2287.iso" ;; - "zh" | "zh-"* ) url="zh-cn_${b10}_52bd0537.iso" ;; - esac - ;; - "win10x64-ltsc" | "win10x64-enterprise-ltsc-eval" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar-sa_${l10}_60bc2a7a.iso" ;; - "bg" | "bg-"* ) url="bg-bg_${l10}_b0887275.iso" ;; - "cs" | "cs-"* ) url="cs-cz_${l10}_d624c653.iso" ;; - "da" | "da-"* ) url="da-dk_${l10}_6ec511bb.iso" ;; - "de" | "de-"* ) url="de-de_${l10}_71796d33.iso" ;; - "el" | "el-"* ) url="el-gr_${l10}_c83eab34.iso" ;; - "gb" | "en-gb" ) url="en-gb_${l10}_7fe51fe8.iso" ;; - "en" | "en-"* ) - size=4899461120 - sum="c90a6df8997bf49e56b9673982f3e80745058723a707aef8f22998ae6479597d" - url="en-us_${l10}_d289cf96.iso" ;; - "mx" | "es-mx" ) url="es-mx_${l10}_f6aaf384.iso" ;; - "es" | "es-"* ) url="es-es_${l10}_51d721ea.iso" ;; - "et" | "et-"* ) url="et-ee_${l10}_012a5c50.iso" ;; - "fi" | "fi-"* ) url="fi-fi_${l10}_551582d9.iso" ;; - "ca" | "fr-ca" ) url="fr-ca_${l10}_2770e649.iso" ;; - "fr" | "fr-"* ) url="fr-fr_${l10}_bda01eb0.iso" ;; - "he" | "he-"* ) url="he-il_${l10}_3a55ecd6.iso" ;; - "hr" | "hr-"* ) url="hr-hr_${l10}_f5085b75.iso" ;; - "hu" | "hu-"* ) url="hu-hu_${l10}_d541ddb3.iso" ;; - "it" | "it-"* ) url="it-it_${l10}_0c1aa034.iso" ;; - "ja" | "ja-"* ) url="ja-jp_${l10}_ef58c6a1.iso" ;; - "ko" | "ko-"* ) url="ko-kr_${l10}_6d26f398.iso" ;; - "lt" | "lt-"* ) url="lt-lt_${l10}_9ffbbd5b.iso" ;; - "lv" | "lv-"* ) url="lv-lv_${l10}_6c89d2e0.iso" ;; - "nb" | "nb-"* ) url="nb-no_${l10}_c65c51a5.iso" ;; - "nl" | "nl-"* ) url="nl-nl_${l10}_88f53466.iso" ;; - "pl" | "pl-"* ) url="pl-pl_${l10}_eff40776.iso" ;; - "br" | "pt-br" ) url="pt-br_${l10}_f318268e.iso" ;; - "pt" | "pt-"* ) url="pt-pt_${l10}_f2e9b6a0.iso" ;; - "ro" | "ro-"* ) url="ro-ro_${l10}_ae2284d6.iso" ;; - "ru" | "ru-"* ) url="ru-ru_${l10}_5044a1e7.iso" ;; - "sk" | "sk-"* ) url="sk-sk_${l10}_d6c64c5f.iso" ;; - "sl" | "sl-"* ) url="sl-si_${l10}_ec090386.iso" ;; - "sr" | "sr-"* ) url="sr-latn-rs_${l10}_2d2f8815.iso" ;; - "sv" | "sv-"* ) url="sv-se_${l10}_9a28bb6b.iso" ;; - "th" | "th-"* ) url="th-th_${l10}_b7ed34d6.iso" ;; - "tr" | "tr-"* ) url="tr-tr_${l10}_e55b1896.iso" ;; - "uk" | "uk-"* ) url="uk-ua_${l10}_816da3c3.iso" ;; - "zh-hk" | "zh-tw" ) url="zh-tw_${l10}_80dba877.iso" ;; - "zh" | "zh-"* ) url="zh-cn_${l10}_033b7312.iso" ;; - esac - ;; - "win10x64-iot" | "win10x64-enterprise-iot-eval" ) - [[ "${lang,,}" != "en" ]] && [[ "${lang,,}" != "en-us" ]] && return 0 - size=4851668992 - sum="a0334f31ea7a3e6932b9ad7206608248f0bd40698bfb8fc65f14fc5e4976c160" - url="en-us_windows_10_iot_enterprise_ltsc_2021_x64_dvd_257ad90f.iso" - ;; - "win81x64-enterprise" | "win81x64-enterprise-eval" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar_${w81}_6050360.iso" ;; - "bg" | "bg-"* ) url="bg_${w81}_6050367.iso" ;; - "cs" | "cs-"* ) url="cs_${w81}_6050393.iso" ;; - "da" | "da-"* ) url="da_${w81}_6050394.iso" ;; - "de" | "de-"* ) url="de_${w81}_6050501.iso" ;; - "el" | "el-"* ) url="el_${w81}_6050503.iso" ;; - "gb" | "en-gb" ) url="en-gb_${w81}_6054383.iso" ;; - "en" | "en-"* ) - size=4139163648 - sum="c3c604c03677504e8905090a8ce5bb1dde76b6fd58e10f32e3a25bef21b2abe1" - url="en_${w81}_6054382.iso" ;; - "es" | "es-"* ) url="es_${w81}_6050578.iso" ;; - "et" | "et-"* ) url="et_${w81}_6054384.iso" ;; - "fi" | "fi-"* ) url="fi_${w81}_6050497.iso" ;; - "fr" | "fr-"* ) url="fr_${w81}_6050499.iso" ;; - "he" | "he-"* ) url="he_${w81}_6050504.iso" ;; - "hr" | "hr-"* ) url="hr_${w81}_6050391.iso" ;; - "hu" | "hu-"* ) url="hu_${w81}_6050505.iso" ;; - "it" | "it-"* ) url="it_${w81}_6050507.iso" ;; - "ja" | "ja-"* ) url="ja_${w81}_6050508.iso" ;; - "ko" | "ko-"* ) url="ko_${w81}_6050509.iso" ;; - "lt" | "lt-"* ) url="lt_${w81}_6050511.iso" ;; - "lv" | "lv-"* ) url="lv_${w81}_6050510.iso" ;; - "nb" | "nb-"* ) url="nb_${w81}_6050512.iso" ;; - "nl" | "nl-"* ) url="nl_${w81}_6054381.iso" ;; - "pl" | "pl-"* ) url="pl_${w81}_6050515.iso" ;; - "br" | "pt-br" ) url="pt_${w81}_6050521.iso" ;; - "pt" | "pt-"* ) url="pp_${w81}_6050526.iso" ;; - "ro" | "ro-"* ) url="ro_${w81}_6050534.iso" ;; - "ru" | "ru-"* ) url="ru_${w81}_6050542.iso" ;; - "sk" | "sk-"* ) url="sk_${w81}_6050562.iso" ;; - "sl" | "sl-"* ) url="sl_${w81}_6050570.iso" ;; - "sr" | "sr-"* ) url="sr-latn_${w81}_6050553.iso" ;; - "sv" | "sv-"* ) url="sv_${w81}_6050590.iso" ;; - "th" | "th-"* ) url="th_${w81}_6050602.iso" ;; - "tr" | "tr-"* ) url="tr_${w81}_6050609.iso" ;; - "uk" | "uk-"* ) url="uk_${w81}_6050618.iso" ;; - "zh-hk" ) url="hk_${w81}_6050380.iso" ;; - "zh-tw" ) url="tw_${w81}_6050387.iso" ;; - "zh" | "zh-"* ) url="cn_${w81}_6050374.iso" ;; - esac - ;; - "win2025" | "win2025-eval" ) - case "${culture,,}" in - "cs" | "cs-"* ) url="cs-cz_${w25}_4f54e1b0.iso" ;; - "de" | "de-"* ) url="de-de_${w25}_5282a882.iso" ;; - "en" | "en-"* ) - size=6013794304 - sum="854109e1f215a29fc3541188297a6ca97c8a8f0f8c4dd6236b78dfdf845bf75e" - url="en-us_${w25}_b7ec10f3.iso" ;; - "es" | "es-"* ) url="es-es_${w25}_c15f0ce2.iso" ;; - "fr" | "fr-"* ) url="fr-fr_${w25}_bd6be507.iso" ;; - "hu" | "hu-"* ) url="hu-hu_${w25}_e13eb8bf.iso" ;; - "it" | "it-"* ) url="it-it_${w25}_98437899.iso" ;; - "ja" | "ja-"* ) url="ja-jp_${w25}_7a2e979b.iso" ;; - "ko" | "ko-"* ) url="ko-kr_${w25}_85109737.iso" ;; - "nl" | "nl-"* ) url="nl-nl_${w25}_5c3218f3.iso" ;; - "pl" | "pl-"* ) url="pl-pl_${w25}_aa368cf8.iso" ;; - "br" | "pt-br" ) url="pt-br_${w25}_66107129.iso" ;; - "pt" | "pt-"* ) url="pt-pt_${w25}_62bb3c31.iso" ;; - "ru" | "ru-"* ) url="ru-ru_${w25}_2dfe1679.iso" ;; - "sv" | "sv-"* ) url="sv-se_${w25}_512bf117.iso" ;; - "tr" | "tr-"* ) url="tr-tr_${w25}_a03fe256.iso" ;; - "zh-hk" | "zh-tw" ) url="zh-tw_${w25}_6d2c01e3.iso" ;; - "zh" | "zh-"* ) url="zh-cn_${w25}_1d93dd12.iso" ;; - esac - ;; - "win2022" | "win2022-eval" ) - case "${culture,,}" in - "cs" | "cs-"* ) url="cs-cz_${w22}.iso" ;; - "de" | "de-"* ) url="de-de_${w22}.iso" ;; - "en" | "en-"* ) - size=5973856256 - sum="61fa400b6e8f54e644529d024b18a578547147cdf815ea66c4b7961798717291" - url="en-us_${w22}.iso" ;; - "es" | "es-"* ) url="es-es_${w22}.iso" ;; - "fr" | "fr-"* ) url="fr-fr_${w22}.iso" ;; - "hu" | "hu-"* ) url="hu-hu_${w22}.iso" ;; - "it" | "it-"* ) url="it-it_${w22}.iso" ;; - "ja" | "ja-"* ) url="ja-jp_${w22}.iso" ;; - "ko" | "ko-"* ) url="ko-kr_${w22}.iso" ;; - "nl" | "nl-"* ) url="nl-nl_${w22}.iso" ;; - "pl" | "pl-"* ) url="pl-pl_${w22}.iso" ;; - "br" | "pt-br" ) url="pt-br_${w22}.iso" ;; - "pt" | "pt-"* ) url="pt-pt_${w22}.iso" ;; - "ru" | "ru-"* ) url="ru-ru_${w22}.iso" ;; - "sv" | "sv-"* ) url="sv-se_${w22}.iso" ;; - "tr" | "tr-"* ) url="tr-tr_${w22}.iso" ;; - "zh-hk" | "zh-tw" ) url="zh-tw_${w22}.iso" ;; - "zh" | "zh-"* ) url="zh-cn_${w22}.iso" ;; - esac - ;; - "win2019" | "win2019-eval" ) - case "${culture,,}" in - "cs" | "cs-"* ) url="cs-cz_${w19}_3781c31c.iso" ;; - "de" | "de-"* ) url="de-de_${w19}_132f7aa4.iso" ;; - "en" | "en-"* ) - size=5651695616 - sum="ea247e5cf4df3e5829bfaaf45d899933a2a67b1c700a02ee8141287a8520261c" - url="en-us_${w19}_f9475476.iso" ;; - "es" | "es-"* ) url="es-es_${w19}_3ce0fd9e.iso" ;; - "fr" | "fr-"* ) url="fr-fr_${w19}_f6f6acf6.iso" ;; - "hu" | "hu-"* ) url="hu-hu_${w19}_1d834c46.iso" ;; - "it" | "it-"* ) url="it-it_${w19}_454267de.iso" ;; - "ja" | "ja-"* ) url="ja-jp_${w19}_3899c3a3.iso" ;; - "ko" | "ko-"* ) url="ko-kr_${w19}_84101c0a.iso" ;; - "nl" | "nl-"* ) url="nl-nl_${w19}_f69d914e.iso" ;; - "pl" | "pl-"* ) url="pl-pl_${w19}_a50263e1.iso" ;; - "br" | "pt-br" ) url="pt-br_${w19}_aee8c1c2.iso" ;; - "pt" | "pt-"* ) url="pt-pt_${w19}_464373e8.iso" ;; - "ru" | "ru-"* ) url="ru-ru_${w19}_e02b76ba.iso" ;; - "sv" | "sv-"* ) url="sv-se_${w19}_48c1aeff.iso" ;; - "tr" | "tr-"* ) url="tr-tr_${w19}_b51af600.iso" ;; - "zh-hk" | "zh-tw" ) url="zh-tw_${w19}_a4c80409.iso" ;; - "zh" | "zh-"* ) url="zh-cn_${w19}_19d65722.iso" ;; - esac - ;; - "win2016" | "win2016-eval" ) - case "${culture,,}" in - "cs" | "cs-"* ) url="cs_${w16}_11636699.iso" ;; - "de" | "de-"* ) url="de_${w16}_11636696.iso" ;; - "en" | "en-"* ) - size=6003804160 - sum="47919ce8b4993f531ca1fa3f85941f4a72b47ebaa4d3a321fecf83ca9d17e6b8" - url="en_${w16}_11636701.iso" ;; - "es" | "es-"* ) url="es_${w16}_11636712.iso" ;; - "fr" | "fr-"* ) url="fr_${w16}_11636729.iso" ;; - "hu" | "hu-"* ) url="hu_${w16}_11636720.iso" ;; - "it" | "it-"* ) url="it_${w16}_11636710.iso" ;; - "ja" | "ja-"* ) url="ja_${w16}_11645964.iso" ;; - "ko" | "ko-"* ) url="ko_${w16}_11636709.iso" ;; - "nl" | "nl-"* ) url="nl_${w16}_11636731.iso" ;; - "pl" | "pl-"* ) url="pl_${w16}_11636719.iso" ;; - "br" | "pt-br" ) url="pt_${w16}_11636697.iso" ;; - "pt" | "pt-"* ) url="pp_${w16}_11637454.iso" ;; - "ru" | "ru-"* ) url="ru_${w16}_11636694.iso" ;; - "sv" | "sv-"* ) url="sv_${w16}_11636706.iso" ;; - "tr" | "tr-"* ) url="tr_${w16}_11636725.iso" ;; - "zh-hk" | "zh-tw" ) url="ct_${w16}_11636717.iso" ;; - "zh" | "zh-"* ) url="cn_${w16}_11636695.iso" ;; - esac - ;; - "win2012r2" | "win2012r2-eval" ) - case "${culture,,}" in - "cs" | "cs-"* ) url="cs_${w12}_6052752.iso" ;; - "de" | "de-"* ) url="de_${w12}_6052780.iso" ;; - "en" | "en-"* ) - size=5400115200 - sum="0e883ce28eb5c6f58a3a3007be978d43edb1035a4585506c1c4504c9e143408d" - url="en_${w12}_6052766.iso" ;; - "es" | "es-"* ) url="es_${w12}_6052831.iso" ;; - "fr" | "fr-"* ) url="fr_${w12}_6052772.iso" ;; - "hu" | "hu-"* ) url="hu_${w12}_6052786.iso" ;; - "it" | "it-"* ) url="it_${w12}_6052792.iso" ;; - "ja" | "ja-"* ) url="ja_${w12}_6052800.iso" ;; - "ko" | "ko-"* ) url="ko_${w12}_6052806.iso" ;; - "nl" | "nl-"* ) url="nl_${w12}_6052760.iso" ;; - "pl" | "pl-"* ) url="pl_${w12}_6052815.iso" ;; - "br" | "pt-br" ) url="pt_${w12}_6052819.iso" ;; - "pt" | "pt-"* ) url="pp_${w12}_6052823.iso" ;; - "ru" | "ru-"* ) url="ru_${w12}_6052827.iso" ;; - "sv" | "sv-"* ) url="sv_${w12}_6052835.iso" ;; - "tr" | "tr-"* ) url="tr_${w12}_6052838.iso" ;; - "zh-hk" ) url="hk_${w12}_6052739.iso" ;; - "zh-tw" ) url="tw_${w12}_6052746.iso" ;; - "zh" | "zh-"* ) url="cn_${w12}_6052729.iso" ;; - esac - ;; - "win2008r2" | "win2008r2-eval" ) - case "${culture,,}" in - "cs" | "cs-"* ) url="cs_${w08}_617402.iso" ;; - "de" | "de-"* ) url="de_${w08}_617404.iso" ;; - "en" | "en-"* ) - size=3166720000 - sum="9b0cd5b11cc2e92badb74450f0cac03006d3c63a2ada36cb1eb95c1bf4b2608f" - url="en_${w08}_617403.iso" ;; - "es" | "es-"* ) url="es_${w08}_617410.iso" ;; - "fr" | "fr-"* ) url="fr_${w08}_617392.iso" ;; - "hu" | "hu-"* ) url="hu_${w08}_617415.iso" ;; - "it" | "it-"* ) url="it_${w08}_619596.iso" ;; - "ja" | "ja-"* ) url="ja_${w08}_631466.iso" ;; - "ko" | "ko-"* ) url="ko_${w08}_617409.iso" ;; - "nl" | "nl-"* ) url="nl_${w08}_617395.iso" ;; - "pl" | "pl-"* ) url="pl_${w08}_617397.iso" ;; - "br" | "pt-br" ) url="pt_${w08}_617394.iso" ;; - "pt" | "pt-"* ) url="pp_${w08}_617411.iso" ;; - "ru" | "ru-"* ) url="ru_${w08}_617421.iso" ;; - "sv" | "sv-"* ) url="sv_${w08}_617400.iso" ;; - "tr" | "tr-"* ) url="tr_${w08}_617416.iso" ;; - "zh-hk" ) url="hk_${w08}_617386.iso" ;; - "zh-tw" ) url="tw_${w08}_617405.iso" ;; - "zh" | "zh-"* ) url="cn_${w08}_617396.iso" ;; - esac - ;; - "win7x64" | "win7x64-enterprise" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar_windows_7_enterprise_with_sp1_x64_dvd_u_677643.iso" ;; - "bg" | "bg-"* ) url="bg_windows_7_enterprise_with_sp1_x64_dvd_u_677644.iso" ;; - "cs" | "cs-"* ) url="cs_windows_7_enterprise_with_sp1_x64_dvd_u_677646.iso" ;; - "da" | "da-"* ) url="da_windows_7_enterprise_with_sp1_x64_dvd_u_677648.iso" ;; - "de" | "de-"* ) url="de_windows_7_enterprise_with_sp1_x64_dvd_u_677649.iso" ;; - "el" | "el-"* ) url="el_windows_7_enterprise_with_sp1_x64_dvd_u_677650.iso" ;; - "en" | "en-"* ) - size=3182604288 - sum="ee69f3e9b86ff973f632db8e01700c5724ef78420b175d25bae6ead90f6805a7" - url="en_windows_7_enterprise_with_sp1_x64_dvd_u_677651.iso" ;; - "es" | "es-"* ) url="es_windows_7_enterprise_with_sp1_x64_dvd_u_677652.iso" ;; - "et" | "et-"* ) url="et_windows_7_enterprise_with_sp1_x64_dvd_u_677653.iso" ;; - "fi" | "fi-"* ) url="fi_windows_7_enterprise_with_sp1_x64_dvd_u_677655.iso" ;; - "fr" | "fr-"* ) url="fr_windows_7_enterprise_with_sp1_x64_dvd_u_677656.iso" ;; - "he" | "he-"* ) url="he_windows_7_enterprise_with_sp1_x64_dvd_u_677657.iso" ;; - "hr" | "hr-"* ) url="hr_windows_7_enterprise_with_sp1_x64_dvd_u_677658.iso" ;; - "hu" | "hu-"* ) url="hu_windows_7_enterprise_with_sp1_x64_dvd_u_677659.iso" ;; - "it" | "it-"* ) url="it_windows_7_enterprise_with_sp1_x64_dvd_u_677660.iso" ;; - "ja" | "ja-"* ) url="ja_windows_7_enterprise_with_sp1_x64_dvd_u_677662.iso" ;; - "ko" | "ko-"* ) url="ko_windows_7_enterprise_k_with_sp1_x64_dvd_u_677728.iso" ;; - "lt" | "lt-"* ) url="lt_windows_7_enterprise_with_sp1_x64_dvd_u_677663.iso" ;; - "lv" | "lv-"* ) url="lv_windows_7_enterprise_with_sp1_x64_dvd_u_677664.iso" ;; - "nb" | "nb-"* ) url="no_windows_7_enterprise_with_sp1_x64_dvd_u_677665.iso" ;; - "nl" | "nl-"* ) url="nl_windows_7_enterprise_with_sp1_x64_dvd_u_677666.iso" ;; - "pl" | "pl-"* ) url="pl_windows_7_enterprise_with_sp1_x64_dvd_u_677667.iso" ;; - "br" | "pt-br" ) url="pt_windows_7_enterprise_with_sp1_x64_dvd_u_677668.iso" ;; - "pt" | "pt-"* ) url="pp_windows_7_enterprise_with_sp1_x64_dvd_u_677669.iso" ;; - "ro" | "ro-"* ) url="ro_windows_7_enterprise_with_sp1_x64_dvd_u_677670.iso" ;; - "ru" | "ru-"* ) url="ru_windows_7_enterprise_with_sp1_x64_dvd_u_677671.iso" ;; - "sk" | "sk-"* ) url="sk_windows_7_enterprise_with_sp1_x64_dvd_u_677673.iso" ;; - "sl" | "sl-"* ) url="sl_windows_7_enterprise_with_sp1_x64_dvd_u_677674.iso" ;; - "sr" | "sr-"* ) url="sr_windows_7_enterprise_with_sp1_x64_dvd_u_677675.iso" ;; - "sv" | "sv-"* ) url="sv_windows_7_enterprise_with_sp1_x64_dvd_u_677676.iso" ;; - "th" | "th-"* ) url="th_windows_7_enterprise_with_sp1_x64_dvd_u_677678.iso" ;; - "tr" | "tr-"* ) url="tr_windows_7_enterprise_with_sp1_x64_dvd_u_677681.iso" ;; - "uk" | "uk-"* ) url="uk_windows_7_enterprise_with_sp1_x64_dvd_u_677683.iso" ;; - "zh-hk" ) url="hk_windows_7_enterprise_with_sp1_x64_dvd_u_677687.iso" ;; - "zh-tw" ) url="tw_windows_7_enterprise_with_sp1_x64_dvd_u_677689.iso" ;; - "zh" | "zh-"* ) url="cn_windows_7_enterprise_with_sp1_x64_dvd_u_677685.iso" ;; - esac - ;; - "win7x64-ultimate" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar_windows_7_ultimate_with_sp1_x64_dvd_u_677345.iso" ;; - "bg" | "bg-"* ) url="bg_windows_7_ultimate_with_sp1_x64_dvd_u_677363.iso" ;; - "cs" | "cs-"* ) url="cs_windows_7_ultimate_with_sp1_x64_dvd_u_677376.iso" ;; - "da" | "da-"* ) url="da_windows_7_ultimate_with_sp1_x64_dvd_u_677294.iso" ;; - "de" | "de-"* ) url="de_windows_7_ultimate_with_sp1_x64_dvd_u_677306.iso" ;; - "el" | "el-"* ) url="el_windows_7_ultimate_with_sp1_x64_dvd_u_677318.iso" ;; - "en" | "en-"* ) - size=3320903680 - sum="36f4fa2416d0982697ab106e3a72d2e120dbcdb6cc54fd3906d06120d0653808" - url="en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso" ;; - "es" | "es-"* ) url="es_windows_7_ultimate_with_sp1_x64_dvd_u_677350.iso" ;; - "et" | "et-"* ) url="et_windows_7_ultimate_with_sp1_x64_dvd_u_677368.iso" ;; - "fi" | "fi-"* ) url="fi_windows_7_ultimate_with_sp1_x64_dvd_u_677378.iso" ;; - "fr" | "fr-"* ) url="fr_windows_7_ultimate_with_sp1_x64_dvd_u_677299.iso" ;; - "he" | "he-"* ) url="he_windows_7_ultimate_with_sp1_x64_dvd_u_677312.iso" ;; - "hr" | "hr-"* ) url="hr_windows_7_ultimate_with_sp1_x64_dvd_u_677324.iso" ;; - "hu" | "hu-"* ) url="hu_windows_7_ultimate_with_sp1_x64_dvd_u_677338.iso" ;; - "it" | "it-"* ) url="it_windows_7_ultimate_with_sp1_x64_dvd_u_677356.iso" ;; - "ja" | "ja-"* ) url="ja_windows_7_ultimate_with_sp1_x64_dvd_u_677372.iso" ;; - "ko" | "ko-"* ) url="ko_windows_7_ultimate_k_with_sp1_x64_dvd_u_677502.iso" ;; - "lt" | "lt-"* ) url="lt_windows_7_ultimate_with_sp1_x64_dvd_u_677379.iso" ;; - "lv" | "lv-"* ) url="lv_windows_7_ultimate_with_sp1_x64_dvd_u_677302.iso" ;; - "nb" | "nb-"* ) url="no_windows_7_ultimate_with_sp1_x64_dvd_u_677314.iso" ;; - "nl" | "nl-"* ) url="nl_windows_7_ultimate_with_sp1_x64_dvd_u_677325.iso" ;; - "pl" | "pl-"* ) url="pl_windows_7_ultimate_with_sp1_x64_dvd_u_677341.iso" ;; - "br" | "pt-br" ) url="pt_windows_7_ultimate_with_sp1_x64_dvd_u_677358.iso" ;; - "pt" | "pt-"* ) url="pp_windows_7_ultimate_with_sp1_x64_dvd_u_677373.iso" ;; - "ro" | "ro-"* ) url="ro_windows_7_ultimate_with_sp1_x64_dvd_u_677380.iso" ;; - "ru" | "ru-"* ) url="ru_windows_7_ultimate_with_sp1_x64_dvd_u_677391.iso" ;; - "sk" | "sk-"* ) url="sk_windows_7_ultimate_with_sp1_x64_dvd_u_677393.iso" ;; - "sl" | "sl-"* ) url="sl_windows_7_ultimate_with_sp1_x64_dvd_u_677396.iso" ;; - "sr" | "sr-"* ) url="sr_windows_7_ultimate_with_sp1_x64_dvd_u_677398.iso" ;; - "sv" | "sv-"* ) url="sv_windows_7_ultimate_with_sp1_x64_dvd_u_677400.iso" ;; - "th" | "th-"* ) url="th_windows_7_ultimate_with_sp1_x64_dvd_u_677402.iso" ;; - "tr" | "tr-"* ) url="tr_windows_7_ultimate_with_sp1_x64_dvd_u_677404.iso" ;; - "uk" | "uk-"* ) url="uk_windows_7_ultimate_with_sp1_x64_dvd_u_677406.iso" ;; - "zh-hk" ) url="hk_windows_7_ultimate_with_sp1_x64_dvd_u_677411.iso" ;; - "zh-tw" ) url="tw_windows_7_ultimate_with_sp1_x64_dvd_u_677414.iso" ;; - "zh" | "zh-"* ) url="cn_windows_7_ultimate_with_sp1_x64_dvd_u_677408.iso" ;; - esac - ;; - "win7x86" | "win7x86-enterprise" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar_windows_7_enterprise_with_sp1_x86_dvd_u_677691.iso" ;; - "bg" | "bg-"* ) url="bg_windows_7_enterprise_with_sp1_x86_dvd_u_677693.iso" ;; - "cs" | "cs-"* ) url="cs_windows_7_enterprise_with_sp1_x86_dvd_u_677695.iso" ;; - "da" | "da-"* ) url="da_windows_7_enterprise_with_sp1_x86_dvd_u_677698.iso" ;; - "de" | "de-"* ) url="de_windows_7_enterprise_with_sp1_x86_dvd_u_677702.iso" ;; - "el" | "el-"* ) url="el_windows_7_enterprise_with_sp1_x86_dvd_u_677706.iso" ;; - "en" | "en-"* ) - size=2434502656 - sum="8bdd46ff8cb8b8de9c4aba02706629c8983c45e87da110e64e13be17c8434dad" - url="en_windows_7_enterprise_with_sp1_x86_dvd_u_677710.iso" ;; - "es" | "es-"* ) url="es_windows_7_enterprise_with_sp1_x86_dvd_u_677714.iso" ;; - "et" | "et-"* ) url="et_windows_7_enterprise_with_sp1_x86_dvd_u_677718.iso" ;; - "fi" | "fi-"* ) url="fi_windows_7_enterprise_with_sp1_x86_dvd_u_677722.iso" ;; - "fr" | "fr-"* ) url="fr_windows_7_enterprise_with_sp1_x86_dvd_u_677727.iso" ;; - "he" | "he-"* ) url="he_windows_7_enterprise_with_sp1_x86_dvd_u_677733.iso" ;; - "hr" | "hr-"* ) url="hr_windows_7_enterprise_with_sp1_x86_dvd_u_677739.iso" ;; - "hu" | "hu-"* ) url="hu_windows_7_enterprise_with_sp1_x86_dvd_u_677744.iso" ;; - "it" | "it-"* ) url="it_windows_7_enterprise_with_sp1_x86_dvd_u_677749.iso" ;; - "ja" | "ja-"* ) url="ja_windows_7_enterprise_with_sp1_x86_dvd_u_677757.iso" ;; - "ko" | "ko-"* ) url="ko_windows_7_enterprise_k_with_sp1_x86_dvd_u_677732.iso" ;; - "lt" | "lt-"* ) url="lt_windows_7_enterprise_with_sp1_x86_dvd_u_677764.iso" ;; - "lv" | "lv-"* ) url="lv_windows_7_enterprise_with_sp1_x86_dvd_u_677677.iso" ;; - "nb" | "nb-"* ) url="no_windows_7_enterprise_with_sp1_x86_dvd_u_677679.iso" ;; - "nl" | "nl-"* ) url="nl_windows_7_enterprise_with_sp1_x86_dvd_u_677682.iso" ;; - "pl" | "pl-"* ) url="pl_windows_7_enterprise_with_sp1_x86_dvd_u_677684.iso" ;; - "br" | "pt-br" ) url="pt_windows_7_enterprise_with_sp1_x86_dvd_u_677686.iso" ;; - "pt" | "pt-"* ) url="pp_windows_7_enterprise_with_sp1_x86_dvd_u_677688.iso" ;; - "ro" | "ro-"* ) url="ro_windows_7_enterprise_with_sp1_x86_dvd_u_677690.iso" ;; - "ru" | "ru-"* ) url="ru_windows_7_enterprise_with_sp1_x86_dvd_u_677692.iso" ;; - "sk" | "sk-"* ) url="sk_windows_7_enterprise_with_sp1_x86_dvd_u_677694.iso" ;; - "sl" | "sl-"* ) url="sl_windows_7_enterprise_with_sp1_x86_dvd_u_677696.iso" ;; - "sr" | "sr-"* ) url="sr_windows_7_enterprise_with_sp1_x86_dvd_u_677699.iso" ;; - "sv" | "sv-"* ) url="sv_windows_7_enterprise_with_sp1_x86_dvd_u_677701.iso" ;; - "th" | "th-"* ) url="th_windows_7_enterprise_with_sp1_x86_dvd_u_677705.iso" ;; - "tr" | "tr-"* ) url="tr_windows_7_enterprise_with_sp1_x86_dvd_u_677708.iso" ;; - "uk" | "uk-"* ) url="uk_windows_7_enterprise_with_sp1_x86_dvd_u_677712.iso" ;; - "zh-hk" ) url="hk_windows_7_enterprise_with_sp1_x86_dvd_u_677720.iso" ;; - "zh-tw" ) url="tw_windows_7_enterprise_with_sp1_x86_dvd_u_677723.iso" ;; - "zh" | "zh-"* ) url="cn_windows_7_enterprise_with_sp1_x86_dvd_u_677716.iso" ;; - esac - ;; - "win7x86-ultimate" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar_windows_7_ultimate_with_sp1_x86_dvd_u_677448.iso" ;; - "bg" | "bg-"* ) url="bg_windows_7_ultimate_with_sp1_x86_dvd_u_677450.iso" ;; - "cs" | "cs-"* ) url="cs_windows_7_ultimate_with_sp1_x86_dvd_u_677452.iso" ;; - "da" | "da-"* ) url="da_windows_7_ultimate_with_sp1_x86_dvd_u_677454.iso" ;; - "de" | "de-"* ) url="de_windows_7_ultimate_with_sp1_x86_dvd_u_677456.iso" ;; - "el" | "el-"* ) url="el_windows_7_ultimate_with_sp1_x86_dvd_u_677458.iso" ;; - "en" | "en-"* ) - size=2564476928 - sum="e2c009a66d63a742941f5087acae1aa438dcbe87010bddd53884b1af6b22c940" - url="en_windows_7_ultimate_with_sp1_x86_dvd_u_677460.iso" ;; - "es" | "es-"* ) url="es_windows_7_ultimate_with_sp1_x86_dvd_u_677462.iso" ;; - "et" | "et-"* ) url="et_windows_7_ultimate_with_sp1_x86_dvd_u_677464.iso" ;; - "fi" | "fi-"* ) url="fi_windows_7_ultimate_with_sp1_x86_dvd_u_677466.iso" ;; - "fr" | "fr-"* ) url="fr_windows_7_ultimate_with_sp1_x86_dvd_u_677434.iso" ;; - "he" | "he-"* ) url="he_windows_7_ultimate_with_sp1_x86_dvd_u_677436.iso" ;; - "hr" | "hr-"* ) url="hr_windows_7_ultimate_with_sp1_x86_dvd_u_677438.iso" ;; - "hu" | "hu-"* ) url="hu_windows_7_ultimate_with_sp1_x86_dvd_u_677441.iso" ;; - "it" | "it-"* ) url="it_windows_7_ultimate_with_sp1_x86_dvd_u_677443.iso" ;; - "ja" | "ja-"* ) url="ja_windows_7_ultimate_with_sp1_x86_dvd_u_677445.iso" ;; - "ko" | "ko-"* ) url="ko_windows_7_ultimate_k_with_sp1_x86_dvd_u_677508.iso" ;; - "lt" | "lt-"* ) url="lt_windows_7_ultimate_with_sp1_x86_dvd_u_677447.iso" ;; - "lv" | "lv-"* ) url="lv_windows_7_ultimate_with_sp1_x86_dvd_u_677449.iso" ;; - "nb" | "nb-"* ) url="no_windows_7_ultimate_with_sp1_x86_dvd_u_677451.iso" ;; - "nl" | "nl-"* ) url="nl_windows_7_ultimate_with_sp1_x86_dvd_u_677453.iso" ;; - "pl" | "pl-"* ) url="pl_windows_7_ultimate_with_sp1_x86_dvd_u_677455.iso" ;; - "br" | "pt-br" ) url="pt_windows_7_ultimate_with_sp1_x86_dvd_u_677457.iso" ;; - "pt" | "pt-"* ) url="pp_windows_7_ultimate_with_sp1_x86_dvd_u_677459.iso" ;; - "ro" | "ro-"* ) url="ro_windows_7_ultimate_with_sp1_x86_dvd_u_677461.iso" ;; - "ru" | "ru-"* ) url="ru_windows_7_ultimate_with_sp1_x86_dvd_u_677463.iso" ;; - "sk" | "sk-"* ) url="sk_windows_7_ultimate_with_sp1_x86_dvd_u_677465.iso" ;; - "sl" | "sl-"* ) url="sl_windows_7_ultimate_with_sp1_x86_dvd_u_677467.iso" ;; - "sr" | "sr-"* ) url="sr_windows_7_ultimate_with_sp1_x86_dvd_u_677468.iso" ;; - "sv" | "sv-"* ) url="sv_windows_7_ultimate_with_sp1_x86_dvd_u_677482.iso" ;; - "th" | "th-"* ) url="th_windows_7_ultimate_with_sp1_x86_dvd_u_677483.iso" ;; - "tr" | "tr-"* ) url="tr_windows_7_ultimate_with_sp1_x86_dvd_u_677484.iso" ;; - "uk" | "uk-"* ) url="uk_windows_7_ultimate_with_sp1_x86_dvd_u_677485.iso" ;; - "zh-hk" ) url="hk_windows_7_ultimate_with_sp1_x86_dvd_u_677487.iso" ;; - "zh-tw" ) url="tw_windows_7_ultimate_with_sp1_x86_dvd_u_677488.iso" ;; - "zh" | "zh-"* ) url="cn_windows_7_ultimate_with_sp1_x86_dvd_u_677486.iso" ;; - esac - ;; - "winvistax64" | "winvistax64-enterprise" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar_windows_vista_enterprise_with_sp2_x64_dvd_x15-40408.iso" ;; - "bg" | "bg-"* ) url="bg_windows_vista_enterprise_with_sp2_x64_dvd_x15-40410.iso" ;; - "cs" | "cs-"* ) url="cs_windows_vista_enterprise_with_sp2_x64_dvd_x15-40412.iso" ;; - "da" | "da-"* ) url="da_windows_vista_enterprise_with_sp2_x64_dvd_x15-40416.iso" ;; - "de" | "de-"* ) url="de_windows_vista_enterprise_sp2_x64_dvd_342376.iso" ;; - "el" | "el-"* ) url="el_windows_vista_enterprise_with_sp2_x64_dvd_x15-40423.iso" ;; - "en" | "en-"* ) - size=3205953536 - sum="0a0cd511b3eac95c6f081419c9c65b12317b9d6a8d9707f89d646c910e788016" - url="en_windows_vista_enterprise_sp2_x64_dvd_342332.iso" ;; - "es" | "es-"* ) url="es_windows_vista_enterprise_sp2_x64_dvd_342415.iso" ;; - "et" | "et-"* ) url="et_windows_vista_enterprise_with_sp2_x64_dvd_x15-40437.iso" ;; - "fi" | "fi-"* ) url="fi_windows_vista_enterprise_with_sp2_x64_dvd_x15-40451.iso" ;; - "fr" | "fr-"* ) url="fr_windows_vista_enterprise_sp2_x64_dvd_342355.iso" ;; - "he" | "he-"* ) url="he_windows_vista_enterprise_with_sp2_x64_dvd_x15-40425.iso" ;; - "hr" | "hr-"* ) url="hr_windows_vista_enterprise_with_sp2_x64_dvd_x15-40396.iso" ;; - "hu" | "hu-"* ) url="hu_windows_vista_enterprise_with_sp2_x64_dvd_x15-40427.iso" ;; - "it" | "it-"* ) url="it_windows_vista_enterprise_with_sp2_x64_dvd_x15-40429.iso" ;; - "ja" | "ja-"* ) url="ja_windows_vista_enterprise_sp2_x64_dvd_342393.iso" ;; - "ko" | "ko-"* ) url="ko_windows_vista_enterprise_k_with_sp2_x64_dvd_x15-40433.iso" ;; - "lt" | "lt-"* ) url="lt_windows_vista_enterprise_with_sp2_x64_dvd_x15-40394.iso" ;; - "lv" | "lv-"* ) url="lv_windows_vista_enterprise_with_sp2_x64_dvd_x15-40392.iso" ;; - "nb" | "nb-"* ) url="no_windows_vista_enterprise_with_sp2_x64_dvd_x15-40439.iso" ;; - "nl" | "nl-"* ) url="nl_windows_vista_enterprise_with_sp2_x64_dvd_x15-40441.iso" ;; - "pl" | "pl-"* ) url="pl_windows_vista_enterprise_with_sp2_x64_dvd_x15-40445.iso" ;; - "br" | "pt-br" ) url="pt_windows_vista_enterprise_with_sp2_x64_dvd_x15-40400.iso" ;; - "pt" | "pt-"* ) url="pp_windows_vista_enterprise_with_sp2_x64_dvd_x15-40443.iso" ;; - "ro" | "ro-"* ) url="ro_windows_vista_enterprise_with_sp2_x64_dvd_x15-40447.iso" ;; - "ru" | "ru-"* ) url="ru_windows_vista_enterprise_with_sp2_x64_dvd_x15-40455.iso" ;; - "sk" | "sk-"* ) url="sk_windows_vista_enterprise_with_sp2_x64_dvd_x15-40453.iso" ;; - "sl" | "sl-"* ) url="sl_windows_vista_enterprise_with_sp2_x64_dvd_x15-40435.iso" ;; - "sr" | "sr-"* ) url="sr_windows_vista_enterprise_with_sp2_x64_dvd_x15-40406.iso" ;; - "sv" | "sv-"* ) url="sv_windows_vista_enterprise_with_sp2_x64_dvd_x15-40449.iso" ;; - "th" | "th-"* ) url="th_windows_vista_enterprise_with_sp2_x64_dvd_x15-40457.iso" ;; - "tr" | "tr-"* ) url="tr_windows_vista_enterprise_with_sp2_x64_dvd_x15-40459.iso" ;; - "uk" | "uk-"* ) url="uk_windows_vista_enterprise_with_sp2_x64_dvd_x15-40398.iso" ;; - "zh-hk" ) url="hk_windows_vista_enterprise_with_sp2_x64_dvd_x15-40463.iso" ;; - "zh-tw" ) url="tw_windows_vista_enterprise_with_sp2_x64_dvd_x15-40461.iso" ;; - "zh" | "zh-"* ) url="cn_windows_vista_enterprise_with_sp2_x64_dvd_x15-40402.iso" ;; - esac - ;; - "winvistax64-ultimate" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar_windows_vista_with_sp2_x64_dvd_x15-36318.iso" ;; - "bg" | "bg-"* ) url="bg_windows_vista_with_sp2_x64_dvd_x15-36321.iso" ;; - "cs" | "cs-"* ) url="cs_windows_vista_with_sp2_x64_dvd_x15-36327.iso" ;; - "da" | "da-"* ) url="da_windows_vista_with_sp2_x64_dvd_x15-36329.iso" ;; - "de" | "de-"* ) url="de_windows_vista_sp2_x64_dvd_342287.iso" ;; - "el" | "el-"* ) url="el_windows_vista_with_sp2_x64_dvd_x15-36343.iso" ;; - "en" | "en-"* ) - size=3861460992 - sum="edf9f947c5791469fd7d2d40a5dcce663efa754f91847aa1d28ed7f585675b78" - url="en_windows_vista_sp2_x64_dvd_342267.iso" ;; - "es" | "es-"* ) url="es_windows_vista_sp2_x64_dvd_342309.iso" ;; - "et" | "et-"* ) url="et_windows_vista_with_sp2_x64_dvd_x15-36335.iso" ;; - "fi" | "fi-"* ) url="fi_windows_vista_with_sp2_x64_dvd_x15-36337.iso" ;; - "fr" | "fr-"* ) url="fr_windows_vista_sp2_x64_dvd_342277.iso" ;; - "he" | "he-"* ) url="he_windows_vista_with_sp2_x64_dvd_x15-36344.iso" ;; - "hr" | "hr-"* ) url="hr_windows_vista_with_sp2_x64_dvd_x15-36325.iso" ;; - "hu" | "hu-"* ) url="hu_windows_vista_with_sp2_x64_dvd_x15-36346.iso" ;; - "it" | "it-"* ) url="it_windows_vista_with_sp2_x64_dvd_x15-36348.iso" ;; - "ja" | "ja-"* ) url="ja_windows_vista_sp2_x64_dvd_342298.iso" ;; - "ko" | "ko-"* ) url="ko_windows_vista_k_and_kn_with_sp2_x86_dvd_x15-36302.iso" ;; - "lt" | "lt-"* ) url="lt_windows_vista_with_sp2_x64_dvd_x15-36355.iso" ;; - "lv" | "lv-"* ) url="lv_windows_vista_with_sp2_x64_dvd_x15-36353.iso" ;; - "nb" | "nb-"* ) url="no_windows_vista_with_sp2_x64_dvd_x15-36357.iso" ;; - "nl" | "nl-"* ) url="nl_windows_vista_with_sp2_x64_dvd_x15-36331.iso" ;; - "pl" | "pl-"* ) url="pl_windows_vista_with_sp2_x64_dvd_x15-36359.iso" ;; - "br" | "pt-br" ) url="pt_windows_vista_with_sp2_x64_dvd_x15-36319.iso" ;; - "pt" | "pt-"* ) url="pp_windows_vista_with_sp2_x64_dvd_x15-36361.iso" ;; - "ro" | "ro-"* ) url="ro_windows_vista_with_sp2_x64_dvd_x15-36363.iso" ;; - "ru" | "ru-"* ) url="ru_windows_vista_with_sp2_x64_dvd_x15-36364.iso" ;; - "sk" | "sk-"* ) url="sk_windows_vista_with_sp2_x64_dvd_x15-36367.iso" ;; - "sl" | "sl-"* ) url="sl_windows_vista_with_sp2_x64_dvd_x15-36369.iso" ;; - "sr" | "sr-"* ) url="sr_windows_vista_with_sp2_x64_dvd_x15-36365.iso" ;; - "sv" | "sv-"* ) url="sv_windows_vista_with_sp2_x64_dvd_x15-36373.iso" ;; - "th" | "th-"* ) url="th_windows_vista_with_sp2_x64_dvd_x15-36374.iso" ;; - "tr" | "tr-"* ) url="tr_windows_vista_with_sp2_x64_dvd_x15-36375.iso" ;; - "uk" | "uk-"* ) url="uk_windows_vista_with_sp2_x64_dvd_x15-36376.iso" ;; - "zh-hk" ) url="hk_windows_vista_with_sp2_x64_dvd_x15-36324.iso" ;; - "zh-tw" ) url="tw_windows_vista_with_sp2_x64_dvd_x15-36323.iso" ;; - "zh" | "zh-"* ) url="cn_windows_vista_with_sp2_x64_dvd_x15-36322.iso" ;; - esac - ;; - "winvistax86" | "winvistax86-enterprise" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar_windows_vista_enterprise_with_sp2_x86_dvd_x15-40263.iso" ;; - "bg" | "bg-"* ) url="bg_windows_vista_enterprise_with_sp2_x86_dvd_x15-40265.iso" ;; - "cs" | "cs-"* ) url="cs_windows_vista_enterprise_with_sp2_x86_dvd_x15-40267.iso" ;; - "da" | "da-"* ) url="da_windows_vista_enterprise_with_sp2_x86_dvd_x15-40271.iso" ;; - "de" | "de-"* ) url="de_windows_vista_enterprise_sp2_x86_dvd_342373.iso" ;; - "el" | "el-"* ) url="el_windows_vista_enterprise_with_sp2_x86_dvd_x15-40277.iso" ;; - "en" | "en-"* ) - size=2420981760 - sum="54e2720004041e7db988a391543ea5228b0affc28efcf9303d2d0ff9402067f5" - url="en_windows_vista_enterprise_sp2_x86_dvd_342329.iso" ;; - "es" | "es-"* ) url="es_windows_vista_enterprise_sp2_x86_dvd_342413.iso" ;; - "et" | "et-"* ) url="et_windows_vista_enterprise_with_sp2_x86_dvd_x15-40291.iso" ;; - "fi" | "fi-"* ) url="fi_windows_vista_enterprise_with_sp2_x86_dvd_x15-40305.iso" ;; - "fr" | "fr-"* ) url="fr_windows_vista_enterprise_sp2_x86_dvd_342352.iso" ;; - "he" | "he-"* ) url="he_windows_vista_enterprise_with_sp2_x86_dvd_x15-40279.iso" ;; - "hr" | "hr-"* ) url="hr_windows_vista_enterprise_with_sp2_x86_dvd_x15-40251.iso" ;; - "hu" | "hu-"* ) url="hu_windows_vista_enterprise_with_sp2_x86_dvd_x15-40281.iso" ;; - "it" | "it-"* ) url="it_windows_vista_enterprise_with_sp2_x86_dvd_x15-40283.iso" ;; - "ja" | "ja-"* ) url="ja_windows_vista_enterprise_sp2_x86_dvd_342391.iso" ;; - "ko" | "ko-"* ) url="ko_windows_vista_enterprise_k_with_sp2_x86_dvd_x15-40287.iso" ;; - "lt" | "lt-"* ) url="lt_windows_vista_enterprise_with_sp2_x86_dvd_x15-40249.iso" ;; - "lv" | "lv-"* ) url="lv_windows_vista_enterprise_with_sp2_x86_dvd_x15-40247.iso" ;; - "nb" | "nb-"* ) url="no_windows_vista_enterprise_with_sp2_x86_dvd_x15-40293.iso" ;; - "nl" | "nl-"* ) url="nl_windows_vista_enterprise_with_sp2_x86_dvd_x15-40295.iso" ;; - "pl" | "pl-"* ) url="pl_windows_vista_enterprise_with_sp2_x86_dvd_x15-40299.iso" ;; - "br" | "pt-br" ) url="pt_windows_vista_enterprise_with_sp2_x86_dvd_x15-40255.iso" ;; - "pt" | "pt-"* ) url="pp_windows_vista_enterprise_with_sp2_x86_dvd_x15-40297.iso" ;; - "ro" | "ro-"* ) url="ro_windows_vista_enterprise_with_sp2_x86_dvd_x15-40301.iso" ;; - "ru" | "ru-"* ) url="ru_windows_vista_enterprise_with_sp2_x86_dvd_x15-40309.iso" ;; - "sk" | "sk-"* ) url="sk_windows_vista_enterprise_with_sp2_x86_dvd_x15-40307.iso" ;; - "sl" | "sl-"* ) url="sl_windows_vista_enterprise_with_sp2_x86_dvd_x15-40289.iso" ;; - "sr" | "sr-"* ) url="sr_windows_vista_enterprise_with_sp2_x86_dvd_x15-40261.iso" ;; - "sv" | "sv-"* ) url="sv_windows_vista_enterprise_with_sp2_x86_dvd_x15-40303.iso" ;; - "th" | "th-"* ) url="th_windows_vista_enterprise_with_sp2_x86_dvd_x15-40311.iso" ;; - "tr" | "tr-"* ) url="tr_windows_vista_enterprise_with_sp2_x86_dvd_x15-40313.iso" ;; - "uk" | "uk-"* ) url="uk_windows_vista_enterprise_with_sp2_x86_dvd_x15-40253.iso" ;; - "zh-hk" ) url="hk_windows_vista_enterprise_with_sp2_x86_dvd_x15-40317.iso" ;; - "zh-tw" ) url="tw_windows_vista_enterprise_with_sp2_x86_dvd_x15-40315.iso" ;; - "zh" | "zh-"* ) url="cn_windows_vista_enterprise_with_sp2_x86_dvd_x15-40257.iso" ;; - esac - ;; - "winvistax86-ultimate" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar_windows_vista_with_sp2_x86_dvd_x15-36282.iso" ;; - "bg" | "bg-"* ) url="bg_windows_vista_with_sp2_x86_dvd_x15-36284.iso" ;; - "hr" | "hr-"* ) url="hr_windows_vista_with_sp2_x86_dvd_x15-36288.iso" ;; - "cs" | "cs-"* ) url="cs_windows_vista_with_sp2_x86_dvd_x15-36289.iso" ;; - "da" | "da-"* ) url="da_windows_vista_with_sp2_x86_dvd_x15-36290.iso" ;; - "de" | "de-"* ) url="de_windows_vista_sp2_x86_dvd_342286.iso" ;; - "el" | "el-"* ) url="el_windows_vista_with_sp2_x86_dvd_x15-36297.iso" ;; - "en" | "en-"* ) - size=3243413504 - sum="9c36fed4255bd05a8506b2da88f9aad73643395e155e609398aacd2b5276289c" - url="en_windows_vista_with_sp2_x86_dvd_342266.iso" ;; - "es" | "es-"* ) url="es_windows_vista_sp2_x86_dvd_342308.iso" ;; - "et" | "et-"* ) url="et_windows_vista_with_sp2_x86_dvd_x15-36293.iso" ;; - "fi" | "fi-"* ) url="fi_windows_vista_with_sp2_x86_dvd_x15-36294.iso" ;; - "fr" | "fr-"* ) url="fr_windows_vista_sp2_x86_dvd_342276.iso" ;; - "he" | "he-"* ) url="he_windows_vista_with_sp2_x86_dvd_x15-36298.iso" ;; - "hu" | "hu-"* ) url="hu_windows_vista_with_sp2_x86_dvd_x15-36299.iso" ;; - "it" | "it-"* ) url="it_windows_vista_with_sp2_x86_dvd_x15-36300.iso" ;; - "ja" | "ja-"* ) url="ja_windows_vista_sp2_x86_dvd_342296.iso" ;; - "ko" | "ko-"* ) url="ko_windows_vista_k_with_sp2_x64_dvd_x15-36350.iso" ;; - "lt" | "lt-"* ) url="lt_windows_vista_with_sp2_x86_dvd_x15-36304.iso" ;; - "lv" | "lv-"* ) url="lv_windows_vista_with_sp2_x86_dvd_x15-36303.iso" ;; - "nb" | "nb-"* ) url="no_windows_vista_with_sp2_x86_dvd_x15-36305.iso" ;; - "nl" | "nl-"* ) url="nl_windows_vista_with_sp2_x86_dvd_x15-36291.iso" ;; - "pl" | "pl-"* ) url="pl_windows_vista_with_sp2_x86_dvd_x15-36306.iso" ;; - "br" | "pt-br" ) url="pt_windows_vista_with_sp2_x86_dvd_x15-36283.iso" ;; - "pt" | "pt-"* ) url="pp_windows_vista_with_sp2_x86_dvd_x15-36307.iso" ;; - "ro" | "ro-"* ) url="ro_windows_vista_with_sp2_x86_dvd_x15-36308.iso" ;; - "ru" | "ru-"* ) url="ru_windows_vista_with_sp2_x86_dvd_x15-36309.iso" ;; - "sk" | "sk-"* ) url="sk_windows_vista_with_sp2_x86_dvd_x15-36311.iso" ;; - "sl" | "sl-"* ) url="sl_windows_vista_with_sp2_x86_dvd_x15-36312.iso" ;; - "sr" | "sr-"* ) url="sr_windows_vista_with_sp2_x86_dvd_x15-36310.iso" ;; - "sv" | "sv-"* ) url="sv_windows_vista_with_sp2_x86_dvd_x15-36314.iso" ;; - "th" | "th-"* ) url="th_windows_vista_with_sp2_x86_dvd_x15-36315.iso" ;; - "tr" | "tr-"* ) url="tr_windows_vista_with_sp2_x86_dvd_x15-36316.iso" ;; - "uk" | "uk-"* ) url="uk_windows_vista_with_sp2_x86_dvd_x15-36317.iso" ;; - "zh-hk" ) url="hk_windows_vista_with_sp2_x86_dvd_x15-36287.iso" ;; - "zh-tw" ) url="tw_windows_vista_with_sp2_x86_dvd_x15-36286.iso" ;; - "zh" | "zh-"* ) url="cn_windows_vista_with_sp2_x86_dvd_x15-36285.iso" ;; - esac - ;; - "winxpx86" ) - case "${culture,,}" in - "ar" | "ar-"* ) url="ar_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74065.iso" ;; - "cs" | "cs-"* ) url="cs_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73965.iso" ;; - "da" | "da-"* ) url="da_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73968.iso" ;; - "de" | "de-"* ) url="de_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73985.iso" ;; - "el" | "el-"* ) url="el_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73988.iso" ;; - "es" | "es-"* ) url="es_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74009.iso" ;; - "fi" | "fi-"* ) url="fi_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73979.iso" ;; - "fr" | "fr-"* ) url="fr_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73982.iso" ;; - "he" | "he-"* ) url="he_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74143.iso" ;; - "hu" | "hu-"* ) url="hu_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73991.iso" ;; - "it" | "it-"* ) url="it_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73994.iso" ;; - "ja" | "ja-"* ) url="ja_windows_xp_professional_with_service_pack_3_x86_dvd_vl_x14-74058.iso" ;; - "nb" | "nb-"* ) url="no_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74000.iso" ;; - "nl" | "nl-"* ) url="nl_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73971.iso" ;; - "pl" | "pl-"* ) url="pl_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74003.iso" ;; - "br" | "pt-br" ) url="pt-br_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74137.iso" ;; - "pt" | "pt-"* ) url="pt-pt_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74006.iso" ;; - "ru" | "ru-"* ) url="ru_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74146.iso" ;; - "sv" | "sv-"* ) url="sv_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74012.iso" ;; - "tr" | "tr-"* ) url="tr_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74085.iso" ;; - "zh-hk" ) url="zh-hk_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74075.iso" ;; - "zh-tw" ) url="zh-tw_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74140.iso" ;; - "zh" | "zh-"* ) url="zh-hans_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74070.iso" ;; - esac - ;; - "winxpx64" ) - [[ "${lang,,}" != "en" ]] && [[ "${lang,,}" != "en-us" ]] && return 0 - size=628168704 - sum="b641514c2265ba6c0a9ddbcfa4a6daaac6539db8d1ce704366cdfe5a516e0495" - url="en_win_xp_pro_x64_with_sp2_vl_x13-41611.iso" - ;; - esac - - case "${ret,,}" in - "sum" ) echo "$sum" ;; - "size" ) echo "$size" ;; - *) [ -n "$url" ] && echo "$host/$url";; - esac - - return 0 -} - -getLink4() { - local id="$1" local lang="$2" local ret="$3" @@ -1960,12 +1107,66 @@ isESD() { return 1 } +isMG() { + + local id="$1" + local lang="$2" + + case "${id,,}" in + "win11${PLATFORM,,}" ) + return 0 + ;; + "win11${PLATFORM,,}-enterprise" | "win11${PLATFORM,,}-enterprise-eval" ) + return 0 + ;; + "win11${PLATFORM,,}-ltsc" | "win11${PLATFORM,,}-enterprise-ltsc-eval" ) + return 0 + ;; + "win11${PLATFORM,,}-iot" | "win11${PLATFORM,,}-enterprise-iot-eval" ) + return 0 + ;; + "win10${PLATFORM,,}" ) + return 0 + ;; + "win10${PLATFORM,,}-enterprise" | "win10${PLATFORM,,}-enterprise-eval" ) + return 0 + ;; + "win10${PLATFORM,,}-ltsc" | "win10${PLATFORM,,}-enterprise-ltsc-eval" ) + return 0 + ;; + "win10${PLATFORM,,}-iot" | "win10${PLATFORM,,}-enterprise-iot-eval" ) + return 0 + ;; + "win81${PLATFORM,,}-enterprise" | "win81${PLATFORM,,}-enterprise-eval" ) + return 0 + ;; + "win2025" | "win2025-eval" | "win2022" | "win2022-eval" | "win2019" | "win2019-eval" ) + return 0 + ;; + "win2016" | "win2016-eval" | "win2012r2" | "win2012r2-eval" | "win2008r2" | "win2008r2-eval" ) + return 0 + ;; + "win7x64" | "win7x64-enterprise" | "win7x64-ultimate" | "win7x86" | "win7x86-enterprise" | "win7x86-ultimate" ) + return 0 + ;; + "winvistax64" | "winvistax64-enterprise" | "winvistax64-ultimate" | "winvistax86" | "winvistax86-enterprise" | "winvistax86-ultimate" ) + return 0 + ;; + "winxpx86" | "winxpx64" ) + return 0 + ;; + esac + + return 1 +} + validVersion() { local id="$1" local lang="$2" local url + isMG "$id" "$lang" && return 0 isESD "$id" "$lang" && return 0 isMido "$id" "$lang" && return 0 diff --git a/src/mido.sh b/src/mido.sh index 776f716..4804390 100644 --- a/src/mido.sh +++ b/src/mido.sh @@ -4,25 +4,26 @@ set -Eeuo pipefail handle_curl_error() { local error_code="$1" + local server_name="$2" case "$error_code" in 1) error "Unsupported protocol!" ;; 2) error "Failed to initialize curl!" ;; 3) error "The URL format is malformed!" ;; 5) error "Failed to resolve address of proxy host!" ;; - 6) error "Failed to resolve Microsoft servers! Is there an Internet connection?" ;; - 7) error "Failed to contact Microsoft servers! Is there an Internet connection or is the server down?" ;; - 8) error "Microsoft servers returned a malformed HTTP response!" ;; + 6) error "Failed to resolve $server_name servers! Is there an Internet connection?" ;; + 7) error "Failed to contact $server_name servers! Is there an Internet connection or is the server down?" ;; + 8) error "$server_name servers returned a malformed HTTP response!" ;; 16) error "A problem was detected in the HTTP2 framing layer!" ;; - 22) error "Microsoft servers returned a failing HTTP status code!" ;; + 22) error "$server_name servers returned a failing HTTP status code!" ;; 23) error "Failed at writing Windows media to disk! Out of disk space or permission error?" ;; 26) error "Failed to read Windows media from disk!" ;; 27) error "Ran out of memory during download!" ;; - 28) error "Connection timed out to Microsoft server!" ;; - 35) error "SSL connection error from Microsoft server!" ;; + 28) error "Connection timed out to $server_name server!" ;; + 35) error "SSL connection error from $server_name server!" ;; 36) error "Failed to continue earlier download!" ;; - 52) error "Received no data from the Microsoft server!" ;; - 63) error "Microsoft servers returned an unexpectedly large response!" ;; + 52) error "Received no data from the $server_name server!" ;; + 63) error "$server_name servers returned an unexpectedly large response!" ;; # POSIX defines exit statuses 1-125 as usable by us # https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_08_02 $((error_code <= 125))) @@ -100,7 +101,7 @@ download_windows() { # Remove "Accept" header that curl sends by default [[ "$DEBUG" == [Yy1]* ]] && echo "Parsing download page: ${url}" download_page_html=$(curl --silent --max-time 30 --user-agent "$user_agent" --header "Accept:" --max-filesize 1M --fail --proto =https --tlsv1.2 --http1.1 -- "$url") || { - handle_curl_error $? + handle_curl_error "$?" "Microsoft" return $? } @@ -117,14 +118,14 @@ download_windows() { # Permit Session ID curl --silent --max-time 30 --output /dev/null --user-agent "$user_agent" --header "Accept:" --max-filesize 100K --fail --proto =https --tlsv1.2 --http1.1 -- "https://vlscppe.microsoft.com/tags?org_id=y6jn8c31&session_id=$session_id" || { # This should only happen if there's been some change to how this API works - handle_curl_error $? + handle_curl_error "$?" "Microsoft" return $? } [[ "$DEBUG" == [Yy1]* ]] && echo -n "Getting language SKU ID: " sku_url="https://www.microsoft.com/software-download-connector/api/getskuinformationbyproductedition?profile=$profile&ProductEditionId=$product_edition_id&SKU=undefined&friendlyFileName=undefined&Locale=en-US&sessionID=$session_id" language_skuid_json=$(curl --silent --max-time 30 --request GET --user-agent "$user_agent" --referer "$url" --header "Accept:" --max-filesize 100K --fail --proto =https --tlsv1.2 --http1.1 -- "$sku_url") || { - handle_curl_error $? + handle_curl_error "$?" "Microsoft" return $? } @@ -229,7 +230,7 @@ download_windows_eval() { [[ "$DEBUG" == [Yy1]* ]] && echo "Parsing download page: ${url}" iso_download_page_html=$(curl --silent --max-time 30 --user-agent "$user_agent" --location --max-filesize 1M --fail --proto =https --tlsv1.2 --http1.1 -- "$url") || { - handle_curl_error $? + handle_curl_error "$?" "Microsoft" return $? } @@ -287,7 +288,7 @@ download_windows_eval() { iso_download_link=$(curl --silent --max-time 30 --user-agent "$user_agent" --location --output /dev/null --silent --write-out "%{url_effective}" --head --fail --proto =https --tlsv1.2 --http1.1 -- "$iso_download_link") || { # This should only happen if the Microsoft servers are down - handle_curl_error $? + handle_curl_error "$?" "Microsoft" return $? } @@ -428,6 +429,215 @@ getCatalog() { return 0 } +getMG() { + + local version="$1" + local lang="$2" + local desc="$3" + + local locale="" + local culture="" + local language="" + local user_agent="" + + user_agent=$(get_agent) + language=$(getLanguage "$lang" "desc") + culture=$(getLanguage "$lang" "culture") + + local msg="Requesting download link from massgrave.dev..." + info "$msg" && html "$msg" + + local pattern="" + local locale="${culture,,}" + local platform="${PLATFORM,,}" + local url="https://massgrave.dev/" + + if [[ "${PLATFORM,,}" != "arm64" ]]; then + + case "${version,,}" in + "win11${PLATFORM,,}" ) + url+="windows_11_links" + pattern="consumer" + ;; + "win11${PLATFORM,,}-enterprise" | "win11${PLATFORM,,}-enterprise-eval" ) + url+="windows_11_links" + pattern="business" + ;; + "win11${PLATFORM,,}-ltsc" | "win11${PLATFORM,,}-enterprise-ltsc-eval" ) + url+="windows_ltsc_links" + pattern="11_enterprise_ltsc" + ;; + "win11${PLATFORM,,}-iot" | "win11${PLATFORM,,}-enterprise-iot-eval" ) + url+="windows_ltsc_links" + pattern="11_iot" + ;; + "win10${PLATFORM,,}" ) + url+="windows_10_links" + pattern="consumer" + ;; + "win10${PLATFORM,,}-enterprise" | "win10${PLATFORM,,}-enterprise-eval" ) + url+="windows_10_links" + pattern="business" + ;; + "win10${PLATFORM,,}-ltsc" | "win10${PLATFORM,,}-enterprise-ltsc-eval" ) + url+="windows_ltsc_links" + pattern="10_enterprise_ltsc" + ;; + "win10${PLATFORM,,}-iot" | "win10${PLATFORM,,}-enterprise-iot-eval" ) + url+="windows_ltsc_links" + pattern="10_iot" + ;; + "win81${PLATFORM,,}-enterprise" | "win81${PLATFORM,,}-enterprise-eval" ) + url+="windows_8.1_links" + pattern="8.1_enterprise" + locale=$(getLanguage "$lang" "code") + [[ "$locale" == "sr" ]] && locale="sr-latn" + ;; + "win2025" | "win2025-eval" ) + url+="windows_server_links" + pattern="server_2025" + ;; + "win2022" | "win2022-eval" ) + url+="windows_server_links" + pattern="server_2022" + ;; + "win2019" | "win2019-eval" ) + url+="windows_server_links" + pattern="server_2019" + ;; + "win2016" | "win2016-eval" ) + url+="windows_server_links" + pattern="server_2016" + locale=$(getLanguage "$lang" "code") + [[ "$locale" == "hk" ]] && locale="ct" + [[ "$locale" == "tw" ]] && locale="ct" + ;; + "win2012r2" | "win2012r2-eval" ) + url+="windows_server_links" + pattern="server_2012_r2" + locale=$(getLanguage "$lang" "code") + ;; + "win2008r2" | "win2008r2-eval" ) + url+="windows_server_links" + pattern="server_2008_r2" + locale=$(getLanguage "$lang" "code") + ;; + "win7x64" | "win7x64-enterprise" ) + url+="windows_7_links" + pattern="enterprise" + locale=$(getLanguage "$lang" "code") + ;; + "win7x64-ultimate" ) + url+="windows_7_links" + pattern="ultimate" + locale=$(getLanguage "$lang" "code") + ;; + "win7x86" | "win7x86-enterprise" ) + platform="x86" + url+="windows_7_links" + pattern="enterprise" + locale=$(getLanguage "$lang" "code") + ;; + "win7x86-ultimate" ) + platform="x86" + url+="windows_7_links" + pattern="ultimate" + locale=$(getLanguage "$lang" "code") + ;; + "winvistax64" | "winvistax64-enterprise" ) + url+="windows_vista_links" + pattern="enterprise" + locale=$(getLanguage "$lang" "code") + ;; + "winvistax64-ultimate" ) + url+="windows_vista_links" + pattern="sp2" + locale=$(getLanguage "$lang" "code") + ;; + "winvistax86" | "winvistax86-enterprise" ) + platform="x86" + url+="windows_vista_links" + pattern="enterprise" + locale=$(getLanguage "$lang" "code") + ;; + "winvistax86-ultimate" ) + platform="x86" + url+="windows_vista_links" + pattern="sp2" + locale=$(getLanguage "$lang" "code") + ;; + "winxpx86" ) + platform="x86" + url+="windows_xp_links" + pattern="xp" + locale=$(getLanguage "$lang" "code") + [[ "$locale" == "pt" ]] && locale="pt-br" + [[ "$locale" == "pp" ]] && locale="pt-pt" + [[ "$locale" == "cn" ]] && locale="zh-hans" + [[ "$locale" == "hk" ]] && locale="zh-hk" + [[ "$locale" == "tw" ]] && locale="zh-tw" + ;; + "winxpx64" ) + url+="windows_xp_links" + pattern="xp" + locale=$(getLanguage "$lang" "code") + ;; + esac + + else + + case "${version,,}" in + "win11${PLATFORM,,}" | "win11${PLATFORM,,}-enterprise" | "win11${PLATFORM,,}-enterprise-eval" ) + url+="windows_arm_links" + pattern="11_business" + ;; + "win11${PLATFORM,,}-ltsc" | "win11${PLATFORM,,}-enterprise-ltsc-eval" ) + url+="windows_arm_links" + pattern="11_iot_enterprise_ltsc" + ;; + "win10${PLATFORM,,}" | "win10${PLATFORM,,}-enterprise" | "win10${PLATFORM,,}-enterprise-eval" ) + url+="windows_arm_links" + pattern="Pro_10" + locale="$language" + [[ "$locale" == "Chinese" ]] && locale="ChnSimp" + [[ "$locale" == "Chinese HK" ]] && locale="ChnTrad" + [[ "$locale" == "Chinese TW" ]] && locale="ChnTrad" + ;; + "win10${PLATFORM,,}-ltsc" | "win10${PLATFORM,,}-enterprise-ltsc-eval" ) + url+="windows_arm_links" + pattern="10_iot_enterprise_ltsc" + ;; + esac + + fi + + local body="" + + [[ "$DEBUG" == [Yy1]* ]] && echo "Parsing download page: ${url}" + body=$(curl --silent --max-time 30 --user-agent "$user_agent" --location --max-filesize 1M --fail --proto =https --tlsv1.2 --http1.1 -- "$url") || { + handle_curl_error "$?" "Massgrave" + return $? + } + + local list="" + list=$(echo "$body" | grep -Eo "(http|https)://[a-zA-Z0-9./?=_%:-]*" | grep -i '\.iso$') + + local result="" + result=$(echo "$list" | grep -i "${platform}" | grep "${pattern}" | grep -i -m 1 "${locale,,}_") + + if [ -z "$result" ]; then + if [[ "${lang,,}" != "en" ]] && [[ "${lang,,}" != "en-"* ]]; then + error "No download in the $language language available for $desc!" + else + error "Failed to parse download link for $desc! Please report this at $SUPPORT/issues." + fi + return 1 + fi + + MG_URL="$result" + return 0 +} + getESD() { local dir="$1" @@ -712,6 +922,31 @@ downloadImage() { done + if isMG "$version" "$lang"; then + + if [[ "$tried" != "n" ]]; then + info "Failed to download $desc, will try a diferent method now..." + fi + + tried="y" + success="n" + + if getMG "$version" "$lang" "$desc"; then + success="y" + else + info "$msg" && html "$msg" && sleep "$delay" + getMG "$version" "$lang" "$desc" && success="y" + fi + + if [[ "$success" == "y" ]]; then + downloadFile "$iso" "$MG_URL" "" "" "$lang" "$desc" && return 0 + info "$msg" && html "$msg" && sleep "$delay" + downloadFile "$iso" "$MG_URL" "" "" "$lang" "$desc" && return 0 + rm -f "$iso" + fi + + fi + return 1 }