Skip to content

packaging: auto-detect per-coin binary in bundled launchers - #684

Merged
frstrtr merged 2 commits into
masterfrom
ci-steward/launcher-binary-autodetect
Jul 12, 2026
Merged

packaging: auto-detect per-coin binary in bundled launchers#684
frstrtr merged 2 commits into
masterfrom
ci-steward/launcher-binary-autodetect

Conversation

@frstrtr

@frstrtr frstrtr commented Jul 12, 2026

Copy link
Copy Markdown
Owner

Problem

release.yml packages the node per-coin as c2pool-<coin> (c2pool-ltc, c2pool-btc, ...), but the bundled launchers hard-coded a binary that is not in the tarball:

  • start.sh launched ./c2pool -> No such file
  • start.bat launched %DIR%c2pool.exe -> same on Windows
  • start.sh banner was stale (v0.1.1-alpha, release is v0.2.0)

Since README says "extract and run ./start.sh", a fresh v0.2.0 user hit this immediately.

Fix — auto-detect (issue option 3)

The same start.sh/start.bat is copied into every coin package by the shared matrix step, so hard-coding any single coin name would only fix one of five packages. This resolves the binary by c2pool-* glob (each package contains exactly one), with a plain-c2pool fallback for source builds:

  • start.sh: find "$DIR" -maxdepth 1 -type f -name "c2pool-*" -perm -u+x
  • start.bat: for %%f in ("%DIR%c2pool-*.exe") do set BIN=%%f
  • Banner now derived from the binary basename, so it cannot go stale again.

No release.yml change needed — the per-coin rename stays. Docs reconciliation is integrator PR #682 (docs-only).

Not self-merging — awaiting operator push-approval per standing rule.

frstrtr added 2 commits July 12, 2026 14:47
release.yml packages the node as c2pool-<coin> (c2pool-ltc, ...), but
start.sh/start.bat launched a hard-coded ./c2pool / c2pool.exe that does
not exist in the tarball, breaking the documented first-run for every
coin package. Resolve the binary by c2pool-* glob (single binary per
package) with a plain-c2pool fallback for source builds, and derive the
banner from the binary name so it cannot go stale (was v0.1.1-alpha).
@frstrtr
frstrtr merged commit 1c54e63 into master Jul 12, 2026
27 checks passed
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