mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 15:19: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:
@@ -121,6 +121,46 @@ jobs:
|
||||
target/release/bundle/rpm/*.rpm
|
||||
target/release/bundle/appimage/*.AppImage
|
||||
|
||||
# Arch package for the pacman repository on Gitea, built from the deb.
|
||||
# Needs the secret GITEA_PACKAGES_TOKEN (a Gitea token with package write
|
||||
# access); without it the job is skipped.
|
||||
arch:
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
needs: [linux]
|
||||
runs-on: ubuntu-latest
|
||||
container: archlinux:latest
|
||||
env:
|
||||
TOKEN: ${{ secrets.GITEA_PACKAGES_TOKEN }}
|
||||
REGISTRY: https://git.joshicodes.de/api/packages/JoshiCodes/arch/joshicodes
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/download-artifact@v5
|
||||
with:
|
||||
name: linux
|
||||
path: artifacts
|
||||
- name: Build knock-bin
|
||||
if: env.TOKEN != ''
|
||||
run: |
|
||||
pacman -Syu --noconfirm --needed base-devel
|
||||
useradd -m builder
|
||||
deb=$(find artifacts -name '*.deb' | head -1)
|
||||
tag="${GITHUB_REF_NAME#v}"
|
||||
ver="${tag//-/}"
|
||||
mkdir -p /build && cp packaging/arch/knock-bin/PKGBUILD /build/ && cp "$deb" /build/
|
||||
cd /build
|
||||
name=$(basename "$deb")
|
||||
sed -i -E "s/^pkgver=.*/pkgver=$ver/; s/^pkgrel=.*/pkgrel=1/" PKGBUILD
|
||||
sed -i -E "s|^source=.*|source=(\"$name\")|" PKGBUILD
|
||||
chown -R builder /build
|
||||
su builder -c 'makepkg --nodeps --noconfirm'
|
||||
ls -la *.pkg.tar.zst
|
||||
- name: Upload to the Gitea pacman repository
|
||||
if: env.TOKEN != ''
|
||||
run: |
|
||||
for f in /build/*.pkg.tar.zst; do
|
||||
curl --fail-with-body -sS -X PUT --user "JoshiCodes:$TOKEN" --upload-file "$f" "$REGISTRY"
|
||||
done
|
||||
|
||||
release:
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
needs: [macos, linux, windows]
|
||||
|
||||
Reference in New Issue
Block a user