When this script is executed on a machine running "windows on arm" it crashes, cause it tries to execute the x64 binary "wimlib-imagex.exe". At the moment windows 10 is only capable of emulating x86 binaries on arm.
By detecting the cpu architecture and switching to the x86 binaries the script works fine.
When this script is executed on a machine running "windows on arm" it crashes, cause it tries to execute the x64 binary "wimlib-imagex.exe". At the moment windows 10 is only capable of emulating x86 binaries on arm.
By detecting the cpu architecture and switching to the x86 binaries the script works fine.