Files
tdesktop/Telegram/build/qt_version.py
allhaileris afb81b8278
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Close stale issues and PRs / stale (push) Successful in 13s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
init
2026-02-16 15:50:16 +03:00

14 lines
368 B
Python

import sys, os
def resolve(arch):
if sys.platform == 'darwin':
os.environ['QT'] = '6.2.13'
elif sys.platform == 'win32':
if arch == 'arm' or 'qt6' in sys.argv:
print('Choosing Qt 6.')
os.environ['QT'] = '6.10.1'
else:
print('Choosing Qt 5.')
os.environ['QT'] = '5.15.18'
return True