feat(release): publish portable archives and checksums #600

Closed
jem2981 wants to merge 1 commit from upstream-pr/600 into main
jem2981 commented 2026-10-05 02:06:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jem2981 on 2026-10-05T02:06:29Z.


What

Publish self-contained portable release archives for Windows and Linux while preserving the existing split relinker and PRX assets.

  • Bundle the relinker, patched PRX libraries, runtime files, license, README, and user documentation under one versioned directory.
  • Record the source commit, compiler, platform, and archive format in BUILD-MANIFEST.json.
  • Generate SHA256SUMS.txt for every published release asset.
  • Smoke-test extracted portable archives in both release matrix jobs.
  • Register cross-platform packaging tests with CTest.

Tested

Windows x64 with GCC 15.2.0:

  • Configured and built the current upstream main revision.
  • Built the complete patched libs target.
  • Ran CTest: 229/229 tests passed, including package_release.
  • Verified workflow YAML parsing and git diff --check.

The GitHub release matrix will exercise the native Linux archive and repeat the Windows archive smoke test.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes; the author reviewed and validated every changed line
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4739324327 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/600). Originally posted by [jem2981](https://github.com/jem2981) on 2026-10-05T02:06:29Z. --- ### What Publish self-contained portable release archives for Windows and Linux while preserving the existing split relinker and PRX assets. - Bundle the relinker, patched PRX libraries, runtime files, license, README, and user documentation under one versioned directory. - Record the source commit, compiler, platform, and archive format in `BUILD-MANIFEST.json`. - Generate `SHA256SUMS.txt` for every published release asset. - Smoke-test extracted portable archives in both release matrix jobs. - Register cross-platform packaging tests with CTest. ### Tested Windows x64 with GCC 15.2.0: - Configured and built the current upstream `main` revision. - Built the complete patched `libs` target. - Ran CTest: 229/229 tests passed, including `package_release`. - Verified workflow YAML parsing and `git diff --check`. The GitHub release matrix will exercise the native Linux archive and repeat the Windows archive smoke test. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes; the author reviewed and validated every changed line
oneandonlydean commented 2026-10-05 02:47:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-05T02:47:27Z.


Thanks, a single archive per platform with a manifest and checksums is a nice improvement for anyone downloading a release.

I went through the workflow and the script. The portable layout matches what USAGE.md describes (the converted executable in the archive root finds libs/ through the default $ORIGIN/libs), the old prx-* and relinker-* assets stay as they are so existing links keep working, SHA256SUMS.txt is written after the documentation is collected so it covers every uploaded file and skips itself, and the permissions are unchanged. The relinker smoke test is right too: with no arguments it prints the usage line and returns 1. tools/tests/test_package_release.py passes here.

One suggestion, since the release workflow only runs on a v* tag and can't be exercised from a PR: if you can push a test tag to your fork once, that would run both matrix jobs (including the Linux archive you couldn't build locally) before the next real release depends on it. A link to that run here would be enough.

The CI run for this PR needs workflow approval. Once it's green, it's ready to merge from my side.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5987230501 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/600#issuecomment-5987230501). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-05T02:47:27Z. --- Thanks, a single archive per platform with a manifest and checksums is a nice improvement for anyone downloading a release. I went through the workflow and the script. The portable layout matches what USAGE.md describes (the converted executable in the archive root finds `libs/` through the default `$ORIGIN/libs`), the old `prx-*` and `relinker-*` assets stay as they are so existing links keep working, `SHA256SUMS.txt` is written after the documentation is collected so it covers every uploaded file and skips itself, and the permissions are unchanged. The relinker smoke test is right too: with no arguments it prints the usage line and returns 1. `tools/tests/test_package_release.py` passes here. One suggestion, since the release workflow only runs on a `v*` tag and can't be exercised from a PR: if you can push a test tag to your fork once, that would run both matrix jobs (including the Linux archive you couldn't build locally) before the next real release depends on it. A link to that run here would be enough. The CI run for this PR needs workflow approval. Once it's green, it's ready to merge from my side.
oneandonlydean commented 2026-10-05 02:55:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-05T02:55:45Z.


@boykopovar this one is yours to decide, since it changes what each release publishes: a portable anyps5-<platform>-<tag> archive per platform with a build manifest, plus a SHA256SUMS.txt over all release files (the existing prx-* archives and relinker binaries stay). The code looks right to me and CI is approved; the release workflow changes only run on a tag, so a test tag on a fork first would be the way to check them end to end. I'm leaving the merge to you.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5987298400 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/600#issuecomment-5987298400). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-05T02:55:45Z. --- @boykopovar this one is yours to decide, since it changes what each release publishes: a portable `anyps5-<platform>-<tag>` archive per platform with a build manifest, plus a `SHA256SUMS.txt` over all release files (the existing `prx-*` archives and relinker binaries stay). The code looks right to me and CI is approved; the release workflow changes only run on a tag, so a test tag on a fork first would be the way to check them end to end. I'm leaving the merge to you.
adriadam10 commented 2026-10-07 15:48:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-07T15:48:58Z.

Review: CHANGES_REQUESTED


Thanks for this. The PR now conflicts with main in tools/package_release.py (the list of expected PRX libraries changed upstream after "refactor(libs): drop replacements of modules that titles ship themselves"). Please:

  • Rebase on current main and resolve expected_libraries() against the new library set; rerun package_release in ctest afterwards.
  • Note that the release-workflow changes (smoke tests, SHA256SUMS.txt, new anyps5-* assets) only run on a tag, so CI here doesn't exercise them. A run on a test tag in your fork, linked in the PR, would show them working end to end.

As @oneandonlydean said, what each release publishes is @boykopovar's decision; it stays with him once the rebase is done.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5444791238 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/600#pullrequestreview-5444791238). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-07T15:48:58Z. **Review:** CHANGES_REQUESTED --- Thanks for this. The PR now conflicts with `main` in `tools/package_release.py` (the list of expected PRX libraries changed upstream after "refactor(libs): drop replacements of modules that titles ship themselves"). Please: - Rebase on current `main` and resolve `expected_libraries()` against the new library set; rerun `package_release` in ctest afterwards. - Note that the release-workflow changes (smoke tests, `SHA256SUMS.txt`, new `anyps5-*` assets) only run on a tag, so CI here doesn't exercise them. A run on a test tag in your fork, linked in the PR, would show them working end to end. As @oneandonlydean said, what each release publishes is @boykopovar's decision; it stays with him once the rebase is done.
oneandonlydean commented 2026-10-09 20:07:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-09T20:07:49Z.


Closing: the conflict in tools/package_release.py and the test-tag run from 10-07 are still open. If you decide to continue, please reopen.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6088410188 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/600#issuecomment-6088410188). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-09T20:07:49Z. --- Closing: the conflict in `tools/package_release.py` and the test-tag run from 10-07 are still open. If you decide to continue, please reopen.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!600
No description provided.