mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
Update install.sh
This commit is contained in:
parent
ad6a6d2106
commit
1ec158a4c5
1 changed files with 16 additions and 1 deletions
|
|
@ -39,10 +39,18 @@ fi
|
|||
[[ "${VERSION,,}" == "win16" ]] && VERSION="win2016-eval"
|
||||
[[ "${VERSION,,}" == "win2016" ]] && VERSION="win2016-eval"
|
||||
|
||||
[[ "${VERSION,,}" == "ltsc10" ]] && VERSION="win10x64-enterprise-ltsc-eval"
|
||||
[[ "${VERSION,,}" == "win10-ltsc" ]] && VERSION="win10x64-enterprise-ltsc-eval"
|
||||
[[ "${VERSION,,}" == "win10x64-ltsc" ]] && VERSION="win10x64-enterprise-ltsc-eval"
|
||||
|
||||
if [[ "${VERSION,,}" == "tiny11" ]]; then
|
||||
VERSION="https://archive.org/download/tiny-11-core-x-64-beta-1/tiny11%20core%20x64%20beta%201.iso"
|
||||
fi
|
||||
|
||||
if [[ "${VERSION,,}" == "tiny10" ]]; then
|
||||
VERSION="https://archive.org/download/tiny-10-23-h2/tiny10%20x64%2023h2.iso"
|
||||
fi
|
||||
|
||||
CUSTOM="custom.iso"
|
||||
|
||||
[ ! -f "$STORAGE/$CUSTOM" ] && CUSTOM="Custom.iso"
|
||||
|
|
@ -309,12 +317,19 @@ findVersion() {
|
|||
local detected=""
|
||||
|
||||
[[ "${name,,}" == *"windows 11"* ]] && detected="win11x64"
|
||||
[[ "${name,,}" == *"windows 10"* ]] && detected="win10x64"
|
||||
[[ "${name,,}" == *"windows 8"* ]] && detected="win81x64"
|
||||
[[ "${name,,}" == *"server 2022"* ]] && detected="win2022-eval"
|
||||
[[ "${name,,}" == *"server 2019"* ]] && detected="win2019-eval"
|
||||
[[ "${name,,}" == *"server 2016"* ]] && detected="win2016-eval"
|
||||
[[ "${name,,}" == *"windows 7"* ]] && detected="win7x64-ultimate"
|
||||
|
||||
if [[ "${name,,}" == *"windows 10"* ]]; then
|
||||
if [[ "${name,,}" == *"enterprise ltsc"* ]]; then
|
||||
detected="win10x64-ltsc"
|
||||
else
|
||||
detected="win10x64"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "$detected"
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue