Thanks for helping! Questions and ideas are welcome in an issue.
- Rust (stable), GTK 4.14+ development files (
libgtk-4-dev,gtk4-devel,gtk4) - Deno 2
cargo run # the launcher, using ./sdk and your installed extensions
BACKSLASH_EXTENSIONS_PATH=$PWD/extensions cargo run # with the bundled extensions
cargo run -- run npm/search react # CLI
make check # what CI runs, but the UI tests
make ui-test # the window in Xvfb, driven by xdotoolbackslash dev <dir> runs a separate instance (app.backslash.Backslash.Devel)
that never hides on focus loss and prints extension logs.
Read docs/ARCHITECTURE.md first. In short:
crates/backslash-core: protocol, host, ranking, manifests. Most logic, most tests.crates/backslash: the GTK window and the CLI.sdk/: the TypeScript API and its runtime.extensions/: bundled extensions.
Protocol changes must update protocol.rs, sdk/, and docs/PROTOCOL.md together.
- Keep them focused; describe the user-visible change.
make checkmust pass (format, clippy, tests, Deno lint and type check).- New behavior in
backslash-corecomes with a test. Keyboard and window behavior can be tested incrates/backslash/tests/ui.rs: the launcher writes what it shows toBACKSLASH_UI_TRACEas JSON.
One click: Actions → Release → Run workflow, type the version (0.4.0),
Run. The workflow:
- commits the version (Cargo, AppStream, PKGBUILD) and tags it
v0.4.0; - builds the
.deb,.rpmand tarball for x86_64 and aarch64; - publishes the GitHub release with notes generated from the merged pull requests;
- publishes the
backslashpackage on the AUR; - opens a pull request bringing the new version to
mainand merges it.
Pushing a v0.4.0 tag, or creating the release on GitHub, does the same.
packaging/set-version.sh 0.4.0 changes the version locally.
- Create an account on aur.archlinux.org
with the project address,
contact@getbackslash.com(thePKGBUILDnames it as maintainer and the AUR commits are made under it). - Make a key for CI:
ssh-keygen -t ed25519 -f aur -N "" -C backslash-ci. - Paste
aur.pubin My Account → SSH Public Key on the AUR. - Paste the content of
aur(the private key) in the repository's Settings → Secrets and variables → Actions → New repository secret, namedAUR_SSH_PRIVATE_KEY. Then delete both files. - Let the release workflow bring the version back to
mainon its own, with a small GitHub App thatmain's ruleset lets merge pull requests (GitHub Actions itself can't be added to the bypass list):- Organization settings → Developer settings → GitHub Apps → New GitHub
App: name it
backslash-release, any homepage URL, uncheck Webhook → Active, and give it the repository permissions Contents: Read and write and Pull requests: Read and write. Create it. - On its page: note the App ID, Generate a private key (a
.pemfile downloads), then Install App on thebackslashrepository. - In the repository's Settings → Secrets and variables → Actions: add
the variable
RELEASE_APP_ID(the App ID) and the secretRELEASE_APP_PRIVATE_KEY(the content of the.pem), then delete the file. - Settings → Rules → Rulesets → the ruleset of
main→ Bypass list → Add bypass: thebackslash-releaseapp, set to For pull requests only (it may merge its version pull request without a review, never push tomaindirectly).
- Organization settings → Developer settings → GitHub Apps → New GitHub
App: name it
The first release after this creates the backslash package on the AUR.
Without the secret, the AUR step only checks the package and says so.
Each release also publishes signed apt and dnf repositories on GitHub Pages
(packaging/repo/build.sh), so updates come with the system's.
- Make a signing key without a passphrase:
GNUPGHOME=$(mktemp -d) sh -c 'gpg --batch --passphrase "" --quick-gen-key "Backslash Packages <contact@getbackslash.com>" ed25519 sign never && gpg --armor --export-secret-keys' > repo-key.asc - Add the content of
repo-key.ascas the Actions secretREPO_SIGNING_KEY, keep a copy offline, and delete the file. - Settings → Pages → Build and deployment → Source: GitHub Actions.
The next release publishes https://backslash-app.github.io/backslash/,
whose page shows the commands for apt and dnf (the README has them too).
Without the secret, the step says so and publishes nothing.
Backslash reads the extension registry only from commits signed by the
registry key, which the CI of
backslash-app/plugins makes on its
signed branch each time main passes the checks.
- Make the key:
ssh-keygen -t ed25519 -f registry -N "" -C backslash-registry. - In backslash-app/plugins, add the content of
registry(the private key) as the Actions secretREGISTRY_SIGNING_KEY, then re-run the last Check workflow onmain: thesignedbranch appears. - Here, add the line of
registry.pubtoDEFAULT_SIGNERSincrates/backslash-core/src/catalog.rsand release. Keep the private key offline (a password manager), then delete both files.
To replace the key, add the new public key next to the old one, release, then
change the secret, and remove the old key in a later release. The key is in
place: launchers only read the signed branch, so a main that fails the
checks (or a missing secret) leaves them on the last signed registry.