Skip to content

Commit 091c8b5

Browse files
committed
feat(docs): add separate macOS Intel and Apple Silicon downloads
1 parent c98125c commit 091c8b5

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<img src="docs/assets/og_image.png" width="90%"></img>
1515

1616
## Release Download:
17-
[![Windows](https://img.shields.io/badge/Windows-Download-blue?logo=windows)](https://github.com/debba/storytel-player/releases/download/v1.2.12/Storytel-Player-Setup-1.2.12.exe) [![macOS](https://img.shields.io/badge/macOS-Download-black?logo=apple)](https://github.com/debba/storytel-player/releases/download/v1.2.12/Storytel-Player-1.2.12.dmg) [![Linux](https://img.shields.io/badge/Linux-Download-green?logo=linux)](https://github.com/debba/storytel-player/releases/download/v1.2.12/Storytel-Player-1.2.12.AppImage)
17+
[![Windows](https://img.shields.io/badge/Windows-Download-blue?logo=windows)](https://github.com/debba/storytel-player/releases/download/v1.2.12/Storytel-Player-Setup-1.2.12.exe) [![macOS Intel](https://img.shields.io/badge/macOS_Intel-Download-black?logo=apple)](https://github.com/debba/storytel-player/releases/download/v1.2.12/Storytel-Player-1.2.12.dmg) [![macOS Apple Silicon](https://img.shields.io/badge/macOS_Apple_Silicon-Download-black?logo=apple)](https://github.com/debba/storytel-player/releases/download/v1.2.12/Storytel-Player-1.2.12-arm64.dmg) [![Linux](https://img.shields.io/badge/Linux-Download-green?logo=linux)](https://github.com/debba/storytel-player/releases/download/v1.2.12/Storytel-Player-1.2.12.AppImage)
1818

1919
**Native Desktop App**: Cross-platform application with system tray integration and single instance lock
2020

docs/index.html

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,13 @@ <h3>Windows</h3>
7272
<path d="M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"/>
7373
</svg>
7474
</div>
75-
<h3>macOS</h3>
75+
<h3>macOS Intel</h3>
7676
<p>macOS 10.14 or later</p>
7777
<a href="#" id="download-mac" class="btn btn-primary">
78-
Download .dmg
78+
Download .dmg (Intel)
79+
</a>
80+
<a href="#" id="download-mac-arm64" class="btn btn-primary" style="margin-top: 0.5rem;">
81+
Download .dmg (Apple Silicon)
7982
</a>
8083
</div>
8184

@@ -255,7 +258,8 @@ <h2>Get Started Today</h2>
255258

256259
// Find download URLs for each platform
257260
const windowsAsset = assets.find(a => a.name.endsWith('.exe'));
258-
const macAsset = assets.find(a => a.name.endsWith('.dmg'));
261+
const macIntelAsset = assets.find(a => a.name.endsWith('.dmg') && !a.name.includes('arm64'));
262+
const macArm64Asset = assets.find(a => a.name.endsWith('.dmg') && a.name.includes('arm64'));
259263
const linuxAsset = assets.find(a => a.name.endsWith('.AppImage'));
260264

261265
// Update Windows download link
@@ -264,10 +268,16 @@ <h2>Get Started Today</h2>
264268
if (winLink) winLink.href = windowsAsset.browser_download_url;
265269
}
266270

267-
// Update macOS download link
268-
if (macAsset) {
271+
// Update macOS Intel download link
272+
if (macIntelAsset) {
269273
const macLink = document.getElementById('download-mac');
270-
if (macLink) macLink.href = macAsset.browser_download_url;
274+
if (macLink) macLink.href = macIntelAsset.browser_download_url;
275+
}
276+
277+
// Update macOS Apple Silicon download link
278+
if (macArm64Asset) {
279+
const macArm64Link = document.getElementById('download-mac-arm64');
280+
if (macArm64Link) macArm64Link.href = macArm64Asset.browser_download_url;
271281
}
272282

273283
// Update Linux download link

0 commit comments

Comments
 (0)