ITADN

Update compiled version string to include swaybg version when Git is used

#77Pull Requestjdknight 创建于 2024-08-03已合并
J
jdknightcommented
### build: include swaybg version in version string when using git Update the version population to always include the swaybg fixed version string in the final version. This replicates the [logic used in sway](https://github.com/swaywm/sway/blob/9bb45a403758c8606fe9a7f0b5b5316bae1a12dd/meson.build#L163-L171). ### build: avoid git repository discovery when determining version When attempting to use Git to populate commit/branch information in a version string, it is possible through repository discovery that it uses Git information not relevant to project. For example, if repository content is extract into an interim build location when using an embedded build framework (e.g. Buildroot), the project will not have its Git repository to refer to. When it cannot find its repository, it will look into its parent folders and may find the Git repository of another project and use its branch/commit information. This commit provides an explicit path to the project's Git repository when consider commit/branch information. This will prevent any repository discovery from occurring. See also: https://github.com/swaywm/sway/pull/8273
合并状态:已合并 合并于 2024-08-03 关闭于 2024-08-03 0 条评论