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:
2026-11-27 21:48:19 +01:00
parent a73490e5d4
commit 14888c3748
22 changed files with 419 additions and 182 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ 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"
url="https://github.com/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')
+1 -1
View File
@@ -4,7 +4,7 @@ pkgver=r0
pkgrel=1
pkgdesc="Offline desktop API client for REST, GraphQL and WebSocket with plain-file collections (latest main)"
arch=('x86_64')
url="https://git.joshicodes.de/JoshiCodes/knock"
url="https://github.com/JoshiCodes/knock"
license=('MIT')
depends=('webkit2gtk-4.1' 'gtk3' 'libsecret' 'hicolor-icon-theme')
makedepends=('rust' 'cargo' 'nodejs' 'npm' 'git')
+6 -6
View File
@@ -4,7 +4,7 @@ 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"
url="https://github.com/JoshiCodes/knock"
license=('MIT')
depends=('webkit2gtk-4.1' 'gtk3' 'libsecret' 'hicolor-icon-theme')
makedepends=('rust' 'cargo' 'nodejs' 'npm' 'git')
@@ -12,30 +12,30 @@ optdepends=('kwallet: store secrets in KWallet' 'gnome-keyring: store secrets in
conflicts=('knock-bin')
# aws-lc and sqlite are C; makepkg's LTO flags produce objects the Rust linker cannot read.
options=('!lto')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('SKIP')
prepare() {
cd "$pkgname"
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
npm ci
}
build() {
cd "$pkgname"
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
npm run build
cargo build --frozen --release -p knock-app -p knock-cli --features knock-app/custom-protocol
}
check() {
cd "$pkgname"
cd "$pkgname-$pkgver"
cargo test --frozen --release -p knock-core
}
package() {
cd "$pkgname"
cd "$pkgname-$pkgver"
install -Dm755 target/release/knock-app "$pkgdir/usr/bin/knock-app"
install -Dm755 target/release/knock "$pkgdir/usr/bin/knock"
install -Dm644 packaging/linux/knock-app.desktop "$pkgdir/usr/share/applications/knock-app.desktop"