tynd updater sign
tynd updater sign <file> # default key: tynd-updater.key, prints to stdouttynd updater sign <file> --key path/to/updater.key --out <file>.sigProduces a base64 Ed25519 signature over the raw bytes of <file>. Output is the exact shape updater.downloadAndVerify verifies.
| Flag | Default | Effect |
|---|---|---|
<file> |
required | File to sign (positional) |
--key <path> |
tynd-updater.key |
Path to the .key file from tynd updater keygen |
-o, --out <path> |
— | Write signature to this file. If omitted, prints to stdout. |
Examples
Section titled “Examples”Sign to stdout
Section titled “Sign to stdout”tynd updater sign release/win32-x64/MyApp-1.2.3-setup.exe --key release/updater.keyOutput:
MEUCIQD...base64...==Sign to file
Section titled “Sign to file”tynd updater sign release/win32-x64/MyApp-1.2.3-setup.exe \ --key release/updater.key \ --out release/win32-x64/MyApp-1.2.3-setup.exe.sigFormat
Section titled “Format”- Input — arbitrary bytes (signature is over the full file, not hash-then-sign).
- Output — raw 64-byte Ed25519 signature, base64-encoded.
- Compatible with
crypto.subtle.sign("Ed25519", …)on the signing side and the Ed25519 verifier on the verifying side.
No PEM headers, no ASN.1 wrapping.
CI pattern
Section titled “CI pattern”- name: Sign release artifact env: UPDATER_KEY: ${{ secrets.UPDATER_KEY }} # base64-encoded .key run: | echo "$UPDATER_KEY" | base64 -d > /tmp/updater.key bunx @tynd/cli updater sign release/win32-x64/MyApp-1.2.3-setup.exe \ --key /tmp/updater.key \ --out release/win32-x64/MyApp-1.2.3-setup.exe.sig rm /tmp/updater.keyAfter signing
Section titled “After signing”Update your manifest JSON with the base64 signature:
{ "version": "1.2.3", "platforms": { "windows-x86_64": { "url": "https://.../MyApp-1.2.3-setup.exe", "signature": "MEUCIQD...==" } }}See the Auto-Updates guide.
Related
Section titled “Related”tynd updater keygen— generate the keypair.- updater API — runtime verification.