Skip to content

Commit ddfa62d

Browse files
author
vladislav.d
committed
feat: direct DMG download
1 parent fdb5152 commit ddfa62d

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

docs/index.html

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@
395395
<img src="assets/logo-clean.png?v=5" alt="Mimir" class="hero-icon fade-up">
396396
<h1 class="fade-up fade-up-d1">Mimir</h1>
397397
<p class="tagline fade-up fade-up-d2" data-i18n="hero_tagline">Speak, friend, and enter.</p>
398-
<a href="https://github.com/stensmir/mimir/releases/latest" class="btn fade-up fade-up-d3">
398+
<a href="https://github.com/stensmir/mimir/releases/latest" class="btn fade-up fade-up-d3 dmg-download">
399399
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
400400
<span data-i18n="hero_cta">Download for macOS</span>
401401
</a>
@@ -513,7 +513,7 @@ <h2 class="section-title" data-i18n="about_title">Built for speed. Designed for
513513
<h2 class="section-title" data-i18n="cta_title">Ready to try Mimir?</h2>
514514
<p class="section-sub" data-i18n="cta_sub">Free. Download and start dictating in seconds.</p>
515515
<div class="cta-buttons">
516-
<a href="https://github.com/stensmir/mimir/releases/latest" class="btn">
516+
<a href="https://github.com/stensmir/mimir/releases/latest" class="btn dmg-download">
517517
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"/></svg>
518518
<span data-i18n="cta_download">Download for macOS</span>
519519
</a>
@@ -752,7 +752,18 @@ <h2 class="section-title" data-i18n="cta_title">Ready to try Mimir?</h2>
752752
if (saved && i18n[saved]) setLang(saved);
753753
</script>
754754
<script>
755-
// Screenshots carousel removed — screenshot shown inline in features
755+
// Resolve direct DMG download link from latest release
756+
fetch('https://api.github.com/repos/stensmir/mimir/releases/latest')
757+
.then(r => r.json())
758+
.then(data => {
759+
const dmg = data.assets && data.assets.find(a => a.name.endsWith('.dmg'));
760+
if (dmg) {
761+
document.querySelectorAll('.dmg-download').forEach(a => {
762+
a.href = dmg.browser_download_url;
763+
});
764+
}
765+
})
766+
.catch(() => {});
756767
</script>
757768
</body>
758769
</html>

0 commit comments

Comments
 (0)