Explorar o código

feat: Add Windows 11 LTSC support (#770)

Kroese hai 9 meses
pai
achega
73e7253218
Modificáronse 3 ficheiros con 8 adicións e 5 borrados
  1. 3 0
      assets/win11x64-iot.xml
  2. 3 0
      assets/win11x64-ltsc.xml
  3. 2 5
      src/define.sh

+ 3 - 0
assets/win11x64-iot.xml

@@ -86,6 +86,9 @@
         <AcceptEula>true</AcceptEula>
         <FullName>Docker</FullName>
         <Organization>Windows for Docker</Organization>
+        <ProductKey>
+          <Key />
+        </ProductKey>
       </UserData>
       <EnableFirewall>false</EnableFirewall>
       <Diagnostics>

+ 3 - 0
assets/win11x64-ltsc.xml

@@ -86,6 +86,9 @@
         <AcceptEula>true</AcceptEula>
         <FullName>Docker</FullName>
         <Organization>Windows for Docker</Organization>
+        <ProductKey>
+          <Key />
+        </ProductKey>
       </UserData>
       <EnableFirewall>false</EnableFirewall>
       <Diagnostics>

+ 2 - 5
src/define.sh

@@ -115,7 +115,7 @@ parseVersion() {
       ;;
     "ltsc11" | "11ltsc" | "win11-ltsc" | "win11x64-ltsc" | "win11x64-enterprise-ltsc-eval" )
       VERSION="win11x64-enterprise-ltsc-eval"
-      [ -z "$DETECTED" ] && DETECTED="win11x64-iot"
+      [ -z "$DETECTED" ] && DETECTED="win11x64-ltsc"
       ;;
     "ltsc10" | "10ltsc" | "win10-ltsc" | "win10x64-ltsc" | "win10x64-enterprise-ltsc-eval" )
       VERSION="win10x64-enterprise-ltsc-eval"
@@ -420,7 +420,7 @@ printEdition() {
       edition="Education"
       ;;
     *"-iot" | *"-iot-eval" )
-      edition="IoT"
+      edition="LTSC"
       ;;
     *"-ltsc" | *"-ltsc-eval" )
       edition="LTSC"
@@ -2134,9 +2134,6 @@ setMachine() {
       if ! prepare2k3 "$iso" "$dir" "$desc"; then
         error "Failed to prepare $desc ISO!" && return 1
       fi ;;
-    "win2025"* | "win11x64-iot"* | "win11x64-ltsc"* )
-      # Temporary: Use IDE CD to workaround install bug
-      MEDIA_TYPE="ide" ;;
   esac
 
   return 0