improve macos experience

This commit is contained in:
josc146
2024-02-05 00:25:04 +08:00
parent f1986fa9d0
commit d5cca4e542
4 changed files with 40 additions and 15 deletions

View File

@@ -352,7 +352,7 @@ export async function checkUpdate(notifyEvenLatest: boolean = false) {
if (r.ok) {
r.json().then((data) => {
if (data.assets && data.assets.length > 0) {
const asset = data.assets.find((a: any) => a.name.toLowerCase().includes(commonStore.platform.toLowerCase()));
const asset = data.assets.find((a: any) => a.name.toLowerCase().includes(commonStore.platform.toLowerCase().replace('darwin', 'macos')));
if (asset) {
const updateUrl = !commonStore.settings.giteeUpdatesSource ?
`https://github.com/josStorer/RWKV-Runner/releases/download/${versionTag}/${asset.name}` :