feat: identify build provenance in window title #159

Manually merged
github merged 2 commits from gh-pr/159/head into gh-pr/159/base 2026-11-26 09:12:41 +00:00
Owner

@⁠Almo7aya on GitHub · 2026-08-03 21:39 UTC · original
Almo7aya:feat/window-title-build-provenance → main · +119 −24 · 7 files · 2 commits · merged 2026-08-03 23:04 UTC

Summary

Adds KytyPS5 build provenance to the beginning of the game window title so screenshots and compatibility reports identify
the exact emulator build being used.

Closes #157

Changes

  • Labels local builds as Source.
  • Labels canonical release builds as Official.
  • Displays the exact published tag for official builds.
  • Labels GitHub Actions builds running in forks as Fork.
  • Includes the fork repository name in fork builds.
  • Displays the short Git commit hash for source and fork builds.
  • Adds -dirty when tracked source files contain uncommitted changes.
  • Displays the Debug or Release build configuration.
  • Places provenance first so it remains visible when long titles are truncated.

Examples

Official release:

[Official build KytyPS5-2026-08-04-abcdef0 | Release] Grand Theft Auto: Vice City, PPSA03530, 01.003.000 ...

Local source build:

[Source build d09c81d | Release] Grand Theft Auto: Vice City, PPSA03530, 01.003.000 ...

Modified local source tree:

[Source build d09c81d-dirty | Debug] Grand Theft Auto: Vice City, PPSA03530, 01.003.000 ...

GitHub Actions build running in a fork:

[Fork build almo7aya/KytyPS5 d09c81d | Release] Grand Theft Auto: Vice City, PPSA03530, 01.003.000 ...

Implementation details

  • CMake defaults to Source, so existing build commands do not need additional arguments.
  • Official builds require a release tag.
  • Fork builds require a repository identifier.
  • The GitHub workflow generates the release tag before platform builds and reuses the same tag when publishing the release.
  • Fork detection uses the repository where the workflow is running.
  • Git revision information is generated automatically during the build.

Compatibility

Build scripts that do not pass provenance values continue to work and are classified as local Source builds.

The additional values are only conditionally required:

  • Official requires KYTY_RELEASE_TAG.
  • Fork requires KYTY_BUILD_REPOSITORY.
  • Source requires neither.

Testing

  • Built the complete Windows Release emulator using the Source path.
  • Compiled the Fork-specific window-title path with repository metadata.
  • Verified generated CMake provenance definitions.
  • Ran clang-format verification.
  • Ran Git whitespace checks.
  • Manually verify the title in a running game.
  • Verify an artifact produced by GitHub Actions.

AI assistance disclosure

AI assistance was used to help implement the CMake, GitHub Actions, Git metadata, and window-title changes.

**@⁠Almo7aya** on GitHub · 2026-08-03 21:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/159) `Almo7aya:feat/window-title-build-provenance` → `main` · +119 −24 · 7 files · 2 commits · merged 2026-08-03 23:04 UTC ## Summary Adds KytyPS5 build provenance to the beginning of the game window title so screenshots and compatibility reports identify the exact emulator build being used. Closes #157 ## Changes - Labels local builds as `Source`. - Labels canonical release builds as `Official`. - Displays the exact published tag for official builds. - Labels GitHub Actions builds running in forks as `Fork`. - Includes the fork repository name in fork builds. - Displays the short Git commit hash for source and fork builds. - Adds `-dirty` when tracked source files contain uncommitted changes. - Displays the Debug or Release build configuration. - Places provenance first so it remains visible when long titles are truncated. ## Examples Official release: ```text [Official build KytyPS5-2026-08-04-abcdef0 | Release] Grand Theft Auto: Vice City, PPSA03530, 01.003.000 ... Local source build: [Source build d09c81d | Release] Grand Theft Auto: Vice City, PPSA03530, 01.003.000 ... Modified local source tree: [Source build d09c81d-dirty | Debug] Grand Theft Auto: Vice City, PPSA03530, 01.003.000 ... GitHub Actions build running in a fork: [Fork build almo7aya/KytyPS5 d09c81d | Release] Grand Theft Auto: Vice City, PPSA03530, 01.003.000 ... ``` ## Implementation details - CMake defaults to Source, so existing build commands do not need additional arguments. - Official builds require a release tag. - Fork builds require a repository identifier. - The GitHub workflow generates the release tag before platform builds and reuses the same tag when publishing the release. - Fork detection uses the repository where the workflow is running. - Git revision information is generated automatically during the build. ## Compatibility Build scripts that do not pass provenance values continue to work and are classified as local Source builds. The additional values are only conditionally required: - Official requires KYTY_RELEASE_TAG. - Fork requires KYTY_BUILD_REPOSITORY. - Source requires neither. ## Testing - [x] Built the complete Windows Release emulator using the Source path. - [x] Compiled the Fork-specific window-title path with repository metadata. - [x] Verified generated CMake provenance definitions. - [x] Ran clang-format verification. - [x] Ran Git whitespace checks. - [x] Manually verify the title in a running game. - [x] Verify an artifact produced by GitHub Actions. ## AI assistance disclosure AI assistance was used to help implement the CMake, GitHub Actions, Git metadata, and window-title changes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:12:39 +00:00
github manually merged commit a993ae60f4 into gh-pr/159/base 2026-11-26 09:12:41 +00:00
Author
Owner

@⁠Nmzik on GitHub · 2026-08-03 23:04 UTC · original

@⁠Almo7aya Thanks

**@⁠Nmzik** on GitHub · 2026-08-03 23:04 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/159#issuecomment-5172663437) @⁠Almo7aya Thanks
This discussion has been locked. Commenting is limited to contributors.
No description provided.