diff --git a/src/define.sh b/src/define.sh
index e431a654..92146759 100644
--- a/src/define.sh
+++ b/src/define.sh
@@ -1023,6 +1023,10 @@ getMido() {
sum="2cee70bd183df42b92a2e0da08cc2bb7a2a9ce3a3841955a012c0f77aeb3cb29"
url="https://software-static.download.prss.microsoft.com/dbazure/998969d5-f34g-4e03-ac9d-1f9786c66749/26100.1742.240906-0331.ge_release_svc_refresh_CLIENT_IOT_LTSC_EVAL_x64FRE_en-us.iso"
;;
+ "win10x64" )
+ size=6140975104
+ sum="a6f470ca6d331eb353b815c043e327a347f594f37ff525f17764738fe812852e"
+ ;;
"win10x64-enterprise-eval" )
size=5550497792
sum="ef7312733a9f5d7d51cfa04ac497671995674ca5e1058d5164d6028f0938d668"
diff --git a/src/mido.sh b/src/mido.sh
index 93efaf41..458c07de 100644
--- a/src/mido.sh
+++ b/src/mido.sh
@@ -83,32 +83,22 @@ curlRequest() {
return 0
}
-downloadWindows() {
+downloadWindowsLink() {
- local id="$1"
- local lang="$2"
- local desc="$3"
+ local productId="$1"
+ local url="$2"
+ local agent="$3"
+ local language="$4"
+ local lang="$5"
+ local desc="$6"
+ local type="$7"
- local ovToken="" ovTicks="" ovTime
local skuId skuJson
local linkJson link
- local language ovData
- local session agent
- local type winVer
- local page productId
+ local ovData ovTime session
+ local ovToken="" ovTicks=""
local profile="606624d44113"
- agent=$(getAgent)
- language=$(getLanguage "$lang" "name")
-
- case "${id,,}" in
- "win11x64" ) winVer="11" && type="1" ;;
- "win11arm64" ) winVer="11arm64" && type="2" ;;
- * ) error "Invalid VERSION specified, value \"$id\" is not recognized!" && return 1 ;;
- esac
-
- local url="https://www.microsoft.com/en-us/software-download/windows$winVer"
-
# uuidgen: For MacOS (installed by default) and other systems (e.g. with no /proc) that don't have a kernel interface for generating random UUIDs
if ! session=$(cat /proc/sys/kernel/random/uuid 2> /dev/null || uuidgen --random); then
error "Failed to generate session ID!"
@@ -122,23 +112,6 @@ downloadWindows() {
return 1
fi
- # Get product edition ID for latest release of given Windows version
- enabled "$DEBUG" && echo "Parsing download page: ${url}"
-
- curlRequest page "Microsoft" "$agent" \
- --header "Accept:" \
- --max-filesize 1M \
- -- "$url" || return 1
-
- enabled "$DEBUG" && echo -n "Getting Product edition ID: "
- productId=$(echo "$page" | grep -Eo '