mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 15:09:41 +01:00
Cookie jars per folder; pacman repository on Gitea; install guide per platform
- A folder can share its parent's cookie jar, keep its own, or use no cookies; sub folders follow. The Cookies tab shows the jar a request used. Jars are stored per collection and folder. - The release workflow builds knock-bin from the deb and uploads it to the Gitea pacman repository (needs the GITEA_PACKAGES_TOKEN secret) - knock-bin installs the desktop entry as knock-app.desktop - README: install for Arch (signed pacman repo), Ubuntu/Debian, Fedora/openSUSE, AppImage, macOS (quarantine) and Windows (SmartScreen) - release.sh works when the version is already set
This commit is contained in:
@@ -68,13 +68,56 @@ knock auth debug users --env prod --verbose
|
||||
|
||||
## 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)
|
||||
Downloads are on the [releases page](https://github.com/JoshiCodes/knock/releases/latest). Every package contains the app (`knock-app`) and the command line tool (`knock`).
|
||||
|
||||
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.
|
||||
### Arch Linux, CachyOS, Manjaro
|
||||
|
||||
From the pacman repository (signed). Once:
|
||||
|
||||
```sh
|
||||
curl -fsSL https://git.joshicodes.de/api/packages/JoshiCodes/arch/repository.key | sudo pacman-key --add - && sudo pacman-key --lsign-key B500A6315A9D97708BF6241F10CECFC71020FEB1
|
||||
printf '\n[joshicodes]\nServer = https://git.joshicodes.de/api/packages/JoshiCodes/arch/$repo/$arch\n' | sudo tee -a /etc/pacman.conf >/dev/null && sudo pacman -Sy knock-bin
|
||||
```
|
||||
|
||||
Updates then come with `sudo pacman -Syu`. Building yourself: `makepkg -si` in `packaging/arch/knock` (release from source) or `packaging/arch/knock-git` (latest `main`).
|
||||
|
||||
### Ubuntu 22.04+, Debian, Linux Mint, Pop!_OS
|
||||
|
||||
Download `knock_<version>_amd64.deb` from the release and install it:
|
||||
|
||||
```sh
|
||||
sudo apt install ./knock_*_amd64.deb
|
||||
```
|
||||
|
||||
### Fedora, openSUSE
|
||||
|
||||
```sh
|
||||
sudo dnf install ./knock-*.x86_64.rpm # openSUSE: sudo zypper install ./knock-*.x86_64.rpm
|
||||
```
|
||||
|
||||
### Any other Linux
|
||||
|
||||
The AppImage runs without installing:
|
||||
|
||||
```sh
|
||||
chmod +x knock_*_amd64.AppImage && ./knock_*_amd64.AppImage
|
||||
```
|
||||
|
||||
It needs `libsecret` (or another Secret Service) for secrets. If the window stays blank on Wayland, start it with `WEBKIT_DISABLE_DMABUF_RENDERER=1` (the packages set this already).
|
||||
|
||||
### macOS
|
||||
|
||||
Open the universal `knock_<version>_universal.dmg` (Apple Silicon and Intel) and drag knock to Applications. The app is not notarized by Apple, so macOS blocks the first start. Allow it once:
|
||||
|
||||
```sh
|
||||
xattr -dr com.apple.quarantine /Applications/knock.app
|
||||
```
|
||||
|
||||
(or System Settings → Privacy & Security → **Open Anyway** after the first attempt). The command line tool is in `knock-cli-macos-universal.tar.gz`: unpack it and move `knock` to a folder on your `PATH`, e.g. `/usr/local/bin`.
|
||||
|
||||
### Windows (best effort)
|
||||
|
||||
Run the `.msi` or the setup `.exe`. Windows SmartScreen warns about apps without a code signing certificate: click **More info → Run anyway**. The command line tool is in `knock-cli-windows-x64.zip`.
|
||||
|
||||
## Development
|
||||
|
||||
|
||||
Reference in New Issue
Block a user