Commit 5f62437
authored
feat: Derive baked-in version from git tag instead of hardcoding (#74)
- Telemetry app_version and `flapi --version` were always "0.3.0" (the
hardcoded project() version), while real releases use CalVer tags
(v26.06.11). The tag only flowed into the wheel name, never the binary.
- CMakeLists.txt now resolves FLAPI_VERSION in priority order:
1. -DFLAPI_VERSION_OVERRIDE (CI sets this from the git tag)
2. `git describe --tags --dirty` (meaningful local dev versions)
3. "latest" (fallback: source tarball / no git)
A leading "v" is stripped so the binary reports clean semver.
- Makefile: forward $(CMAKE_EXTRA_FLAGS) on the macOS release-x86_64 /
release-arm64 targets (release already forwarded it).
- build.yaml: on tag pushes, inject -DFLAPI_VERSION_OVERRIDE from
github.ref_name across Windows, Linux (docker -e), and macOS builds.1 parent 291cb50 commit 5f62437
3 files changed
Lines changed: 32 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
| 214 | + | |
| 215 | + | |
212 | 216 | | |
213 | 217 | | |
214 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
106 | 129 | | |
107 | 130 | | |
108 | 131 | | |
| |||
329 | 352 | | |
330 | 353 | | |
331 | 354 | | |
332 | | - | |
| 355 | + | |
333 | 356 | | |
334 | 357 | | |
335 | 358 | | |
| |||
342 | 365 | | |
343 | 366 | | |
344 | 367 | | |
345 | | - | |
| 368 | + | |
346 | 369 | | |
347 | 370 | | |
348 | 371 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
0 commit comments