From f7ce8ae6a4bf56b4249e10d8f75af0527ef9210d Mon Sep 17 00:00:00 2001 From: Natsumi Date: Wed, 20 Aug 2025 04:38:32 +1200 Subject: [PATCH] Fix Linux updater --- src/stores/vrcxUpdater.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/stores/vrcxUpdater.js b/src/stores/vrcxUpdater.js index 6496d6d7..189388e3 100644 --- a/src/stores/vrcxUpdater.js +++ b/src/stores/vrcxUpdater.js @@ -186,7 +186,8 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => { continue; } if ( - !LINUX && + WINDOWS && + asset.name.endsWith('.exe') && (asset.content_type === 'application/x-msdownload' || asset.content_type === 'application/x-msdos-program') ) { @@ -195,15 +196,19 @@ export const useVRCXUpdaterStore = defineStore('VRCXUpdater', () => { hashString = asset.digest.replace('sha256:', ''); } size = asset.size; - continue; + break; } - if (LINUX && asset.content_type === 'application/octet-stream') { + if ( + LINUX && + asset.name.endsWith('.AppImage') && + asset.content_type === 'application/octet-stream' + ) { downloadUrl = asset.browser_download_url; if (asset.digest && asset.digest.startsWith('sha256:')) { hashString = asset.digest.replace('sha256:', ''); } size = asset.size; - continue; + break; } } return { downloadUrl, hashString, size };