igneum/packaging/README-ship.md
igneum-labs c2f6b68c02 Igneum Wallet 0.1.1: the coin on the home screen, over-the-air updates v2 (unattended install)
The 0.1.0 DMG was built before server.rs served /coin.png, so the coin was blank; 0.1.1 ships the
route (brand/igneum-coin-1024.png, checked byte for byte through the engine).

Updates: the apply side of the miner's ota.rs moved into igneum-common/src/ota.rs with the app's
names from AppId (engine_exe added): stage next to the running bundle, digest, detached helper
that swaps and relaunches, pending/result files, rollback when the new app does not start twice.
fetch.rs downloads with resume and reports progress. The wallet's updater.rs runs check (25 s,
then hourly), download, stage, apply in threads; the safe moment is no send in flight (/api/send
running, a quote in the last 180 s, a sent transaction not yet in a block, a create flow half
way). Setting "Install updates by itself when nothing is being sent" (default on), banner with
Install now and Later, settings line with the states. Unit tests: manifest, versions, plan, safe
moment, helper templates, pending/result files.

build-wallet-dmg.sh takes BUILD= and refuses to wipe a work folder an app runs from. README with
the states and what is untested (Windows path, LaunchServices relaunch with the window host,
rollback). Verified end to end with a scratch 0.1.1 bundle against a 0.1.2 test manifest on
127.0.0.1: check, download, stage, swap, relaunch, "updated to Igneum Wallet 0.1.2 from 0.1.1".

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-05 08:25:22 +00:00

7.8 KiB

Shipping an Igneum Miner version (packaging/README-ship.md)

One command cuts a version for both platforms. 4 October 2026: 0.3.1, 0.3.2 and 0.3.3 each took eight hand steps and an hour; tools/ship-app.mjs is those steps in order, each one checked and resumable.

node tools/ship-app.mjs 0.3.4 --node vendor/igneum-node-v4 --notes "one line for the changelog"

Add --dry-run first: it reads everything, prints the plan and writes nothing.

What it does

Step What happens Skips itself when
preflight this tree clean and on master, the fork worktree clean (--node-commit <sha> pins it), tools, binaries, secrets present, gh account, what is live never (reads only)
bump the six version files, written by one function and read back the files already say the version
inputs packaging/windows/push-inputs.sh with the fork's Windows exes (IGNEUM_WIN_RELEASE, IGNEUM_NODE_SRC) the live payload-inputs.json carries these exact files from this fork commit
commit Igneum Miner <v>: <notes>, push master (the push starts the Windows build) committed and on origin/master
ci the windows.yml run for that commit (dispatched when the push started none), polled every 30 s a green run for the commit exists
fetch packaging/windows/fetch-ci-artifacts.sh <run>: installer and payload zip into the downloads folder the installer from that run is there
dmg packaging/mac/build-dmg.sh under tools/lock/with-lock.sh build the DMG is newer than the bump (--rebuild forces)
copy the DMG into the downloads folder same sha256 already there
manifest packaging/ota/publish-manifest.sh --no-deploy: signed, signature verified locally never (cheap)
deploy the downloads folder, one Vercel deploy for the files and the manifest together never
verify HEAD and GET of the DMG, the installer and the zip (size and sha256 against the local copies); the live manifest through igneum-ota-sign verify never
console one build item on the console (version, sizes, hashes, run, commit), then sync-dl never (upsert on ship:<v>)

The six version files: app/igneum-app/Cargo.toml, app/igneum-app/Cargo.lock, app/windows/version.h, app/igneum-app/resources/igneum-app.rc, packaging/windows/Igneum-Miner.iss, packaging/mac/app/Info.plist. node tools/ship-app.mjs --check says whether they agree; --self-test runs the bump on a scratch copy.

Flags

Flag Meaning
--node <dir> the igneum-node worktree the node and miner were built from (required); binaries from its target-integration/, else target/
--notes "..." the manifest's changelog line and the commit message
--dry-run reads only, prints the plan (exit 1 when preflight would stop the real run)
--from <step> resume at that step (preflight runs again first); the failure message prints this command
--skip-windows, --skip-mac one platform only (the other entry is carried over when the live manifest is the same version)
--node-commit <sha> the fork must be on this commit
--win-release <dir>, --mac-release <dir> other binary folders
--min-supported, --activation-height, --deadline-note, --channel passed to publish-manifest.sh
--rebuild build the DMG again even when a fresh one exists
--branch <name> accept another branch than master (a dry run from a worktree; the Windows build still runs on pushes to master)

When a step fails

The tool stops, prints why and the --from command to retry. Nothing is skipped silently. State that is not a secret (commit, run id, bump time, the hashes) is in ~/.cache/igneum/ship/<version>.json.

Secrets come from ~/.config/igneum (dl-token, dlsite-dir, ota-signing-key, relay token and key, the Vercel login) and are never printed; every output line is scrubbed. gh auth switch --user igneum-labs runs before every gh call and before the push.

What a cut needs before it starts

  • The node fork built for both targets in --node: target-integration/release/{igneumd,igneum-miner} and target-integration/x86_64-pc-windows-gnu/release/{igneumd,igneum-miner}.exe (proto-cuda/windows-node/cross-build.sh).
  • The prebuilt workers (proto-cuda/nvrtc/igneum-worker-cuda.exe, proto-opencl/igneum-worker-opencl.exe) and the prover (proving/igneum-prove/target/release/igneum-prove-{host,export}); missing ones are noted, not fatal.
  • The Mac on mains, nothing else building (the DMG step waits for the build lock).

The site project on Vercel (4 October 2026, checked by hand)

Two Vercel projects are called igneum, in two teams, and the link file under site/.vercel points at the wrong one:

Team Login (global config) Project Holds Deploys
igneum igneum-labs (~/.config/igneum/vercel) igneum (prj_HcNO2NLY4jkhikmLMugpJ8nLcWNW, root directory site, build node build.mjs) igneum.network, igneum.com; env DATABASE_URL, LOG_INTAKE_KEY GitHub integration: every push to master is a production deploy, every branch push a preview (igneum-git-<branch>-igneum.vercel.app)
[other-business] [user]-4826 (the default ~/.vercel) igneum (prj_y5lQg3C87fXAgoj3vug6iwWU3KwV, same settings) the 13 redirect domains (igneum.app, .art, .co.uk, .email, .info, .io, .net, .online, .org, .pro, .shop, .store, .vip, .xyz) nothing live

So vercel env add from site/ fails with "Could not retrieve Project Settings" under the igneum login (the link file names the [other-business] project, which that login cannot read), and would silently add the value to the wrong project under the default login. The working commands, from site/ in the shared checkout (the link step rewrites site/.vercel/project.json, which is ignored by git):

cd site
npx --yes vercel@latest --global-config ~/.config/igneum/vercel link --scope igneum --project igneum --yes
npx --yes vercel@latest --global-config ~/.config/igneum/vercel env ls --scope igneum                    # names only
npx --yes vercel@latest --global-config ~/.config/igneum/vercel env add LOG_INTAKE_KEY_NEXT production --scope igneum

A production deploy by hand is npx --yes vercel@latest --global-config ~/.config/igneum/vercel deploy --prod --yes --scope igneum from the repository root (the project's root directory is site), but the normal path is a push to master. The relay (igneum-relay) and the downloads folder (igneum-dl) are the other two projects in the igneum team; both deploy by CLI from their own folders (relay/README.md, packaging/ota/README.md). CLAUDE.md still says the site sits in the [other-business] team and deploys with --scope [other-business] from site/: that was true on 3 October and is not now.

Igneum Wallet (5 October 2026)

The wallet has no ship script yet; three commands cut a Mac version, each under the build lock where it builds:

tools/lock/with-lock.sh build packaging/mac/build-wallet-dmg.sh          # version from app/igneum-wallet/Cargo.toml
packaging/ota/publish-manifest.sh --product wallet --version <v> --mac packaging/mac/dist/Igneum-Wallet-<v>.dmg --notes "..." --deploy
cp packaging/mac/dist/Igneum-Wallet-<v>.dmg ~/Desktop/                  # the hand-install copy

The manifest is igneum-wallet-latest.json next to the miner's, same key. Installed wallets (0.1.1 and later) swap themselves in: states, the safe moment and what is still untested are in app/igneum-wallet/README.md. A 0.1.0 wallet only downloads the DMG and offers "Open the download". build-wallet-dmg.sh refuses to wipe a work folder an app is running from; build with BUILD=<other folder> then. Windows: the wallet installer is built by the runner from packaging/windows/Igneum-Wallet.iss and its over-the-air path is untested.