Skip to content

tynd updater sign

Terminal window
tynd updater sign <file> # default key: tynd-updater.key, prints to stdout
tynd updater sign <file> --key path/to/updater.key --out <file>.sig

Produces 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.
Terminal window
tynd updater sign release/win32-x64/MyApp-1.2.3-setup.exe --key release/updater.key

Output:

MEUCIQD...base64...==
Terminal window
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.sig
  • 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.

- 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.key

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.