windows: 添加 win8 链接
Some checks failed
运行主程序 / 运行主程序 (./reinstall.bat --debug --password 123@@@, windows-latest) (push) Has been cancelled
运行主程序 / 运行主程序 (sudo bash reinstall.sh --debug --password 123@@@, ubuntu-latest) (push) Has been cancelled
同步到 CNB / 同步到 CNB (push) Has been cancelled

This commit is contained in:
bin456789 2025-11-04 22:17:11 +08:00
parent 9e0968eabd
commit 78ba0690f9
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -859,7 +859,7 @@ is_have_arm_version() {
find_windows_iso() { find_windows_iso() {
parse_windows_image_name || error_and_exit "--image-name wrong: $image_name" 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." error_and_exit "Edition is not set."
fi fi
@ -908,7 +908,8 @@ get_windows_iso_link() {
x86) echo _ ;; x86) echo _ ;;
esac esac
;; ;;
homebasic | homepremium | business | ultimate) echo _ ;; homebasic | homepremium | ultimate) echo _ ;;
business | enterprise) "$edition" ;;
esac esac
;; ;;
7) 7)
@ -927,10 +928,9 @@ get_windows_iso_link() {
professional | enterprise | ultimate) echo "$edition" ;; professional | enterprise | ultimate) echo "$edition" ;;
esac esac
;; ;;
# massgrave 不提供 windows 8 下载 8 | 8.1)
8.1)
case "$edition" in case "$edition" in
'') echo _ ;; # windows 8.1 core '') echo _ ;; # windows 8.x core
pro | enterprise) echo "$edition" ;; pro | enterprise) echo "$edition" ;;
esac esac
;; ;;
@ -1025,7 +1025,7 @@ get_windows_iso_link() {
echo server echo server
else else
case "$version" in case "$version" in
vista | 7 | 8.1 | 10 | 11) vista | 7 | 8 | 8.1 | 10 | 11)
echo "$version" echo "$version"
;; ;;
esac esac