7 Commits

Author SHA1 Message Date
Burak Goncu
17934a8c82 Let a Mac release sign with a Developer ID kept in a file
DEVELOPER_ID_P12 names the Developer ID Application certificate exported
with its private key, its passphrase in a file beside it. The release puts
it into a keychain of its own, at the front of the search list, lets
codesign use it without asking, and deletes the keychain and restores the
search list when it ends. A Mac that has never had the certificate can
then make a release, and none keeps it afterwards.
2026-12-03 17:07:48 +03:00
Burak Goncu
fd670fa0e9 Check a release's signature with the key the app carries
The release script checked the feed and the disk image against the key
they had just been signed with, which says the signing worked and nothing
about whether any copy of the app will accept the result. A copy checks
with the public key in its own Info.plist. Had SPARKLE_KEY named some
other key, the release would have passed every check here and been
turned down by every copy, with nothing to show for it but updates that
never arrive.

The disk image's signature is now verified once more with nothing but
the public key from the app that was just built, and the release stops
if that fails. 1.3.0 was checked this way by hand before it was
published.
2026-11-24 02:44:17 +03:00
Burak Goncu
2256719bf5 Sign the disk image, and write the feed that updates are found by
A Mac release is now three files. Beside the disk image and its checksum
there is appcast.xml, the feed that installed copies of the app read from
the newest release on GitHub. The release script writes it with Sparkle's
own tool, with what the change log says about the version in it, and
signs it and the disk image with the update key, which SPARKLE_KEY names.
It stops if the app's copy of the change log is stale, if the change log
says nothing about the version, or if either signature is missing: a feed
without them is one no copy of the app would act on, and none would say
why.

The disk image itself is signed with the Developer ID and notarised, as
the app in it always was. macOS can then tell what it is before anything
in it is opened, and it is what Sparkle falls back on for a project that
has lost its update key: a disk image signed by the same developer.

scripts/publish-mac.sh makes the release on GitHub, and will not make one
without the feed or with a feed that is about another version.
2026-11-24 02:24:16 +03:00
Burak Goncu
7feb201c33 Make a Mac release with the Developer ID certificate in the keychain
An App Store Connect API key could not make the Mac release: Xcode signs
for a key with a cloud-managed certificate only, which the key has to be
given access to, and an export with a certificate in the keychain stopped
because the profile Xcode manages did not include it.

With DEVELOPER_ID_PROFILE naming a Developer ID provisioning profile that
is installed and includes the certificate, the script signs by hand with
the certificate on this Mac and has notarytool send the app to the notary
service, so the key is asked for nothing but that.
2026-11-23 23:20:22 +03:00
Burak Goncu
1d38970474 Let a release be made with an App Store Connect API key
The release scripts signed and uploaded through the Apple ID that Xcode
is signed in with, and Xcode had forgotten its account in the middle of
a release: the archive was made and could not be sent. Named in the
environment, an API key and its issuer are now handed to xcodebuild in
the Apple ID's place. Version 1.1.1 for iPhone and iPad went to
TestFlight that way.

The Mac's disk image needs a Developer ID certificate, which a key may
use only with access to cloud-managed distribution certificates; the
script says so where it says how.
2026-11-11 13:26:23 +03:00
Burak Goncu
f966c1cdaf Let a scripted launch open the editor for the first computer 2026-11-11 02:21:08 +03:00
Burak Goncu
237c01f791 Add the README, project documents, CI and release scripts
The README says what the app does, how to install and build it, and how a
session is protected in each mode. docs/ARCHITECTURE.md walks through the
code; docs/apple-screen-sharing-notes.md records what was measured about
Apple's protocol while building the keyboard.

CI runs the package and engine tests and builds both apps. The release
scripts archive, sign and notarise the Mac app into a disk image and
upload the iPhone and iPad app to App Store Connect.
2026-11-11 01:55:04 +03:00