mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
feat: Added support for the Enterprise Evaluations (#406)
This commit is contained in:
parent
77f43f35d2
commit
bafa48a1b7
6 changed files with 1162 additions and 8 deletions
|
|
@ -21,7 +21,7 @@ cd /run
|
|||
|
||||
trap - ERR
|
||||
|
||||
info "Booting ${APP}${BOOT_DESC} on ${CPU} using QEMU v${VERS} with kernel $(uname -r)..."
|
||||
info "Booting ${APP}${BOOT_DESC} on a ${CPU} using QEMU v${VERS} with kernel $(uname -r)..."
|
||||
[[ "$DEBUG" == [Yy1]* ]] && echo "Arguments: $ARGS" && echo
|
||||
|
||||
{ qemu-system-x86_64 ${ARGS:+ $ARGS} >"$QEMU_OUT" 2>"$QEMU_LOG"; rc=$?; } || :
|
||||
|
|
|
|||
|
|
@ -129,6 +129,9 @@ printVersion() {
|
|||
[[ "$id" == "win11x64-iot" ]] && desc="Windows 11 IoT"
|
||||
[[ "$id" == "win10x64-ltsc" ]] && desc="Windows 10 LTSC"
|
||||
[[ "$id" == "win11x64-ltsc" ]] && desc="Windows 11 LTSC"
|
||||
[[ "$id" == "win81x64-enterprise-eval" ]] && desc="Windows 8 Enterprise"
|
||||
[[ "$id" == "win10x64-enterprise-eval" ]] && desc="Windows 10 Enterprise"
|
||||
[[ "$id" == "win11x64-enterprise-eval" ]] && desc="Windows 11 Enterprise"
|
||||
|
||||
echo "$desc"
|
||||
return 0
|
||||
|
|
@ -141,7 +144,6 @@ getName() {
|
|||
|
||||
[[ "${file,,}" == "win11"* ]] && desc="Windows 11"
|
||||
[[ "${file,,}" == "win10"* ]] && desc="Windows 10"
|
||||
[[ "${file,,}" == "win8.1"* ]] && desc="Windows 8"
|
||||
[[ "${file,,}" == "win8"* ]] && desc="Windows 8"
|
||||
[[ "${file,,}" == "win7"* ]] && desc="Windows 7"
|
||||
[[ "${file,,}" == "winxp"* ]] && desc="Windows XP"
|
||||
|
|
@ -151,14 +153,12 @@ getName() {
|
|||
[[ "${file,,}" == "tiny11_core"* ]] && desc="Tiny 11 Core"
|
||||
[[ "${file,,}" == *"windows11"* ]] && desc="Windows 11"
|
||||
[[ "${file,,}" == *"windows10"* ]] && desc="Windows 10"
|
||||
[[ "${file,,}" == *"windows8.1"* ]] && desc="Windows 8"
|
||||
[[ "${file,,}" == *"windows8"* ]] && desc="Windows 8"
|
||||
[[ "${file,,}" == *"windows7"* ]] && desc="Windows 7"
|
||||
[[ "${file,,}" == *"windowsxp"* ]] && desc="Windows XP"
|
||||
[[ "${file,,}" == *"windowsvista"* ]] && desc="Windows Vista"
|
||||
[[ "${file,,}" == *"windows_11"* ]] && desc="Windows 11"
|
||||
[[ "${file,,}" == *"windows_10"* ]] && desc="Windows 10"
|
||||
[[ "${file,,}" == *"windows_8.1"* ]] && desc="Windows 8"
|
||||
[[ "${file,,}" == *"windows_8"* ]] && desc="Windows 8"
|
||||
[[ "${file,,}" == *"windows_7"* ]] && desc="Windows 7"
|
||||
[[ "${file,,}" == *"windows_xp"* ]] && desc="Windows XP"
|
||||
|
|
@ -186,8 +186,6 @@ getVersion() {
|
|||
local detected=""
|
||||
|
||||
[[ "${name,,}" == *"windows 7"* ]] && detected="win7x64"
|
||||
[[ "${name,,}" == *"windows 8"* ]] && detected="win81x64"
|
||||
[[ "${name,,}" == *"windows 11"* ]] && detected="win11x64"
|
||||
[[ "${name,,}" == *"windows vista"* ]] && detected="winvistax64"
|
||||
|
||||
[[ "${name,,}" == *"server 2008"* ]] && detected="win2008r2"
|
||||
|
|
@ -197,6 +195,22 @@ getVersion() {
|
|||
[[ "${name,,}" == *"server 2016"* ]] && detected="win2016-eval"
|
||||
[[ "${name,,}" == *"server 2012"* ]] && detected="win2012r2-eval"
|
||||
|
||||
if [[ "${name,,}" == *"windows 8"* ]]; then
|
||||
if [[ "${name,,}" == *"enterprise evaluation"* ]]; then
|
||||
detected="win81x64-enterprise-eval"
|
||||
else
|
||||
detected="win81x64"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "${name,,}" == *"windows 11"* ]]; then
|
||||
if [[ "${name,,}" == *"enterprise evaluation"* ]]; then
|
||||
detected="win11x64-enterprise-eval"
|
||||
else
|
||||
detected="win11x64"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "${name,,}" == *"windows 10"* ]]; then
|
||||
if [[ "${name,,}" == *" iot "* ]]; then
|
||||
detected="win10x64-iot"
|
||||
|
|
@ -204,7 +218,11 @@ getVersion() {
|
|||
if [[ "${name,,}" == *"ltsc"* ]]; then
|
||||
detected="win10x64-ltsc"
|
||||
else
|
||||
detected="win10x64"
|
||||
if [[ "${name,,}" == *"enterprise evaluation"* ]]; then
|
||||
detected="win10x64-enterprise-eval"
|
||||
else
|
||||
detected="win10x64"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue