From 78ba0690f98be76a60ba4f494630ab2ec2902c2b Mon Sep 17 00:00:00 2001 From: bin456789 Date: Tue, 4 Nov 2025 22:17:11 +0800 Subject: [PATCH] =?UTF-8?q?windows:=20=E6=B7=BB=E5=8A=A0=20win8=20?= =?UTF-8?q?=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reinstall.sh b/reinstall.sh index 5c63188..57eb6f2 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -859,7 +859,7 @@ is_have_arm_version() { find_windows_iso() { parse_windows_image_name || error_and_exit "--image-name wrong: $image_name" - if ! [ "$version" = 8.1 ] && [ -z "$edition" ]; then + if ! { [ "$version" = 8 ] || [ "$version" = 8.1 ]; } && [ -z "$edition" ]; then error_and_exit "Edition is not set." fi @@ -908,7 +908,8 @@ get_windows_iso_link() { x86) echo _ ;; esac ;; - homebasic | homepremium | business | ultimate) echo _ ;; + homebasic | homepremium | ultimate) echo _ ;; + business | enterprise) "$edition" ;; esac ;; 7) @@ -927,10 +928,9 @@ get_windows_iso_link() { professional | enterprise | ultimate) echo "$edition" ;; esac ;; - # massgrave 不提供 windows 8 下载 - 8.1) + 8 | 8.1) case "$edition" in - '') echo _ ;; # windows 8.1 core + '') echo _ ;; # windows 8.x core pro | enterprise) echo "$edition" ;; esac ;; @@ -1025,7 +1025,7 @@ get_windows_iso_link() { echo server else case "$version" in - vista | 7 | 8.1 | 10 | 11) + vista | 7 | 8 | 8.1 | 10 | 11) echo "$version" ;; esac