This commit is contained in:
2026-02-03 17:33:46 -07:00
parent d9fa967ade
commit be4b8fc3ee
11 changed files with 48 additions and 42 deletions

View File

@@ -166,7 +166,7 @@ export default function Installs () {
: info.category == category)
)
})
.map((entry, i) => (
.map(entry => (
<div
key={entry}
className={`downloads-entry ${

View File

@@ -329,6 +329,12 @@ export default function RootLayout ({
)
)
try {
await axios.get(
'https://games.lncvrt.xyz/api/launcher/download?id=' + info.id
)
} catch {}
const res = await invoke<string>('download', {
url: info.downloadUrl,
name: info.id,

View File

@@ -1,6 +1,6 @@
'use client'
import { useEffect, useState } from 'react'
import { useEffect } from 'react'
import './Installs.css'
import { useGlobal } from './GlobalProvider'
import Link from 'next/link'

View File

@@ -8,7 +8,7 @@ import {
readTextFile,
writeFile
} from '@tauri-apps/plugin-fs'
import { VersionsConfig, VersionsConfigData } from '../types/VersionsConfig'
import { VersionsConfig } from '../types/VersionsConfig'
export async function readNormalConfig (): Promise<NormalConfig> {
const version = await app.getVersion()