mirror of
				https://github.com/dockur/windows.git
				synced 2025-10-27 03:15:49 +00:00 
			
		
		
		
	feat: Support Windows 10 LTSC (#97)
This commit is contained in:
		
							parent
							
								
									9bb4a4a322
								
							
						
					
					
						commit
						1c79e3e1f8
					
				
					 3 changed files with 425 additions and 2 deletions
				
			
		|  | @ -39,10 +39,19 @@ fi | |||
| [[ "${VERSION,,}" == "win16" ]] && VERSION="win2016-eval" | ||||
| [[ "${VERSION,,}" == "win2016" ]] && VERSION="win2016-eval" | ||||
| 
 | ||||
| [[ "${VERSION,,}" == "ltsc10" ]] && VERSION="win10x64-enterprise-ltsc-eval" | ||||
| [[ "${VERSION,,}" == "10ltsc" ]] && 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 +318,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 | ||||
|  | @ -329,7 +345,11 @@ detectImage() { | |||
|   DETECTED="" | ||||
| 
 | ||||
|   if [[ "$EXTERNAL" != [Yy1]* ]] && [ -z "$CUSTOM" ]; then | ||||
|     DETECTED="$VERSION" | ||||
|     if [[ "${VERSION,,}" != "win10x64-enterprise-ltsc-eval" ]]; then | ||||
|       DETECTED="$VERSION" | ||||
|     else | ||||
|       DETECTED="win10x64-ltsc" | ||||
|     fi | ||||
|     if [[ "$MANUAL" != [Yy1]* ]]; then | ||||
|       if [ -f "/run/assets/$DETECTED.xml" ]; then | ||||
|         XML="$DETECTED.xml" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kroese
						Kroese