Repository navigation
Take the version from the nearest git tag - #23
Merged
Merged
Conversation
Same approach as App-MeasurementComputing: cmake/ProjectVersion.cmake turns the nearest tag (v1.17.2, v1.18.0b1, ...) into the numeric project() version and the full version for package names. Falls back to 1.17.2 without git or tags; AUDIOCAPTURE_VERSION_OVERRIDE forces a version. The project said 0.2.0 while releases are tagged 1.17.x. CI fetches tags, and the macOS signing job reads the version from the package name instead of grepping CMakeLists.txt.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CMakeLists.txthard-codedVERSION 0.2.0, but releases are taggedv1.17.x, so packages were namedAudioCapture-0.2.0-.... This PR takes the version from the nearest git tag, the same way App-MeasurementComputing does.cmake/ProjectVersion.cmake(adapted from App-MeasurementComputing): turns the nearestv*or numeric tag into two values.MAJOR.MINOR.PATCH, used forproject()and the macOS bundle version.1.17.2.-DAUDIOCAPTURE_VERSION_OVERRIDE=...forces a version.fetch-depth: 0so the tags are present.project(... VERSION x.y.z)out ofCMakeLists.txt, which no longer works once the version is a variable.Configured locally:
v1.17.2AudioCapture-1.17.2-macOS_arm64-DAUDIOCAPTURE_VERSION_OVERRIDE=v1.18.0b1AudioCapture-1.18.0b1-macOS_arm64.gitAudioCapture-1.17.2-macOS_arm64