From 9d39874c21e991faeb2291f8b3f88be78b4dc8f3 Mon Sep 17 00:00:00 2001 From: thekingofcity <3353040+thekingofcity@users.noreply.github.com> Date: Fri, 8 Nov 2024 20:48:48 -0500 Subject: [PATCH] #138 Update mac offline app link --- src/util/asset-enablements.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/asset-enablements.ts b/src/util/asset-enablements.ts index 5df1ca7..bd4bb26 100644 --- a/src/util/asset-enablements.ts +++ b/src/util/asset-enablements.ts @@ -24,7 +24,11 @@ const getTauriUrl = () => { const tag = `${d.getFullYear()}${String(d.getMonth() + 1).padStart(2, '0')}01`; const ver = `${String(d.getFullYear()).slice(-2)}.${d.getMonth() + 1}.1`; const platform = navigator.platform; - const suffix = platform.includes('Linux') ? 'amd64.deb' : platform.includes('Mac') ? 'x64.dmg' : 'x64-setup.exe'; + const suffix = platform.includes('Linux') + ? 'amd64.deb' + : platform.includes('Mac') + ? 'aarch64.dmg' + : 'x64-setup.exe'; return baseUrl + `/tauri-${tag}/railmapgen_${ver}_${suffix}`; };