mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 15:09:41 +01:00
Move to GitHub: CI, release workflow and script; cursor and hover states
- ci.yml checks frontend types and build, core tests and that app and CLI compile on every push and pull request - release.yml publishes a GitHub release with notes and checksums for tags; scripts/release.sh bumps the version everywhere, tags and pushes - The Gitea workflow is gone; PKGBUILDs download from GitHub - Every clickable element shows the pointer and has a hover state; disabled controls show not-allowed - Dev-only fake backend (open the dev server with ?mock) for design work - README: docs link, install per platform, development, releasing
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
An offline desktop API client for REST, GraphQL and WebSocket. No account, no cloud, no telemetry. Collections are folders of YAML files that live in your git repository.
|
||||
|
||||
**Documentation:** https://docs.joshicodes.de/b/knock/introduction · **Downloads:** [Releases](https://github.com/JoshiCodes/knock/releases)
|
||||
|
||||
## What makes it different
|
||||
|
||||
- **JSON bodies without typing brackets.** Every JSON body has a form view (keys, types, values, drag to reorder) and a code view on the same text. Switching is lossless: key order, `{{variables}}` as raw values and numbers larger than 2^53 survive. Attach a JSON Schema and the form suggests fields, marks required ones and validates while you type.
|
||||
@@ -64,21 +66,39 @@ knock auth debug users --env prod --verbose
|
||||
|
||||
`knock run` exits with 1 when an assertion fails. In CI, secrets come from `KNOCK_SECRET_<NAME>` environment variables (set `KNOCK_NO_KEYRING=1` where no keyring exists).
|
||||
|
||||
## Building
|
||||
## Install
|
||||
|
||||
- **Arch Linux / CachyOS:** `packaging/arch/knock-bin` (release package), `packaging/arch/knock` (from source) or `packaging/arch/knock-git` (latest `main`); `makepkg -si` in the folder
|
||||
- **Ubuntu 22.04+ / Debian:** the `.deb` from the [latest release](https://github.com/JoshiCodes/knock/releases/latest)
|
||||
- **Fedora and others:** the `.rpm` or the AppImage
|
||||
- **macOS:** the universal `.dmg` (not notarized: open it once with right click → Open)
|
||||
- **Windows:** the `.msi` or setup `.exe` (best effort)
|
||||
|
||||
If the window stays blank on Wayland, WebKitGTK's DMA-BUF renderer is the usual cause; knock turns it off by default. Set `KNOCK_DMABUF=1` to turn it back on.
|
||||
|
||||
## Development
|
||||
|
||||
Requirements: Rust (stable), Node.js 20+, and on Linux `webkit2gtk-4.1`, `gtk3`, `libsecret`.
|
||||
|
||||
```sh
|
||||
npm ci
|
||||
npm run tauri dev # run the app
|
||||
npm run tauri build # deb, rpm, AppImage in target/release/bundle
|
||||
cargo build --release -p knock-cli
|
||||
cargo test -p knock-core
|
||||
cargo test -p knock-core # tests
|
||||
npx svelte-check # frontend types
|
||||
npm run dev # frontend only; open http://localhost:1420/?mock for a fake backend
|
||||
```
|
||||
|
||||
Arch Linux: `packaging/arch/knock` builds from source, `packaging/arch/knock-bin` repackages the release `.deb`.
|
||||
`.github/workflows/ci.yml` checks every push and pull request.
|
||||
|
||||
If the window stays blank on Wayland, WebKitGTK's DMA-BUF renderer is the usual cause; knock turns it off by default. Set `KNOCK_DMABUF=1` to turn it back on.
|
||||
## Releasing
|
||||
|
||||
```sh
|
||||
scripts/release.sh 0.2.0
|
||||
```
|
||||
|
||||
The script sets the version in Cargo, npm, Tauri and the PKGBUILDs, commits, tags `v0.2.0` and pushes. The tag starts `.github/workflows/release.yml`, which builds Linux (deb, rpm, AppImage), macOS (universal dmg) and Windows (msi, exe) plus the CLI for each, and publishes a GitHub release with generated notes and `SHA256SUMS`. A version with a suffix (`0.2.0-rc1`) becomes a pre-release.
|
||||
|
||||
To try the builds without releasing: `gh workflow run release.yml -f platforms=linux` (or `macos`, `windows`, `all`).
|
||||
|
||||
## License
|
||||
|
||||
|
||||
Reference in New Issue
Block a user