Releasing Drusite
Everything is built on GitHub, by merging a release pull request: one that changes the version. Nobody builds a release on their own machine.
git switch -c release-1.0.0
cargo xtask bump 1.0.0 # one version everywhere: Cargo.toml, tauri.conf.json, the Helm chart, the README's downloads
git commit -sS -am "Release 1.0.0" && git push -u origin release-1.0.0 # then open the PR
When it’s merged, release.yml sees a version with no tag yet and releases it:
- The apps: it builds every app, in the table below.
- The server image: published as
ghcr.io/pranavajk1/drusite-server:1.0.0, with1.0,1andlatestmoved to it, and signed. - The Helm chart: published to
oci://ghcr.io/pranavajk1/charts/drusiteat1.0.0, signed. - The GitHub release: it makes the release, and with it the tag
v1.0.0on the merged commit.
Other details:
- Every release is a full release, the one Check for Updates offers everyone, whatever its version
looks like:
1.0.0-beta.1included. To make a pre-release instead, offered only to people who turned pre-releases on, add thepre-releaselabel to the release pull request before merging. Its image then gets only its own tag, not1.0,1orlatest. - Any other push to main runs one small job that finds the version already tagged, and builds nothing. No build runs on pull requests.
- If a build fails, re-run the workflow, or merge the fix: that push releases the same version again. The tag is made last, so nothing is half-released.
What a release has
| Platform | File | Updates |
|---|---|---|
| macOS (Apple silicon and Intel) | Drusite-<v>-macos-universal.dmg | in the app (.app.tar.gz and .sig) |
| Windows | Drusite-<v>-windows-x64-setup.exe | in the app (the same file and its .sig) |
| Linux, any | Drusite-<v>-linux-x86_64.AppImage | in the app |
| Debian, Ubuntu | drusite_<v>_amd64.deb | in the app, which asks for the admin password (pkexec) |
| Fedora, openSUSE | drusite-<v>.x86_64.rpm | in the app, the same way |
| Arch | drusite-<v>-x86_64.pkg.tar.zst, installed with sudo pacman -U | the app links to the new package |
| Android | drusite-<v>-arm64.apk | the app links to the new APK |
| Google Play | drusite-<v>.aab | uploaded to Play by hand, if you publish there |
| iOS and iPadOS | not attached: it goes to App Store Connect | TestFlight, then the App Store |
| The agent device | drusite-agent-<v>-<target>.tar.gz (Linux x86_64 and arm64, macOS Apple silicon) and .zip (Windows), and the image ghcr.io/pranavajk1/drusite-agent:<v>, signed like the server’s | by hand, or a new image |
The release also has latest.json, which the desktop updater reads, and SHA256SUMS.
Its notes are .github/release-notes.md, followed by the pull requests GitHub lists since the
last release. Change the top of that file in each release pull request to say what the release
brings, and anything people must do to upgrade.
Upgrading across 1.0. The server goes first, then the apps: encrypted workspaces need a 1.0
server and 1.0 apps. Standard workspaces keep working with older apps, on sync protocol 1, until
1.1. From 1.0, sync protocol 2 and the sealed formats (docs/security/e2ee.md) are stable: a
format changes only through its format and suite bytes, and every 1.x app reads every format any
1.x app wrote.
The iOS build runs beside the others. The release doesn’t wait for it, and if its keys aren’t in Doppler it builds nothing and says so in the run’s summary.
The secrets
They all live in Doppler, in the config the one repository secret (DOPPLER_TOKEN) reads. You
make each one on your own machine. An agent never makes, sees or holds them.
| Secret | What it is | Needed for |
|---|---|---|
TAURI_SIGNING_PRIVATE_KEY, TAURI_SIGNING_PRIVATE_KEY_PASSWORD | the updater key (npx tauri signer generate). Its public half goes in crates/drusite-app/updater-key.pub | every release |
ANDROID_KEYSTORE (base64), ANDROID_KEYSTORE_PASSWORD, ANDROID_KEY_ALIAS, ANDROID_KEY_PASSWORD | the Android signing key, already there | every release |
APPLE_CERTIFICATE (base64 .p12), APPLE_CERTIFICATE_PASSWORD, APPLE_SIGNING_IDENTITY | the Developer ID Application certificate | the Mac app, on a stable release |
APPLE_API_KEY (base64 .p8), APPLE_API_KEY_ID, APPLE_API_ISSUER | the App Store Connect API key | Mac notarization and iOS uploads |
IOS_CERTIFICATE (base64 .p12), IOS_CERTIFICATE_PASSWORD | the Apple Distribution certificate | iOS |
IOS_MOBILE_PROVISION (base64) | the App Store provisioning profile for app.drusite | iOS |
APPLE_DEVELOPMENT_TEAM | your team ID | iOS |
A pre-release without the Apple secrets is signed ad hoc on macOS. A stable release without them fails.
To turn a file into base64 for Doppler: base64 -i file | pbcopy.
Apple: what to make with the developer account
Do these at developer.apple.com and appstoreconnect.apple.com, signed in as the account holder.
1. Your team ID. It’s under Account → Membership details: ten letters and digits. It goes in
APPLE_DEVELOPMENT_TEAM, and it’s the part in brackets of the signing identity.
2. The Developer ID Application certificate, which signs the Mac app for use outside the App Store.
- In Xcode, go to Settings → Accounts, pick the team, then Manage Certificates. Choose + → Developer ID Application. Only the account holder can make one. It lasts five years.
- In Keychain Access, under My Certificates, right-click “Developer ID Application: …” and choose
Export as
.p12, with a new password. - In Doppler:
APPLE_CERTIFICATE(the.p12, base64) andAPPLE_CERTIFICATE_PASSWORD. APPLE_SIGNING_IDENTITYis the certificate’s full name assecurity find-identity -v -p codesigningprints it:Developer ID Application: Your Name (TEAMID).
3. An App Store Connect API key. One key both notarizes the Mac app and uploads the iOS app.
- In App Store Connect, go to Users and Access → Integrations → App Store Connect API → Team Keys, and choose +. Give it the role App Manager: notarizing needs Developer, and uploading builds needs App Manager.
- Download the
.p8. Apple lets you download it only once. - In Doppler:
APPLE_API_KEY(the.p8, base64),APPLE_API_KEY_ID(the Key ID beside it) andAPPLE_API_ISSUER(the Issuer ID above the list).
That covers the Mac. The rest is for iOS.
4. The App ID. In Certificates, IDs & Profiles → Identifiers, choose + → App IDs → App, with
the explicit Bundle ID app.drusite. It needs no extra capabilities: recording in the
background is set in the app’s Info.plist.
5. The Apple Distribution certificate. Make it the same way as step 2, but choose Apple
Distribution. It lasts one year. Export it as a .p12, then put it in IOS_CERTIFICATE and
IOS_CERTIFICATE_PASSWORD.
6. The provisioning profile. In Profiles, choose + → Distribution → App Store Connect.
Pick app.drusite and the Apple Distribution certificate, and name it “Drusite App Store”.
Download the .mobileprovision and put it in IOS_MOBILE_PROVISION (base64). It also lasts a
year. When you renew it or the certificate, replace both in Doppler.
7. The app in App Store Connect. In Apps, choose + → New App. The platform is iOS, the name is
Drusite (or whatever’s free; names are unique across the store), the bundle ID is
app.drusite and the SKU is drusite. Each release’s build then shows up under TestFlight
once Apple has processed it, usually in 10–30 minutes. App Store Connect asks two things about
each build:
- Export compliance. Drusite uses encryption: HTTPS, SQLCipher for the database, and, from
1.0, end-to-end encryption built from standard algorithms (XChaCha20-Poly1305, Ed25519, HPKE
with X25519 and ML-KEM-768; see
docs/security/e2ee.md), not only the operating system’s. So the answer to “does it use encryption” is yes, and to “proprietary or non-standard algorithms” no. Before the first App Store or Play upload of 1.0, check whether the US mass-market self-classification report (EAR §740.17(b)(1)) applies to an open-source app published this way, and keep the answer in App Store Connect’s export compliance documentation. - Store listing. Before you send a build for review: screenshots, a privacy policy URL, and the privacy answers.
A licence point to settle before the App Store, not TestFlight. Apple’s App Store terms add restrictions that the AGPL forbids for code you don’t own; this is the VLC case. Drusite’s own code is yours to license as you like. Code contributed under the AGPL is not. Decide this, for example with a contributor licence agreement or a licence exception for app stores, before contributions land that you’d need to ship there.
Google Play
The .aab is signed with the same key as the APK. Play takes it as the upload key. When you
create the app in the Play Console:
- Recommended: under Play App Signing, choose to use your own key. Upload the existing Android key with the Console’s PEPK tool. Then the Play build and the GitHub APK carry the same signature, and someone can move from one to the other without uninstalling.
- If Google makes a new signing key instead, the two can’t replace each other on a phone.
- Play needs each upload’s versionCode to be higher than the last. CI sets it to 1000 plus the run number, so every release is higher than the one before.