refactor: rename download_windows functions
This commit is contained in:
parent
1012109536
commit
b1c75d3b5d
10
quickget
10
quickget
|
@ -3438,7 +3438,7 @@ function curl_windows() {
|
||||||
mv "${part_file}" "${real_file}"
|
mv "${part_file}" "${real_file}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function download_windows-server() {
|
function download_windows_server() {
|
||||||
# Download enterprise evaluation windows versions
|
# Download enterprise evaluation windows versions
|
||||||
local windows_version="$1"
|
local windows_version="$1"
|
||||||
local enterprise_type="$2"
|
local enterprise_type="$2"
|
||||||
|
@ -3521,7 +3521,7 @@ function download_windows-server() {
|
||||||
OS="windows-server"
|
OS="windows-server"
|
||||||
}
|
}
|
||||||
|
|
||||||
function download_windows() {
|
function download_windows_workstation() {
|
||||||
# Download newer consumer Windows versions from behind gated Microsoft API
|
# Download newer consumer Windows versions from behind gated Microsoft API
|
||||||
# This function aims to precisely emulate what Fido does down to the URL requests and HTTP headers (exceptions: updated user agent and referer adapts to Windows version instead of always being "windows11") but written in POSIX sh (with coreutils) and curl instead of PowerShell (also simplified to greatly reduce attack surface)
|
# This function aims to precisely emulate what Fido does down to the URL requests and HTTP headers (exceptions: updated user agent and referer adapts to Windows version instead of always being "windows11") but written in POSIX sh (with coreutils) and curl instead of PowerShell (also simplified to greatly reduce attack surface)
|
||||||
# However, differences such as the order of HTTP headers and TLS stacks (could be used to do TLS fingerprinting) still exist
|
# However, differences such as the order of HTTP headers and TLS stacks (could be used to do TLS fingerprinting) still exist
|
||||||
|
@ -3670,11 +3670,11 @@ function download_windows() {
|
||||||
|
|
||||||
function get_windows() {
|
function get_windows() {
|
||||||
if [ "${RELEASE}" == "10-ltsc" ]; then
|
if [ "${RELEASE}" == "10-ltsc" ]; then
|
||||||
download_windows-server windows-10-enterprise ltsc
|
download_windows_workstation windows-10-enterprise ltsc
|
||||||
elif [ "${OS}" == "windows-server" ]; then
|
elif [ "${OS}" == "windows-server" ]; then
|
||||||
download_windows-server windows-server-${RELEASE}
|
download_windows_server "windows-server-${RELEASE}"
|
||||||
else
|
else
|
||||||
download_windows "${RELEASE}"
|
download_windows_workstation "${RELEASE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${download_iso}" == 'on' ]; then
|
if [ "${download_iso}" == 'on' ]; then
|
||||||
|
|
Loading…
Reference in New Issue