mirror of
				https://github.com/dockur/windows.git
				synced 2025-11-03 22:04:29 +00:00 
			
		
		
		
	feat: Implement ARM compatibility check for Windows 11 (#1417)
This commit is contained in:
		
							parent
							
								
									4a5e455389
								
							
						
					
					
						commit
						e56f059bd2
					
				@ -1885,6 +1885,10 @@ skipVersion() {
 | 
			
		||||
  return 1
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
isCompatible() {
 | 
			
		||||
  return 0
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
setMachine() {
 | 
			
		||||
 | 
			
		||||
  local id="$1"
 | 
			
		||||
 | 
			
		||||
@ -403,11 +403,9 @@ getCatalog() {
 | 
			
		||||
  local edition=""
 | 
			
		||||
  local file="catalog.cab"
 | 
			
		||||
 | 
			
		||||
  if [[ "${id,,}" == "win11"* && "${PLATFORM,,}" != "x64" && "${ARCH,,}" == "arm64" ]]; then
 | 
			
		||||
  if [[ "${id,,}" == "win11"* ]] && ! isCompatible; then
 | 
			
		||||
    # ARMv8.0 cannot run Windows 11 builds higher than 22631
 | 
			
		||||
    if ! grep -qw 'Features.*atomics' /proc/cpuinfo; then
 | 
			
		||||
      "$(getBuild "$1" "$2" "22631.2861")" && return 0
 | 
			
		||||
    fi
 | 
			
		||||
    getBuild "$1" "$2" "22631.2861" && return 0
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  case "${id,,}" in
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user