Skip to content

Sign Linux releases with ubuntu-22.04's cryptography - #36

Merged
DevanMetz merged 1 commit into
mainfrom
fix/sign-release-old-cryptography
Oct 28, 2026
Merged

DevanMetz merged 1 commit into
mainfrom
fix/sign-release-old-cryptography

Conversation

@DevanMetz

Copy link
Copy Markdown
Owner

The v0.13.0 Linux release job failed at Sign the archive for the in-app updater: '_Ed25519PublicKey' object has no attribute 'public_bytes_raw'. ubuntu-22.04 ships python3-cryptography 3.4.8, pip install cryptography leaves it in place, and public_bytes_raw() only exists in 40+. The signature itself was already made; only printing the public key failed.

sign_release.py now prints the key with public_bytes(Encoding.Raw, PublicFormat.Raw), which works on both. The signed message and the .sig format are unchanged.

Checked locally with a throwaway key on cryptography 3.4.8 and 43.0.0.

@DevanMetz
DevanMetz merged commit d5879ce into main Oct 28, 2026
3 checks passed
@DevanMetz
DevanMetz deleted the fix/sign-release-old-cryptography branch October 28, 2026 03:16
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