UI: Implement JavaScript getOS function Windows platform architecture detection #104136

Merged
Márton Lente merged 15 commits from get-os-win-arm into main 2024-11-08 12:03:41 +01:00
Showing only changes of commit bae0017100 - Show all commits

View File

@ -337,9 +337,13 @@ $analytics_event_name = 'Downloads+Blender';
if (os == 'windows') { if (os == 'windows') {
showPlatformWarning('This Windows version might not be supported.'); showPlatformWarning('This Windows version might not be supported.');
} }
/* Windows Arm. */
else if (os == 'windows-arm') { else if (os == 'windows-arm') {
showPlatformWarning('Blender is not available for Windows ARM architecture yet.'); /* Set the Download button platform to Windows Arm. */
downloadButtons = document.getElementsByClassName('dl-os-windows-arm');
} }
/* Linux. */ /* Linux. */
else if (os.startsWith('linux') || os.startsWith('freebsd')) { else if (os.startsWith('linux') || os.startsWith('freebsd')) {