Skip to content

Conversation

al3xtjames
Copy link

osxbundle.py currently reads the version number from MPV_VERSION, while Meson first tries git describe before falling back to MPV_VERSION. Update osxbundle.py to try reading the version number from version.h before falling back to MPV_VERSION. This ensures that the version number in the bundle matches the output of mpv --version.

@al3xtjames al3xtjames force-pushed the osxbundle-version.h branch 3 times, most recently from 2135b60 to 9fef0f0 Compare October 12, 2025 09:04
@github-actions
Copy link

github-actions bot commented Oct 12, 2025

def bundle_version(build_path, src_path):
version = "UNKNOWN"
version_h_path = os.path.join(build_path, "common", "version.h")
version_path = os.path.join(src_path, "MPV_VERSION")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since the version.h already incorporates the fallback to MPV_VERSION, we don't need this as another fallback here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does seem redundant. Let me remove the MPV_VERSION fallback.

osxbundle.py currently reads the version number from MPV_VERSION, while
Meson first tries git describe before falling back to MPV_VERSION.
Update osxbundle.py to try reading the version number from version.h
before falling back to MPV_VERSION. This ensures that the version number
in the bundle matches the output of mpv --version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants