Repository navigation
Each release has Hush for macOS, Windows and Linux, and make publish makes it - #285
Merged
Merged
Conversation
make publish builds origin/main's Hush.app in worktrees/publish and makes the GitHub release with it (v0.1, then 0.1.1, ...); a workflow builds Windows and Linux on that release, checks they start, and attaches them. The release's version reaches the app's About and Info.plist through HUSH_VERSION. On Windows the app opens no console window. The README says how to download and install Hush on each system; it is for anyone now.
This reverts commit fd6f350.
…bases The workflow packages first, then starts the zip's and the tarball's app and requires the key and both databases. make publish recreates a worktree deleted by hand, keeps the build from holding its lock, and builds with the locked dependencies. The README gives the Windows and Linux build needs the workflow proved, a launcher entry that works without ~/.local/bin on the PATH, and how to get the Windows log; the launcher comments name the shipped desktop file.
Owner
Author
Review (code, error handling, comments) and fixesThe security review's points (asked before the review) are in 7e59801: actions pinned to full SHAs, Fixed (41d1e4f, proven by run 5):
Declined:
For the owner (not changed):
|
This was referenced Nov 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
make publish [version=0.2](scripts/publish.sh, Every merge can publish a GitHub release with the app: make publish #215's script and its version rules, on the GPUI build): builds origin/main'sHush.appwithmake bundleinworktrees/publish(never installs it), zips it asHush-<version>-macos-arm64.zipand creates the GitHub releasev<version>on that commit, titledHush <version>, with the commit's subject and a link to the README's Download section as notes. Versions: v0.1, then 0.1.1, 0.1.2, …;version=0.2starts a line (it must be above every release); a commit already taggedv…on origin is skipped. One run at a time (lockf); local changes inworktrees/publishare refused. Signed with the owner's Apple Development identity when it's in the keychain, else ad-hoc withbundle.sh's warning..github/workflows/release.yml: on a release being published (orgh workflow run release.yml -f tag=v0.1to redo one), buildshush-desktopfor Windows x64 (windows-latest) and Linux x64 (ubuntu-24.04), checks each binary starts, and uploadsHush-<version>-windows-x64.zip(hush.exe) andHush-<version>-linux-x64.tar.gz(hush/hush,hush/dev.pitis.hush.desktop,hush/dev.pitis.hush.pngrendered fromAppIcon.icon/Assets/girl.svgat 512 px) to it.protoc(Chocolatey), Git Bash (on the runner; RingRTC's WebRTC download),OPENSSL_DIR= an empty folder withlibandinclude, andRUSTFLAGS=-C target-feature=+crt-static: RingRTC's prebuilt WebRTC links the static C runtime (libcmt/libcpmt, itsbuild.rs), as RingRTC's own Windows build does. The exe then needs no Visual C++ runtime.librsvg2-bin,desktop-file-utils,xvfb,xauth,mesa-vulkan-drivers. Notlibpulse-dev: with it cubeb-sys links its PulseAudio backend, a Rust static library carrying its ownstd, and the link fails on duplicateallocsymbols (seen in the first test run). Calls' audio on Linux uses cubeb's ALSA backend, as in local Linux builds.HUSH_DATA_DIR: it must still run after 20 s and have made its key file and both databases (presage.db,projection.db: the core opened its store). Only then it uploads.core/rust-toolchain.toml(rustup toolchain install), cargo cached withSwatinem/rust-cache, saving only on runs from main: a run for a tag can restore main's caches but never another tag's, so a release run's own cache would never be used.permissions: contents: read,contents: writeonly on the two jobs (both upload);GH_TOKENonly on the Upload steps;persist-credentials: falseon checkout; the tag reaches scripts as$TAG, never as${{ }}in a script.make bundlebuilds with--locked(as the workflow does), so a release never re-resolves dependencies.HUSH_VERSION(set bymake publishand the workflow) is the version About shows (option_env!, else Cargo's 0.1.0) andbundle.shwrites into Info.plist. Without it, every release's About would say 0.1.0.#![cfg_attr(windows, windows_subsystem = "windows")], The desktop app builds and runs on Windows #155's comment). Effect on stderr, where the core logs off Apple platforms: launched from Explorer, the Start menu or the Run key (Open at login), the log goes nowhere (Rust discards writes to a missing handle). It still reaches a launcher that hands the process its handles, as PowerShell'sStart-Process -RedirectStandardErrordoes (what the workflow's start check uses and prints; the README says so). Others (cargo run, a cmd redirect) should too, not tried. The in-app Core Log is unaffected.core/desktop/dev.pitis.hush.desktop: the launcher entry the app already expects (APP_ID, the unread count'sapplication://dev.pitis.hush.desktop); checked bydesktop-file-validatein the workflow.make publish;worktrees/publish; a Releases rule;make publishin Commands; "no CI" notes the release workflow.Why
Owner's decisions of 2026-11-29 (#277): Hush is for everyone;
make publishon the owner's Mac makes the release with the macOS app, a free GitHub Actions workflow adds Windows and Linux.Choices to know
ubuntu-24.04, notubuntu-latest:ubuntu-latestis Ubuntu 26.04 now, whose glibc would shut out Ubuntu 24.04 LTS. Built on 24.04, the binary needs glibc 2.39 or later (Ubuntu 24.04, Debian 13, Fedora 40, newer); Debian 12 and Ubuntu 22.04 can't run it. The README says so.How it was tested
pr-review-toolkit:review-pr(code, error handling, comments); findings and fixes in the PR comment.releaseworkflows from the tag's commit, so I published throwaway pre-releases (test-277-N) on this branch's commits; each ran the workflow, and each was deleted with its tag afterwards (nov…tag was made;make publishignores other tags anyway).hush.exestill running after 20 s with its key file made, uploadedHush-test-277-3-windows-x64.zip. Linux: built in 11m51s,hushstill running after 20 s under xvfb (software Vulkan), quit on SIGTERM (timeout's 124), key file made; its log shows only the expected warnings of a headless runner (no notification server, tray host or NetworkManager). UploadedHush-test-277-3-linux-x64.tar.gz.hush/hush(ELF x86-64, highest glibc symbolGLIBC_2.39),hush/dev.pitis.hush.desktop(passesdesktop-file-validatein the job),hush/dev.pitis.hush.png(512×512, the girl icon, looked at).libpulse-dev(above). Its Windows log, captured throughStart-Process -RedirectStandardError, shows the stderr route works withwindows_subsystem.Hush-test-277-5-windows-x64.zip25 MB,Hush-test-277-5-linux-x64.tar.gz34 MB). The Windows log again shows GPUI'sRefCell already borrowederrors around the first frames (six lines; also in run 2, not in run 3); the app keeps running and run 4's screenshot shows it drawn.make publish:scripts/publish.shin a throwaway repo with a local bare origin, stubmake(fakescore/target/bundle.noindex/Hush.app, logsHUSH_VERSION) and stubgh(checks the zip holdsHush.app/Contents/MacOS/hush, tags origin as GitHub does): 23 checks pass — v0.1 first (built withHUSH_VERSION=0.1,Hush-0.1-macos-arm64.zip, target = origin/main's sha); already released → skipped,ghnot called; v0.1.1; after v0.1.10 → v0.1.11;version=0.2→ v0.2, then v0.2.1;version=0.2/0.1/0.5.1/abcrefused; atest-…tag doesn't count; annotated tag → skipped;version=on a released commit says it wasn't used;version=0.5→ v0.5;worktrees/publishfollows origin/main, the main checkout stays on main; local changes refused; a held lock refused; a removed worktree recreated, also one deleted withrm -rf(this case failed before the review fix). The same harness against Every merge can publish a GitHub release with the app: make publish #215's script fails (old app path, noHUSH_VERSION).HUSH_VERSION=0.1 make bundlehere (no certificate: ad-hoc, with the warning): Info.plist'sCFBundleShortVersionStringandCFBundleVersionare 0.1, arm64;dittozip 23 MB; the unzipped app passescodesign --verify --deep --strict.--snapshotAbout screen built withHUSH_VERSION=0.1.7read "Version 0.1.0 (core 0.1.0)" before the change and "Version 0.1.7 (core 0.1.0)" after (looked at both). Cargo rebuildshush-desktopwhenHUSH_VERSIONchanges or goes (checked both ways).make format(no changes);make checkpasses (fmt, both clippy runs, 364 + 546 tests);actionlint1.7.12 with shellcheck: clean;shellcheck0.11 onscripts/publish.shandscripts/bundle.sh: clean.make publish(it makes the public v0.1 release; that is for after the merge, from main).Closes #277
Closes #122
Supersedes #215.