Repository navigation
Conversation
isbell had a ready-made build, an installer and a gateway service only for Macs with Apple silicon. Now Linux, x86_64 or arm64, has them too: - The release builds isbell for x86_64 and aarch64 Linux, static with musl, for any distribution. A pull request that changes the workflow builds all three targets, without publishing. - install.sh picks the build for the system, checks it with sha256sum where shasum is missing, restarts a systemd gateway service after an upgrade, and names the startup file of the user's shell when ~/.local/bin is not on PATH. The skill's update.sh checks the same way. - `gateway install`, `status` and `uninstall` use a systemd user unit on Linux. KillMode=process keeps the herdr server and the install script running when it restarts, as AbandonProcessGroup does on a Mac. Without lingering, `gateway install` says how to keep the service running after logout. Its JSON names the service file `file` rather than `plist`. - Logs go to ~/.local/state/isbell on Linux, upgrade.log included. - The README, setup.md, install.md and the landing page say Mac or Linux, and the setup prompt says this machine.
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
Linux, x86_64 or arm64, gets what a Mac with Apple silicon has:
gateway installas a login service;How
x86_64-unknown-linux-muslandaarch64-unknown-linux-muslbesideaarch64-apple-darwin.publishjob runs on tags only.install.sh:uname -sm;sha256sumwhen present, elseshasum;~/.zshrc,~/.bashrcor~/.profileby$SHELLfor the PATH hint.update.sh(isbell-tools): checks checksums the same way.service/(wasservice.rs):launchd.rsis the old code;systemd.rswrites~/.config/systemd/user/isbell-gateway.service, then runsdaemon-reload,enableandrestart;Restart=on-failurematches launchd'sSuccessfulExit=false;KillMode=processmatchesAbandonProcessGroup: the herdr server and the upgrade's install script outlive a restart;mod.rschooses between them at runtime, so both compile, and their tests run, everywhere.gateway install: on Linux without lingering, it prints how to keep the service running after logout (sudo loginctl enable-linger $USER). This goes to stderr, so the JSON stays clean.plistis nowfile.~/.local/state/isbell($XDG_STATE_HOME) on Linux,upgrade.logincluded.setup.mdandinstall.mdsay Mac or Linux;setup.mdasks about lingering on Linux;Checked
cargo clippy,cargo test -p isbell(133, with a new test of the unit's quoting).aarch64-unknown-linux-muslbuild made as CI makes it:gateway install: the unit is active and enabled; the gateway connects to the relay and starts herdr, and the machine shows online withos: linux;gateway installprints the hint;gateway uninstall: removes the unit and itswantslink and leaves herdr running; run again, it returnsremoved: false;Not yet
install.sh, so it can be tested only after the release, from 0.11.1 to 0.12.0 on the same VM.