Skip to content

Commit edb300d

Browse files
authored
feat: Additional download mirrors (#799)
1 parent 9db3651 commit edb300d

File tree

1 file changed

+37
-5
lines changed

1 file changed

+37
-5
lines changed

src/mido.sh

+37-5
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ getWindows() {
309309
info "$msg" && html "$msg"
310310

311311
case "${version,,}" in
312-
"win2008r2" | "win81${PLATFORM,,}-enterprise-eval" | "win11${PLATFORM,,}-enterprise-iot-eval" )
312+
"win2008r2" | "win81${PLATFORM,,}-enterprise"* | "win11${PLATFORM,,}-enterprise-iot-eval" )
313313
if [[ "${lang,,}" != "en" ]] && [[ "${lang,,}" != "en-"* ]]; then
314314
error "No download in the $language language available for $edition!"
315315
MIDO_URL="" && return 1
@@ -336,13 +336,45 @@ getWindows() {
336336
"win2025-eval" | "win2022-eval" | "win2019-eval" | "win2016-eval" | "win2012r2-eval" )
337337
download_windows_eval "$version" "$lang" "$edition" && return 0
338338
;;
339-
"win81${PLATFORM,,}-enterprise-eval" )
340-
MIDO_URL="https://download.microsoft.com/download/B/9/9/B999286E-0A47-406D-8B3D-5B5AD7373A4A/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_ENTERPRISE_EVAL_EN-US-IR3_CENA_X64FREE_EN-US_DV9.ISO" && return 0
339+
"win81${PLATFORM,,}-enterprise"* | "win2008r2" )
340+
;;
341+
* ) error "Invalid VERSION specified, value \"$version\" is not recognized!" ;;
342+
esac
343+
344+
if [[ "${lang,,}" != "en" ]] && [[ "${lang,,}" != "en-"* ]]; then
345+
MIDO_URL=""
346+
return 1
347+
fi
348+
349+
case "${version,,}" in
350+
"win81${PLATFORM,,}-enterprise"* )
351+
MIDO_URL="https://download.microsoft.com/download/B/9/9/B999286E-0A47-406D-8B3D-5B5AD7373A4A/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_ENTERPRISE_EVAL_EN-US-IR3_CENA_X64FREE_EN-US_DV9.ISO"
352+
return 0
353+
;;
354+
"win2025-eval" )
355+
MIDO_URL="https://software-static.download.prss.microsoft.com/dbazure/888969d5-f34g-4e03-ac9d-1f9786c66749/26100.1.240331-1435.ge_release_SERVER_EVAL_x64FRE_en-us.iso"
356+
return 0
357+
;;
358+
"win2022-eval" )
359+
MIDO_URL="https://software-static.download.prss.microsoft.com/sg/download/888969d5-f34g-4e03-ac9d-1f9786c66749/SERVER_EVAL_x64FRE_en-us.iso"
360+
return 0
361+
;;
362+
"win2019-eval" )
363+
MIDO_URL="https://software-download.microsoft.com/download/pr/17763.737.190906-2324.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us_1.iso"
364+
return 0
365+
;;
366+
"win2016-eval" )
367+
MIDO_URL="https://software-download.microsoft.com/download/pr/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO"
368+
return 0
369+
;;
370+
"win2012r2-eval" )
371+
MIDO_URL="https://download.microsoft.com/download/6/2/A/62A76ABB-9990-4EFC-A4FE-C7D698DAEB96/9600.17050.WINBLUE_REFRESH.140317-1640_X64FRE_SERVER_EVAL_EN-US-IR3_SSS_X64FREE_EN-US_DV9.ISO"
372+
return 0
341373
;;
342374
"win2008r2" )
343-
MIDO_URL="https://download.microsoft.com/download/4/1/D/41DEA7E0-B30D-4012-A1E3-F24DC03BA1BB/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso" && return 0
375+
MIDO_URL="https://download.microsoft.com/download/4/1/D/41DEA7E0-B30D-4012-A1E3-F24DC03BA1BB/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso"
376+
return 0
344377
;;
345-
* ) error "Invalid VERSION specified, value \"$version\" is not recognized!" ;;
346378
esac
347379

348380
MIDO_URL=""

0 commit comments

Comments
 (0)