Skip to content

Fix build script naming for Alpha releases - #847

Closed
YBronst wants to merge 3 commits into
CloverHackyColor:masterfrom
YBronst:master
Closed

YBronst wants to merge 3 commits into
CloverHackyColor:masterfrom
YBronst:master

Conversation

@YBronst

@YBronst YBronst commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Fixed a bug where text-based Git tags

Description

Support non-numeric Git tags in build artifacts

Update the Clover build scripts to handle both numeric and descriptive Git tags correctly.

Previously, build scripts always assumed that the revision was numeric and unconditionally added the r prefix when generating artifact names. This resulted in incorrect names such as:

Clover_rClover-Build-Alpha.pkg

The revision handling is now normalized as follows:

  • Numeric tags such as 5175 are converted to r5175.
  • Non-numeric tags such as Clover-Build-Alpha are used unchanged.
  • Composite/descriptive tags such as Clover_r5200_Clover-Build-Alpha are also used unchanged.

Updated artifact naming examples:

  • 5175 → Clover_r5175.pkg
  • Clover-Build-Alpha → Clover-Build-Alpha.pkg
  • Clover_r5200_Clover-Build-Alpha → Clover_r5200_Clover-Build-Alpha.pkg

The same revision handling is applied consistently to the Clover package, CloverV2 archive, and Clover ISO build scripts.

Type of change

  • Bugfix
  • New functionality
  • Code improvements
  • Documentation update

Checklist

  • Tested my changes locally
  • Added relevant comments to the code
  • Updated the relevant documentation

Additional information

Include any extra details relevant to your PR.

Fixed a bug where text-based Git tags
## Fix build artifacts for non-numeric Git tags

Update the Clover build scripts to correctly handle both numeric and descriptive Git tags.

Previously, the build system assumed that the revision was always numeric and unconditionally added the `r` prefix. This resulted in incorrect artifact and installer version names for descriptive tags, for example:

`Clover_rClover-Build-Alpha.pkg`

The revision handling is now normalized as follows:

* Numeric tags such as `5175` are converted to `r5175`.
* Non-numeric tags such as `Clover-Build-Alpha` are used unchanged.
* Composite tags such as `Clover_r5200_Clover-Build-Alpha` are also used unchanged.

This is applied consistently to:

* Clover package names
* CloverV2 archives
* Clover ISO archives
* Installer version information

Examples:

* `5175` → `Clover_r5175.pkg`
* `Clover-Build-Alpha` → `Clover-Build-Alpha.pkg`
* `Clover_r5200_Clover-Build-Alpha` → `Clover_r5200_Clover-Build-Alpha.pkg`

This preserves the existing naming convention for numeric revisions while allowing descriptive Git tags to be used without generating duplicated or invalid `r` prefixes.
@YBronst YBronst closed this Oct 6, 2026
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.

1 participant