@@ -35,7 +35,7 @@ import Layout from '../layouts/Layout.astro'
3535 <svg class =" w-5 h-5" fill =" none" viewBox =" 0 0 24 24" stroke =" currentColor" stroke-width =" 2" ><path stroke-linecap =" round" stroke-linejoin =" round" d =" M19 14l-7 7m0 0l-7-7m7 7V3" /></svg >
3636 <span id =" primary-label" >Download for macOS</span >
3737 </a >
38- <p class =" mt-3 text-[12px] text-ink-faint" id =" primary-meta" >Apple Silicon & Intel · .zip </p >
38+ <p class =" mt-3 text-[12px] text-ink-faint" id =" primary-meta" >Apple Silicon & Intel · .dmg </p >
3939 </div >
4040
4141 <!-- Other platforms link -->
@@ -50,15 +50,15 @@ import Layout from '../layouts/Layout.astro'
5050 <div class =" grid sm:grid-cols-3 gap-4" >
5151 <a id =" link-mac" href =" #" class =" group rounded-xl border border-rule hover:border-teal/30 p-5 text-center transition-all" >
5252 <div class =" text-[14px] font-medium text-ink mb-1" >macOS</div >
53- <p class =" text-[11px] text-ink-faint" >Apple Silicon & Intel · .zip </p >
53+ <p class =" text-[11px] text-ink-faint" >Apple Silicon & Intel · .dmg </p >
5454 </a >
5555 <a id =" link-win" href =" #" class =" group rounded-xl border border-rule hover:border-teal/30 p-5 text-center transition-all" >
5656 <div class =" text-[14px] font-medium text-ink mb-1" >Windows</div >
57- <p class =" text-[11px] text-ink-faint" >Windows 10+ · .zip </p >
57+ <p class =" text-[11px] text-ink-faint" >Windows 10+ · .exe </p >
5858 </a >
5959 <a id =" link-linux" href =" #" class =" group rounded-xl border border-rule hover:border-teal/30 p-5 text-center transition-all" >
6060 <div class =" text-[14px] font-medium text-ink mb-1" >Linux</div >
61- <p class =" text-[11px] text-ink-faint" >Linux x64 · .tar.gz </p >
61+ <p class =" text-[11px] text-ink-faint" >Linux x64 · .AppImage </p >
6262 </a >
6363 </div >
6464 </div >
@@ -96,9 +96,9 @@ import Layout from '../layouts/Layout.astro'
9696 const RELEASE_API = `https://api.github.com/repos/${REPO}/releases/latest`;
9797
9898 const PLATFORMS = {
99- mac: { label: 'Download for macOS', meta: 'Apple Silicon & Intel \u00b7 .zip ' },
100- win: { label: 'Download for Windows', meta: 'Windows 10+ \u00b7 .zip ' },
101- linux: { label: 'Download for Linux', meta: 'Linux x64 \u00b7 .tar.gz ' },
99+ mac: { label: 'Download for macOS', meta: 'Apple Silicon & Intel \u00b7 .dmg ' },
100+ win: { label: 'Download for Windows', meta: 'Windows 10+ \u00b7 .exe ' },
101+ linux: { label: 'Download for Linux', meta: 'Linux x64 \u00b7 .AppImage ' },
102102 };
103103
104104 function detectOS() {
@@ -124,13 +124,13 @@ import Layout from '../layouts/Layout.astro'
124124
125125 const find = (pattern) => assets.find(a => pattern.test(a.name));
126126
127- // Match: Executor-arm64-mac.zip or Executor-x64-mac.zip based on Apple Silicon
127+ // Match: .dmg for macOS (arm64 preferred on Apple Silicon), .exe for Windows, .AppImage for Linux
128128 const isAppleSilicon = navigator.userAgent.includes('Mac') &&
129129 (navigator.userAgent.includes('ARM') || navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 0);
130- const macAsset = find(isAppleSilicon ? /Executor- arm64-mac\.zip $/ : /Executor- x64-mac\.zip $/);
130+ const macAsset = find(isAppleSilicon ? /arm64\.dmg $/ : /x64\.dmg$/) || find(/\.dmg $/);
131131 const macUrl = macAsset?.browser_download_url;
132- const winUrl = find(/Executor-x64-win\.zip $/)?.browser_download_url;
133- const linuxUrl = find(/Executor-x64-linux\.tar\.gz $/)?.browser_download_url;
132+ const winUrl = find(/\.exe $/)?.browser_download_url;
133+ const linuxUrl = find(/\.AppImage $/)?.browser_download_url;
134134
135135 const urls = { mac: macUrl, win: winUrl, linux: linuxUrl };
136136
0 commit comments