mirror of
https://github.com/bin456789/reinstall.git
synced 2026-03-22 04:24:17 +08:00
windows: 修复查找 windows server 2025 iso 失效
This commit is contained in:
18
reinstall.sh
18
reinstall.sh
@ -882,8 +882,14 @@ find_windows_iso() {
|
|||||||
full_lang=$(english)
|
full_lang=$(english)
|
||||||
|
|
||||||
case "$basearch" in
|
case "$basearch" in
|
||||||
x86_64) arch_win=x64 ;;
|
x86_64)
|
||||||
aarch64) arch_win=arm64 ;;
|
arch_win=x64
|
||||||
|
arch_win_vlsc=64bit
|
||||||
|
;;
|
||||||
|
aarch64)
|
||||||
|
arch_win=arm64
|
||||||
|
arch_win_vlsc=arm64
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
get_windows_iso_link
|
get_windows_iso_link
|
||||||
@ -1009,6 +1015,9 @@ get_windows_iso_link() {
|
|||||||
pro | education | enterprise | 'pro education' | 'pro for workstations') echo pro ;;
|
pro | education | enterprise | 'pro education' | 'pro for workstations') echo pro ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
2025)
|
||||||
|
echo SrvSTDCORE
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1136,8 +1145,11 @@ get_windows_iso_link_inner() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# vlsc
|
# vlsc
|
||||||
|
# SW_DVD5_Win_10_IOT_Enterprise_2015_LTSB_64Bit_EMB_English_OEM_X20-20063.IMG
|
||||||
|
# SW_DVD9_Win_Pro_10_22H2.15_Arm64_English_Pro_Ent_EDU_N_MLF_X23-67223.ISO
|
||||||
|
# SWDVD9_WinSrvSTDCORE2025_24H2.16_64Bit_English_DC_STD_MLF_RTMUpdJan26_X24-26760.iso
|
||||||
if [ -n "$label_vlsc" ]; then
|
if [ -n "$label_vlsc" ]; then
|
||||||
regex="sw_dvd[59]_win_${label_vlsc}_${version}.*${arch_win}_${full_lang}.*.(iso|img)"
|
regex="sw_?dvd[59]_win_?${label_vlsc}_?${version}.*${arch_win_vlsc}_${full_lang}.*.(iso|img)"
|
||||||
regexs+=("$regex")
|
regexs+=("$regex")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user