Check for updates while open, one-click update notice, and a release script

- Rechecks every few hours while Atmosphere is open, and when it regains focus
- A notice announces each new version once, with Update and restart and What's new
- scripts/release.ps1 bumps the version everywhere, commits and tags, and can push
This commit is contained in:
Christian
2026-11-20 00:37:37 -05:00
parent dc8e489c90
commit 08fce65f52
4 changed files with 44 additions and 4 deletions
+11
View File
@@ -1204,3 +1204,14 @@ body.mini-mode > *:not(#mini):not(.toasts):not(.modal-wrap):not(script) { displa
.pick-logo { display: grid; gap: 6px; padding: var(--s3); border-radius: var(--r-ctl); border: 1px solid var(--border); background: repeating-conic-gradient(rgba(127, 127, 127, 0.14) 0 25%, transparent 0 50%) 0 0 / 14px 14px; color: var(--text-2); font-size: 12px; text-align: center; cursor: pointer; }
.pick-logo img { width: 100%; height: 56px; object-fit: contain; }
.pick-logo.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
/* update notice */
.update-notice { position: fixed; right: var(--s5); bottom: 100px; z-index: 95; width: min(380px, calc(100vw - 32px)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s2) var(--s3); align-items: start; padding: var(--s4); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); animation: menuIn 200ms var(--ease); }
.update-notice.out { opacity: 0; transform: translateY(6px); transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.un-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.un-text { display: grid; gap: 2px; min-width: 0; }
.un-text strong { font-size: 13.5px; }
.un-text span { color: var(--text-2); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.un-actions { grid-column: 2 / 4; display: flex; gap: var(--s2); flex-wrap: wrap; }
.un-close { grid-column: 3; grid-row: 1; margin: -6px -6px 0 0; }
@media (prefers-reduced-motion: reduce) { .update-notice { animation: none; } .update-notice.out { transition: none; } }