Commit 99b13c1
fix(ci): derive version from Cargo.toml in release artifacts (#804)
* fix(ci): derive version from Cargo.toml in release artifacts
macOS Info.plist CFBundleVersion/CFBundleShortVersionString and
Flatpak metainfo.xml release version were hardcoded to 1.0.0.
Now all derive from Cargo.toml at build time, making it the
single source of truth for version across all release artifacts.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(ci): harden version extraction and fix macOS plist format
- Strip prerelease suffix for CFBundleVersion (Apple requires numeric)
- Add validation: fail fast if version extraction returns empty
- Verify Flatpak metainfo.xml replacement actually applied
- Use git tag date for Flatpak releases, current date for dev builds
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(ci): use cargo metadata instead of grep for version extraction
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(ci): harden plist version validation and use release date for Flatpak
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(ci): use CI run number for CFBundleVersion build number
CFBundleVersion (build number) now uses github.run_number for monotonic
increase across builds. CFBundleShortVersionString (marketing version)
stays as the stripped semver from Cargo.toml. This follows Apple's
recommended pattern and distinguishes dev/rc/release builds.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(ci): harden workflow ordering and quoting
- Move Rust toolchain install before cargo metadata in both macOS jobs
- Add Rust toolchain step to flatpak workflow for cargo metadata
- Quote $GITHUB_OUTPUT consistently
- Verify both version and date in flatpak metainfo check
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8e1786c commit 99b13c1
3 files changed
Lines changed: 70 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
40 | 67 | | |
41 | 68 | | |
42 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
180 | 199 | | |
181 | 200 | | |
182 | 201 | | |
| |||
270 | 289 | | |
271 | 290 | | |
272 | 291 | | |
273 | | - | |
| 292 | + | |
274 | 293 | | |
275 | | - | |
| 294 | + | |
276 | 295 | | |
277 | 296 | | |
278 | 297 | | |
| |||
474 | 493 | | |
475 | 494 | | |
476 | 495 | | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
477 | 515 | | |
478 | 516 | | |
479 | 517 | | |
| |||
563 | 601 | | |
564 | 602 | | |
565 | 603 | | |
566 | | - | |
| 604 | + | |
567 | 605 | | |
568 | | - | |
| 606 | + | |
569 | 607 | | |
570 | 608 | | |
571 | 609 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
0 commit comments