This commit is contained in:
2025-11-03 20:15:43 -07:00
parent 893715af4c
commit 2d0cdd8074

View File

@@ -8,6 +8,7 @@ import { app } from '@tauri-apps/api'
import { invoke } from '@tauri-apps/api/core' import { invoke } from '@tauri-apps/api/core'
import { LauncherUpdate } from './types/LauncherUpdate' import { LauncherUpdate } from './types/LauncherUpdate'
import { openUrl } from '@tauri-apps/plugin-opener' import { openUrl } from '@tauri-apps/plugin-opener'
import { arch, platform } from '@tauri-apps/plugin-os'
export default function Home () { export default function Home () {
const [state, setState] = useState<string>('Loading...') const [state, setState] = useState<string>('Loading...')
@@ -55,7 +56,7 @@ export default function Home () {
setState('Downloading new update...') setState('Downloading new update...')
try { try {
const launcherUpdateRequest = await axios.get( const launcherUpdateRequest = await axios.get(
'https://games.lncvrt.xyz/api/launcher/loader/update-data' `https://games.lncvrt.xyz/api/launcher/loader/update-data?platform=${platform()}&arch=${arch()}`
) )
launcherUpdateData = launcherUpdateRequest.data launcherUpdateData = launcherUpdateRequest.data
} catch { } catch {