From fb40afe86d0aed1437b155b13d7c5f3e3001008e Mon Sep 17 00:00:00 2001 From: tillvit Date: Tue, 13 Aug 2024 19:47:18 -0700 Subject: [PATCH] Prepare for 1.0.0 Release --- app/src/App.ts | 8 +- index.css | 12 ++ index.html | 251 ++++++++++++++++++-------------- nw/package.json | 2 +- public/assets/app/versions.json | 21 ++- 5 files changed, 175 insertions(+), 119 deletions(-) diff --git a/app/src/App.ts b/app/src/App.ts index 5c04e350..94988106 100644 --- a/app/src/App.ts +++ b/app/src/App.ts @@ -55,7 +55,8 @@ interface Version { type: string date: number downloads: { - mac: string + "mac-x64": string + "mac-arm": string win: string linux: string } @@ -416,8 +417,9 @@ export class App { nightly: 0, } let os = "win" - if (navigator.userAgent.includes("Mac")) os = "mac" - else if (navigator.userAgent.includes("Linux")) os = "linux" + if (process.platform == "darwin") { + os = process.arch == "arm64" ? "mac-arm" : "mac-x64" + } else if (process.platform == "linux") os = "linux" fetch("/smeditor/assets/app/versions.json") .then(data => data.json()) .then((versions: Version[]) => { diff --git a/index.css b/index.css index 4c53351f..5c461beb 100644 --- a/index.css +++ b/index.css @@ -460,3 +460,15 @@ a { z-index: -10; filter: saturate(130%) blur(3px); } + +#other-downloads { + margin-top: 5px; + font-size: 13px; + text-decoration: underline; + opacity: 0.5; + transition: 0.2s cubic-bezier(0.17, 0.67, 0.39, 1.35); +} + +#other-downloads:hover { + opacity: 0.7; +} diff --git a/index.html b/index.html index 22cde1d1..0220568c 100644 --- a/index.html +++ b/index.html @@ -25,32 +25,42 @@

SMEditor

An open source tool to view and edit StepMania charts.

- - + + + All Downloads +