From 3eb18615898c6138bc5f7cb8c34f3e0acf8d542c Mon Sep 17 00:00:00 2001 From: pavel Date: Wed, 25 Feb 2026 16:37:42 +0100 Subject: [PATCH] inst --- .forgejo/workflows/pipeline.yaml | 14 +++++++++++++- static/index.html | 7 ++++++- static/styles.css | 23 ++++++++++++++++++++++- 3 files changed, 41 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/pipeline.yaml b/.forgejo/workflows/pipeline.yaml index e41ca0a..998698a 100644 --- a/.forgejo/workflows/pipeline.yaml +++ b/.forgejo/workflows/pipeline.yaml @@ -20,7 +20,19 @@ jobs: run: | mkdir -p static/installers find static/installers -mindepth 1 -maxdepth 1 -type f -delete - find dist -maxdepth 1 -type f \( -name '*.rpm' -o -name '*.AppImage' -o -name '*.deb' -o -name '*.exe' -o -name '*.msi' \) -exec cp {} static/installers/ \; + copy_first() { + pattern="$1" + out="$2" + file="$(find dist -maxdepth 1 -type f -name "$pattern" | head -n 1)" + if [ -n "$file" ]; then + cp "$file" "static/installers/$out" + fi + } + copy_first '*.rpm' 'chattz-linux.rpm' + copy_first '*.deb' 'chattz-linux.deb' + copy_first '*.AppImage' 'chattz-linux.AppImage' + copy_first '*.exe' 'chattz-windows.exe' + copy_first '*.msi' 'chattz-windows.msi' - name: Cache Cargo registry uses: actions/cache@v4 with: diff --git a/static/index.html b/static/index.html index 818637b..de07abc 100644 --- a/static/index.html +++ b/static/index.html @@ -20,6 +20,11 @@

Chattz

Sign in to open your servers.

+
+ Desktop downloads: + Windows + Linux (RPM) +

@@ -263,4 +268,4 @@ - \ No newline at end of file + diff --git a/static/styles.css b/static/styles.css index 034d083..688d912 100644 --- a/static/styles.css +++ b/static/styles.css @@ -190,6 +190,27 @@ select { transform: translateY(0); } +.auth-downloads { + margin: 14px 0 6px; + display: flex; + align-items: center; + justify-content: center; + gap: 10px; + flex-wrap: wrap; + font-size: 13px; + color: var(--text-muted); +} + +.auth-downloads a { + color: var(--text-link); + text-decoration: none; + font-weight: 600; +} + +.auth-downloads a:hover { + text-decoration: underline; +} + /* ═══════════════════════════════════════════════════════════ */ /* Main Layout */ /* ═══════════════════════════════════════════════════════════ */ @@ -1526,4 +1547,4 @@ select { .chat-header { padding: 0 8px; } -} \ No newline at end of file +}