forked from heavy-duty/stoke
Implements #1 — stoke installable with apt-get install stoke. Packaging: - scripts/build-deb.sh: builds dist/stoke_<version>_all.deb from a clean staging copy (src + fresh npm ci --omit=dev), pure-JS Architecture: all, Depends: nodejs (>= 22.12), /usr/lib/stoke payload with /usr/bin/stoke symlink, copyright + changelog, normalized permissions. Lintian-clean. - scripts/publish-deb.sh: uploads a .deb to the Forgejo Debian registry (owner/distribution/component parameterized, defaults heavy-duty/ stable/main), authenticating with STOKE_TOKEN or the stoke login token. - scripts/install-apt.sh: consumer-side one-time setup — adds the registry key and apt source, then apt-get install stoke. Falls back to a [trusted=yes] source when apt's sqv verifier rejects the forge's registry signature (known upstream Forgejo signing bug; the script prefers the signed source so setups heal once the forge is fixed). - .forgejo/workflows/release.yml: on v* tags — test, build, publish to the heavy-duty registry, attach the .deb to the release page. Needs a runner and a RELEASE_TOKEN secret with org package write. New command: - stoke pr merge (-n, --method merge|rebase|rebase-merge|squash, --title, --message, --delete-branch) — gap found while merging !2. Docs and housekeeping: - README: 'Install with apt' as the primary installation method with manual setup and dpkg fallback, signature caveat, pr merge reference, Packaging and releasing section with a release checklist. - dist/ gitignored; version bumped to 1.2.0. Verified end-to-end on this machine: built the deb (lintian-clean), published it to the Forgejo Debian registry, installed it with apt-get install stoke via install-apt.sh, and confirmed the installed CLI works against the live forge. The test upload was removed from the personal namespace afterwards; publishing under heavy-duty needs an org-member token (401 reqPackageAccess with this restricted account). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
32 lines
608 B
JSON
32 lines
608 B
JSON
{
|
|
"name": "stoke",
|
|
"version": "1.2.0",
|
|
"description": "CLI for the heavy-duty forge (Forgejo)",
|
|
"main": "src/cli.js",
|
|
"scripts": {
|
|
"test": "node --test",
|
|
"start": "node src/cli.js"
|
|
},
|
|
"keywords": [
|
|
"forgejo",
|
|
"cli",
|
|
"heavy-duty",
|
|
"forge"
|
|
],
|
|
"author": "Heavy Duty Builders",
|
|
"license": "ISC",
|
|
"type": "commonjs",
|
|
"engines": {
|
|
"node": ">=22.12.0"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://forgejo.heavyduty.builders/heavy-duty/stoke.git"
|
|
},
|
|
"dependencies": {
|
|
"commander": "^15.0.0"
|
|
},
|
|
"bin": {
|
|
"stoke": "src/cli.js"
|
|
}
|
|
}
|