Skip to content

Commit

Permalink
#138 Update mac offline app link
Browse files Browse the repository at this point in the history
  • Loading branch information
thekingofcity committed Nov 9, 2024
1 parent 7efaae3 commit 9d39874
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/util/asset-enablements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
};

Expand Down

0 comments on commit 9d39874

Please sign in to comment.