parent
6dc6cecfcc
commit
3eb1861589
3 changed files with 41 additions and 3 deletions
|
|
@ -20,7 +20,19 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir -p static/installers
|
mkdir -p static/installers
|
||||||
find static/installers -mindepth 1 -maxdepth 1 -type f -delete
|
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
|
- name: Cache Cargo registry
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,11 @@
|
||||||
<h1>Chattz</h1>
|
<h1>Chattz</h1>
|
||||||
<p>Sign in to open your servers.</p>
|
<p>Sign in to open your servers.</p>
|
||||||
<button id="login-btn">Login with Authentik</button>
|
<button id="login-btn">Login with Authentik</button>
|
||||||
|
<div class="auth-downloads">
|
||||||
|
<span>Desktop downloads:</span>
|
||||||
|
<a href="/static/installers/chattz-windows.exe">Windows</a>
|
||||||
|
<a href="/static/installers/chattz-linux.rpm">Linux (RPM)</a>
|
||||||
|
</div>
|
||||||
<p id="status" class="status-line"></p>
|
<p id="status" class="status-line"></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -190,6 +190,27 @@ select {
|
||||||
transform: translateY(0);
|
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 */
|
/* Main Layout */
|
||||||
/* ═══════════════════════════════════════════════════════════ */
|
/* ═══════════════════════════════════════════════════════════ */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue