Repository navigation
packaging: add Arch Linux binary package and AUR publishing - #41
Conversation
75ba26b to
3e3041f
Compare
|
hey! sorry to jump in, but I have a private repo with the same goal of updating agterm-linux on my arch, so I decided to leave a couple of comments. |
8109aa4 to
8ace8d1
Compare
8ace8d1 to
d0d9cac
Compare
d0d9cac to
dba9899
Compare
eecd4a7 to
d3fb36c
Compare
melonamin
left a comment
There was a problem hiding this comment.
Changes are needed before this can publish current Linux releases:
-
The normal release path will not trigger this publisher.
release-linux.ymlpublishes throughsoftprops/action-gh-releaseusing the defaultgithub.token, and GitHub suppresses downstreamrelease: publishedworkflow runs for events generated byGITHUB_TOKEN. Invoke publication explicitly after the release step, or use an explicit dispatch/reusable-workflow design. -
PKGBUILDstill declares the pre-WebKit dependency set. The current app links WebKitGTK 6.0, and bundled Codex hooks require Python. Refresh the dependencies againstpackaging/linux/nfpm.yml, including the image-loader requirements, then validate the current release in a clean Arch environment. -
Every
linux-v*tag is accepted, but the stripped version is assigned directly to Archpkgver. Hyphenated prereleases such as0.40.0-rc.1are invalid inpkgver;makepkg --printsrcinfodoes not validate that rule. Exclude prereleases from the stable channel or separate the original release tag from the Arch version.+linux.Nrevisions are valid and can remain supported.
Also add the job timeout required by the repository's CI guidance and focused validation for package metadata/publication. The current green application jobs do not exercise this workflow.
The earlier zmx symlink, icon-layout, and root makepkg findings are fixed; all three review threads are resolved.
Replace the GITHUB_TOKEN-suppressed release event trigger with a reusable AUR publishing workflow called after successful Linux release publication. Pass the validated tag and AUR secret explicitly, and update the review plan with the implemented first item.
Add WebKitGTK 6.0, Python, librsvg, and WebP pixbuf loader dependencies to the AUR package and regenerate .SRCINFO. Leave the backlog plan uncommitted as requested.
6106ad1 to
701aa70
Compare
Update the AUR seed package to linux-v0.40.0, skip prerelease publishing, preserve +linux.N versions, and validate package builds and smoke behavior in a disposable Arch container. Match the container builder UID/GID to the runner so temporary files remain removable.
|
Finished the remaining work on top of 2f941e1, preserving the author's new version helper and consolidating validation into one Arch CI gate. Current head is f5cd4a0.
Ran the exact standalone CI script in clean Arch: source verification, makepkg build/install, .SRCINFO comparison, namcap (zero errors), desktop validation, CLI, and the installed GTK/WebKit v0.40 scenario all passed. The smoke explicitly uses /usr/lib/agterm-linux/share/agterm, so Markdown and other resources come from the installed package. All 10 metadata/tag/publication tests and strict SwiftLint, Actionlint, ShellCheck, syntax, core-boundary and CLI-drift checks passed. Real Git publication was exercised against temporary bare repositories. Metadata generation was also checked with the actual published linux-v0.39.1+linux.1 manifest and tagged license. The new Arch run exposed the exit-status fixture racing a host core collector. The stand-in now preserves its PID and SIGABRT result without generating a core; all 17 assertions pass on Arch and Ubuntu with the same timeout. This does not change app crash diagnostics. Waiting for CI on the final head before approval and merge. Live AUR publication remains unverified: the existing package requires an authorized key, and this repository currently has no AUR SSH secret configured. |
|
@melonamin thank you for feedback, I've added fixes (partially). I see, that you've added fixes too. Do you want to finish PR by yourself. right? |
|
Yes, I'll finish it from here. Your latest fixes are included. The Arch package build, installation, GTK/WebKit smoke checks, and lint pass; I'm waiting for the remaining CI before merging. No further changes are needed from your side right now. |
melonamin
left a comment
There was a problem hiding this comment.
The requested changes are addressed. All six checks pass on f5cd4a0, including clean Arch package build/install and installed GTK/WebKit resource validation, core tests, strict lint, and the full GTK suite. The publisher handles stable/revision tags, validates metadata, prevents downgrades, and skips cleanly without credentials.
Live AUR publication remains key-gated; it was not tested against the external AUR repository. The publication logic passed real temporary Git-repository tests. Ready to merge.
|
@Gnu-Gorets thanks for the contribution, the reason I didn't merge it before is pretty simple - I don't have an account on AUR and they closed new registrations awhile back... |
|
@melonamin don't worry) Thank you, that you've created fork for Gnu/Linux and maintain it) About AUR, yeah, I know, they had Security issue in past, hackers replaced some of AUR packages, Arch didn't solve problem completely and decided to restrict registration 😄 |
Adds a validated Arch binary package and optional AUR updates after successful Linux release publication. The package installs the official x86_64 payload under /usr/lib/agterm-linux, exposes agterm-linux and agtermctl, and installs desktop integration and the MIT license. The checked-in template targets the current published v0.40.0 release.
Packaging
Publication
The Linux release workflow calls the reusable publisher after GitHub publication. Stable versions and +linux.N revisions are eligible; prereleases are excluded. The publisher validates exact manifest entries and checksums, uses the tagged license, serializes updates, avoids duplicate commits, and refuses to downgrade AUR when an older tag is rebuilt.
Package tooling comes from the maintained workflow revision, so rebuilding a tag that predates this PR does not require AUR scripts in that old tag. The SSH host key remains pinned and was checked against the current AUR endpoint.
A missing AUR_SSH_PRIVATE_KEY produces a notice and skips AUR publication. The existing agterm-linux-bin AUR package has another maintainer; enabling automation requires an SSH key authorized for that package, stored as this repository secret. No live AUR push was performed during validation.
Validation
All six checks passed on f5cd4a0 in CI run 42431178774, including clean Arch validation, core tests, strict lint, 631 Linux-package tests, and all 70 GTK scenarios. Authenticated AUR publication requires the separately configured key.