Commit ee86a8e
authored
Improve installer version detection using semantic version sorting
This update replaces string-based version comparison with proper semantic
version sorting using `packaging.version.Version`. This ensures that multiple
Affinity installer builds are always detected and ordered correctly, even when
version numbers include multi-digit components (e.g., 2.10.0 vs 2.9.1).
As a result, affinity-cli now selects the most recent installer reliably,
leading to more predictable and stable installation behavior—especially for
users maintaining both v1 and v2 installers in the same directory.
No breaking changes. This enhancement improves internal accuracy and overall
user experience when managing multiple Affinity installer versions.1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| |||
0 commit comments