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 @@
Sign in to open your servers.
+ @@ -263,4 +268,4 @@