mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 15:29:40 +01:00
GraphQL, WebSocket, import, runner and CLI (M5, M6) plus packaging
- GraphQL editor with schema introspection, cached schema, autocomplete and explorer - WebSocket: auth and subprotocols in the handshake, text/JSON/hex/file messages, saved messages, live log with filter, search and export, reconnect with backoff - Import from Postman (collections and environments), Bruno, Insomnia, OpenAPI/Swagger and cURL; imported scripts are kept as docs, never run; credentials move to the gitignored secrets file - Code snippets for cURL, fetch, Python, HTTPie, Go, PowerShell; Postman export - Runner for folders and collections with JSON and JUnit reports - knock CLI: send, run, import, auth login/debug/logout - Large JSON responses parsed off the main thread - PKGBUILDs, desktop entry with knock:// handler, CI workflow, README
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# Maintainer: Joshua <joshua at joshicodes dot de>
|
||||
pkgname=knock-bin
|
||||
pkgver=0.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="Offline desktop API client for REST, GraphQL and WebSocket with plain-file collections (binary release)"
|
||||
arch=('x86_64')
|
||||
url="https://git.joshicodes.de/JoshiCodes/knock"
|
||||
license=('MIT')
|
||||
depends=('webkit2gtk-4.1' 'gtk3' 'libsecret' 'hicolor-icon-theme')
|
||||
optdepends=('kwallet: store secrets in KWallet' 'gnome-keyring: store secrets in GNOME Keyring')
|
||||
provides=('knock')
|
||||
conflicts=('knock')
|
||||
source=("knock_${pkgver}_amd64.deb::$url/releases/download/v$pkgver/knock_${pkgver}_amd64.deb")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
package() {
|
||||
bsdtar -xf data.tar.* -C "$pkgdir"
|
||||
install -Dm644 "$pkgdir/usr/share/doc/knock/copyright" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" 2>/dev/null || true
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
# Maintainer: Joshua <joshua at joshicodes dot de>
|
||||
pkgname=knock
|
||||
pkgver=0.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="Offline desktop API client for REST, GraphQL and WebSocket with plain-file collections"
|
||||
arch=('x86_64')
|
||||
url="https://git.joshicodes.de/JoshiCodes/knock"
|
||||
license=('MIT')
|
||||
depends=('webkit2gtk-4.1' 'gtk3' 'libsecret' 'hicolor-icon-theme')
|
||||
makedepends=('rust' 'cargo' 'nodejs' 'npm' 'git')
|
||||
optdepends=('kwallet: store secrets in KWallet' 'gnome-keyring: store secrets in GNOME Keyring')
|
||||
conflicts=('knock-bin')
|
||||
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname"
|
||||
export RUSTUP_TOOLCHAIN=stable
|
||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
||||
npm ci
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname"
|
||||
export RUSTUP_TOOLCHAIN=stable
|
||||
npm run build
|
||||
cargo build --frozen --release -p knock-app -p knock-cli
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$pkgname"
|
||||
cargo test --frozen --release -p knock-core
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname"
|
||||
install -Dm755 target/release/knock-app "$pkgdir/usr/bin/knock-app"
|
||||
install -Dm755 target/release/knock "$pkgdir/usr/bin/knock"
|
||||
install -Dm644 packaging/linux/de.joshicodes.knock.desktop "$pkgdir/usr/share/applications/de.joshicodes.knock.desktop"
|
||||
install -Dm644 logo/knock-app-icon.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/knock.svg"
|
||||
for s in 32 128; do
|
||||
install -Dm644 "src-tauri/icons/${s}x${s}.png" "$pkgdir/usr/share/icons/hicolor/${s}x${s}/apps/knock.png"
|
||||
done
|
||||
install -Dm644 src-tauri/icons/[email protected] "$pkgdir/usr/share/icons/hicolor/256x256/apps/knock.png"
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
Reference in New Issue
Block a user