9 Commits

Author SHA1 Message Date
2781fef3ff CI: Arch-Anhang-Teil entgiftet (grep-/Tag-Fallback mit || true); v0.1.6
All checks were successful
secret-probe / probe-arch (push) Successful in 2s
Release (AppImage + deb + pacman) / AppImage + deb (Ubuntu) (push) Successful in 4m28s
Release (AppImage + deb + pacman) / pacman (Arch) (push) Successful in 7m12s
2026-11-07 14:22:26 +01:00
aac4205a45 CI: 409/Body-Pfad entgiftet (keine -f-Curls, || true-Griffe); v0.1.5
Some checks failed
Release (AppImage + deb + pacman) / AppImage + deb (Ubuntu) (push) Successful in 4m29s
Release (AppImage + deb + pacman) / pacman (Arch) (push) Failing after 7m10s
secret-probe / probe-arch (push) Successful in 2s
2026-11-07 14:06:50 +01:00
421e7eeb03 CI: Diagnostik-Sonde für Secret im Arch-Job
All checks were successful
secret-probe / probe-arch (push) Successful in 1s
2026-11-07 14:02:37 +01:00
5eb6afe916 CI: Release-Anhänge ohne Python/pipefail-Fallen (HTTP-Code sichtbar, tag-lookup fallback); v0.1.4
Some checks failed
Release (AppImage + deb + pacman) / AppImage + deb (Ubuntu) (push) Successful in 4m22s
Release (AppImage + deb + pacman) / pacman (Arch) (push) Failing after 7m13s
2026-11-07 13:43:42 +01:00
86ddae642f CI: python ins Arch-Image-Dep-Set; v0.1.3
Some checks failed
Release (AppImage + deb + pacman) / AppImage + deb (Ubuntu) (push) Successful in 4m22s
Release (AppImage + deb + pacman) / pacman (Arch) (push) Failing after 7m8s
2026-11-07 13:24:39 +01:00
2f7b4f5ced CI: Release-Token via Secret HW_RELEASE_TOKEN; v0.1.2
Some checks failed
Release (AppImage + deb + pacman) / AppImage + deb (Ubuntu) (push) Successful in 4m19s
Release (AppImage + deb + pacman) / pacman (Arch) (push) Failing after 7m9s
2026-11-07 12:54:10 +01:00
b1b33bf3e8 v0.1.2 Trigger-Commit
Some checks failed
Release (AppImage + deb + pacman) / AppImage + deb (Ubuntu) (push) Has been cancelled
Release (AppImage + deb + pacman) / pacman (Arch) (push) Has been cancelled
2026-11-07 12:40:41 +01:00
187ce10310 v0.1.1: Statusleisten-Version nachgezogen
Some checks failed
Release (AppImage + deb + pacman) / AppImage + deb (Ubuntu) (push) Failing after 4m21s
Release (AppImage + deb + pacman) / pacman (Arch) (push) Failing after 7m5s
2026-11-07 12:39:45 +01:00
561e192dc2 v0.1.1 Versionen fürs Release
Some checks failed
Release (AppImage + deb + pacman) / AppImage + deb (Ubuntu) (push) Has been cancelled
Release (AppImage + deb + pacman) / pacman (Arch) (push) Has been cancelled
2026-11-07 12:38:56 +01:00
7 changed files with 111 additions and 51 deletions

View File

@ -0,0 +1,15 @@
name: secret-probe
on:
push:
jobs:
probe-arch:
runs-on: arch-base-devel
env:
HW_TOKEN: ${{ secrets.HW_RELEASE_TOKEN }}
steps:
- name: secret-echo-sicher
run: |
echo "curl da? $(command -v curl || echo FEHLT)"
echo "ref_name set? ${GITHUB_REF_NAME:+ja len=${#GITHUB_REF_NAME}}"
echo "token len in container: ${#HW_TOKEN}"
echo "user-code: $(curl -sS -o /dev/null -w '%{http_code}' -H "Authorization: token $HW_TOKEN" https://git.wlkns.org/api/v1/user)"

View File

@ -8,6 +8,9 @@ jobs:
build-deb-appimage:
name: AppImage + deb (Ubuntu)
runs-on: ubuntu-latest
env:
HW_TOKEN: ${{ secrets.HW_RELEASE_TOKEN }}
HW_API: https://git.wlkns.org/api/v1/repos/wlkns-dev/hoerwerk
steps:
- name: Checkout
uses: actions/checkout@v4
@ -32,43 +35,71 @@ jobs:
npm install
npm run tauri build -- --bundles appimage,deb
- name: Release anlegen/ermitteln
- name: Release anhängen (deb + AppImage)
run: |
VER=${GITHUB_REF_NAME}
API="https://git.wlkns.org/api/v1/repos/wlkns-dev/hoerwerk"
curl -sf -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
-H 'Content-Type: application/json' \
-d "{\"tag_name\":\"$VER\",\"name\":\"Hörwerk $VER\",\"body\":\"Release $VER\",\"draft\":false,\"prerelease\":false}" \
"$API/releases" > /tmp/rel.json || true
RID=$(cat /tmp/rel.json | python3 -c 'import json,sys; print(json.load(sys.stdin).get("id",""))' 2>/dev/null || echo)
if [ -z "$RID" ]; then
curl -sf -H "Authorization: token $GITHUB_TOKEN" "$API/releases/tags/$VER" > /tmp/rel.json
RID=$(python3 -c 'import json,sys; print(json.load(sys.stdin)["id"])')
fi
echo "RELEASE_ID=$RID" >> "$GITHUB_ENV"
VER="$GITHUB_REF_NAME"
set -u
release_body() {
echo -n "{\"tag_name\":\"$VER\",\"name\":\"Hörwerk $VER\",\"body\":\"Release $VER — AppImage, deb und Arch-Paket.\",\"draft\":false,\"prerelease\":false}"
}
post_release() {
body=$(release_body)
curl -sS -X POST \
-H "Authorization: token $HW_TOKEN" \
-H 'Content-Type: application/json' \
-d "$body" \
-w '\n%{http_code}' \
$curl_out_flag \
"$HW_API/releases" || true
}
get_release() {
curl -sS -H "Authorization: token $HW_TOKEN" \
-w '\n%{http_code}' -o $curl_out_flag \
"$HW_API/releases/tags/$VER" || true
}
# Body-Datei immer beschreiben (auch bei Fehlstatus)
curl_out_flag=('/tmp/hw-rel-body.json')
code=$(post_release | tail -n1)
body_text=$(cat /tmp/hw-rel-body.json 2>/dev/null || echo)
RID=$(echo "$body_text" | grep -o '"id": *[0-9]*' | head -n1 | grep -o '[0-9]*' || true)
if [ -z "$RID" ]; then
echo "POST-Code: $code — Fallback: Suche via Tag"
curl_out_flag=('/tmp/hw-rel-body.json')
get_release | tail -n1
body_text=$(cat /tmp/hw-rel-body.json 2>/dev/null || echo)
RID=$(echo "$body_text" | grep -o '"id": *[0-9]*' | head -n1 | grep -o '[0-9]*' || true)
fi
RID=${RID:-}
if [ -z "$RID" ]; then
echo "Release-ID nicht ermittelbar — Body:"
echo "$body_text" | head -c 400
exit 1
fi
echo "Release-ID: $RID"
- name: Anhängen (deb + AppImage)
env:
RELEASE_ID: ${{ env.RELEASE_ID }}
run: |
API="https://git.wlkns.org/api/v1/repos/wlkns-dev/hoerwerk"
for f in src-tauri/target/release/bundle/appimage/*.AppImage src-tauri/target/release/bundle/deb/*.deb; do
echo "Lade $(basename "$f") hoch…"
curl -sf -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
c=$(curl -sS -X POST -H "Authorization: token $HW_TOKEN" \
-F "attachment=@$f" \
"$API/releases/$RELEASE_ID/assets?name=$(basename "$f")"
-o /tmp/hw-upload.json -w '%{http_code}' \
"$HW_API/releases/$RID/assets?name=$(basename "$f")")
echo " Upload-Code: $c"
case "$c" in 200|201) echo " ok";; *) cat /tmp/hw-upload.json; exit 1;; esac
done
build-pacman:
name: pacman (Arch)
runs-on: arch-base-devel
env:
HW_TOKEN: ${{ secrets.HW_RELEASE_TOKEN }}
HW_API: https://git.wlkns.org/api/v1/repos/wlkns-dev/hoerwerk
steps:
- name: Abhängigkeiten (root)
run: |
pacman -Syu --noconfirm --needed \
base-devel git nodejs npm rust gtk3 webkit2gtk-4.1 \
base-devel git nodejs npm rust python gtk3 webkit2gtk-4.1 \
libayatana-appindicator mpv ffmpeg
- name: Checkout
@ -81,30 +112,44 @@ jobs:
chown -R builder:builder ..
sudo -u builder env HOME=/home/builder makepkg -f --noconfirm
- name: Release anlegen/ermitteln
- name: Release anhängen (pacman)
run: |
VER=${GITHUB_REF_NAME}
API="https://git.wlkns.org/api/v1/repos/wlkns-dev/hoerwerk"
curl -sf -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
-H 'Content-Type: application/json' \
-d "{\"tag_name\":\"$VER\",\"name\":\"Hörwerk $VER\",\"body\":\"Release $VER\",\"draft\":false,\"prerelease\":false}" \
"$API/releases" > /tmp/rel2.json || true
RID=$(cat /tmp/rel2.json | python3 -c 'import json,sys; print(json.load(sys.stdin).get("id",""))' 2>/dev/null || echo)
if [ -z "$RID" ]; then
curl -sf -H "Authorization: token $GITHUB_TOKEN" "$API/releases/tags/$VER" > /tmp/rel2.json
RID=$(python3 -c 'import json,sys; print(json.load(sys.stdin)["id"])')
fi
echo "RELEASE_ID=$RID" >> "$GITHUB_ENV"
VER="$GITHUB_REF_NAME"
set -u
- name: Anhängen (pacman)
env:
RELEASE_ID: ${{ env.RELEASE_ID }}
run: |
API="https://git.wlkns.org/api/v1/repos/wlkns-dev/hoerwerk"
f=$(find . -name "hoerwerk-*.pkg.tar.zst" -type f | head -1)
post_release() {
curl -sS -X POST \
-H "Authorization: token $HW_TOKEN" \
-H 'Content-Type: application/json' \
-d "{\"tag_name\":\"$VER\",\"name\":\"Hörwerk $VER\",\"body\":\"Release $VER — AppImage, deb und Arch-Paket.\",\"draft\":false,\"prerelease\":false}" \
-w '\n%{http_code}' \
-o /tmp/hw-rel-body.json \
"$HW_API/releases"
}
get_release() {
curl -sS -H "Authorization: token $HW_TOKEN" \
-w '\n%{http_code}' -o /tmp/hw-rel-body.json \
"$HW_API/releases/tags/$VER"
}
code=$(post_release | tail -n1)
RID=$(grep -o '"id": *[0-9]*' /tmp/hw-rel-body.json 2>/dev/null | head -n1 | grep -o '[0-9]*' || true)
if [ -z "$RID" ]; then
echo "POST-Code: $code — Fallback via Tag-Lookup"
get_release >/dev/null 2>&1
RID=$(grep -o '"id": *[0-9]*' /tmp/hw-rel-body.json 2>/dev/null | head -n1 | grep -o '[0-9]*' || true)
fi
if [ -z "$RID" ]; then
echo "Release-ID konnte nicht ermittelt werden (code=$code)"; exit 1
fi
echo "Release-ID: $RID"
f=$(find "$PWD" -name "hoerwerk-*.pkg.tar.zst" -type f | head -n1)
[ -n "$f" ] || { echo "kein pkg.tar.zst gefunden"; exit 1; }
echo "Lade $(basename "$f") hoch…"
curl -sf -X POST \
-H "Authorization: token $GITHUB_TOKEN" \
c=$(curl -sS -X POST -H "Authorization: token $HW_TOKEN" \
-F "attachment=@$f" \
"$API/releases/$RELEASE_ID/assets?name=$(basename "$f")"
-o /tmp/hw-upload2.json -w '%{http_code}' \
"$HW_API/releases/$RID/assets?name=$(basename "$f")")
echo "Upload-Code: $c"
case "$c" in 200|201) echo ok;; *) cat /tmp/hw-upload2.json; exit 1;; esac

View File

@ -1,7 +1,7 @@
{
"name": "hoerwerk",
"private": true,
"version": "0.1.0",
"version": "0.1.6",
"description": "Hörwerk – lokaler Audible-Hörbuch-Player",
"type": "module",
"scripts": {

View File

@ -1,6 +1,6 @@
# Maintainer: Stephan Wilkens
pkgname=hoerwerk
pkgver=0.1.0
pkgver=0.1.6
pkgrel=1
pkgdesc='Lokaler Hörbuch-Player für die eigene Audible-Bibliothek (Tauri 2 + Svelte)'
arch=('x86_64')

View File

@ -1,6 +1,6 @@
[package]
name = "hoerwerk"
version = "0.1.0"
version = "0.1.6"
description = "Hörwerk – lokaler Audible-Hörbuch-Player"
authors = ["Stephan"]
edition = "2024"

View File

@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "hoerwerk",
"version": "0.1.0",
"version": "0.1.6",
"identifier": "com.hoerwerk.app",
"build": {
"beforeDevCommand": "npm run dev",

View File

@ -893,5 +893,5 @@
{#if error}
<span class="statcell statflex error">{error}</span>
{/if}
<span class="statcell statend">Hörwerk 0.1.0</span>
<span class="statcell statend">Hörwerk 0.1.6</span>
</footer>