Cockatrice/cockatrice/src/client
tooomm 5dc5390880
Some checks are pending
CodeQL / Analyze (cpp) (push) Waiting to run
CodeQL / Analyze (actions) (push) Waiting to run
Build Desktop / Configure (push) Waiting to run
Build Desktop / Debian 13 (push) Blocked by required conditions
Build Desktop / Debian 12 (push) Blocked by required conditions
Build Desktop / Fedora 44 (push) Blocked by required conditions
Build Desktop / Fedora 43 (push) Blocked by required conditions
Build Desktop / Servatrice_Debian 12 (push) Blocked by required conditions
Build Desktop / Ubuntu 26.04 (push) Blocked by required conditions
Build Desktop / Ubuntu 24.04 (push) Blocked by required conditions
Build Desktop / Arch (push) Blocked by required conditions
Build Desktop / macOS 13 Intel (push) Blocked by required conditions
Build Desktop / macOS 14 (push) Blocked by required conditions
Build Desktop / macOS 15 (push) Blocked by required conditions
Build Desktop / macOS 26 Debug (push) Blocked by required conditions
Build Desktop / Windows 10 (push) Blocked by required conditions
Build Docker / Servatrice (arm) (push) Waiting to run
Build Docker / Servatrice (x86) (push) Waiting to run
Build Docker / Publish multi-platform Servatrice image (push) Blocked by required conditions
Fix and rework client updater logic (#7038)
* first version

* combined logic + better regex

* Simplify, we only support 64bit, installer prevents wrong installs

* lint + fix Linux versions (missing declaration)

* update regex

* improve/add comments

* comments

* ReleaseChannel: parse non-numeric OS versions on Windows Server

QSysInfo::productVersion() returns "Server 2022" on Windows Server, so
splitting on '.' and calling toInt() made the version unparseable and
disabled the in-client updater there. Extract the first numeric token
instead; Server 2022 becomes 2022 and matches the Win10 assets.

* ReleaseChannel: don't offer 64-bit assets on 32-bit Windows

The old downloadMatchesCurrentOS() had an explicit 32-bit branch that
only accepted "32bit" assets. Restore that guard: 32-bit Windows builds
return no match instead of being offered the 64-bit Win10 installer that
won't run.

* ReleaseChannel: only query the OS version on updater platforms

The in-client updater only ships assets for macOS and Windows, but the
host system version was still being resolved on every platform, including
Linux where it is never used. Compute it only under the Q_OS_MACOS /
Q_OS_WIN guards.

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-10-03 17:57:03 +02:00
..
network Fix and rework client updater logic (#7038) 2026-10-03 17:57:03 +02:00
settings [Settings] Back up the settings folder before migrating (#7386) 2026-10-03 14:59:58 +02:00
lag_monitor.cpp [Client] Detect main-thread event loop stalls (#7155) 2026-08-23 00:53:40 +02:00
lag_monitor.h [Client] Detect main-thread event loop stalls (#7155) 2026-08-23 00:53:40 +02:00
latency_graph_widget.cpp [Client] Show latency in status bar and server tab indicator (#7154) 2026-08-23 02:25:04 +02:00
latency_graph_widget.h [Client] Show latency in status bar and server tab indicator (#7154) 2026-08-23 02:25:04 +02:00
latency_status_widget.cpp [Client] Show latency in status bar and server tab indicator (#7154) 2026-08-23 02:25:04 +02:00
latency_status_widget.h [Client] Show latency in status bar and server tab indicator (#7154) 2026-08-23 02:25:04 +02:00
sound_engine.cpp Use capitalized app names (#7255) 2026-09-12 17:30:46 +02:00
sound_engine.h Standardize Doxygen documentation (#6885) 2026-05-21 22:58:07 +02:00
translation.h Major Directory Refactoring (#5118) 2024-10-20 10:11:35 -04:00
url_scheme_event_filter.h Define Cockatrice as an editor/handler for .cod files and cockatrice:// protocol on all platforms (#6775) 2026-08-08 19:02:19 +02:00