[fix] building error

This commit is contained in:
Purp1e
2025-03-17 01:21:53 +08:00
parent 6803dffc21
commit 47dc77732f
3 changed files with 5 additions and 8 deletions

View File

@@ -42,7 +42,7 @@
}, },
"productName": "CS工具箱", "productName": "CS工具箱",
"mainBinaryName": "cstb", "mainBinaryName": "cstb",
"version": "0.0.1", "version": "0.0.2",
"identifier": "upup.cool", "identifier": "upup.cool",
"plugins": {}, "plugins": {},
"app": { "app": {

View File

@@ -10,11 +10,8 @@ import {
import { ToolButton } from "@/components/window/ToolButton" import { ToolButton } from "@/components/window/ToolButton"
import { cn } from "@heroui/react" import { cn } from "@heroui/react"
import { import {
AssemblyLine, AssemblyLine, SettingConfig,
HardDisk, UploadOne
SettingConfig,
UploadOne,
Videocamera,
} from "@icon-park/react" } from "@icon-park/react"
import { usePathname, useRouter } from "next/navigation" import { usePathname, useRouter } from "next/navigation"
// import { platform } from "@tauri-apps/plugin-os" // import { platform } from "@tauri-apps/plugin-os"

View File

@@ -1,6 +1,6 @@
import { Button, Spinner } from "@heroui/react" import { Button, Spinner } from "@heroui/react"
import { useRouter } from "next/navigation" import { useRouter } from "next/navigation"
import React, { useEffect, useState } from "react" import { useEffect, useState } from "react"
import { useSnapshot } from "valtio" import { useSnapshot } from "valtio"
import { setCsDir, setDir, steamStore } from "@/store/steam" import { setCsDir, setDir, steamStore } from "@/store/steam"
import { open } from "@tauri-apps/plugin-dialog" import { open } from "@tauri-apps/plugin-dialog"
@@ -13,7 +13,7 @@ export function Prepare() {
const [cs2Dir, setCs2Dir] = useState(steam.csDir) const [cs2Dir, setCs2Dir] = useState(steam.csDir)
useEffect(() => { useEffect(() => {
const checkPaths = async () => { const checkPaths = () => {
if (steam.dir && steam.csDir) { if (steam.dir && steam.csDir) {
router.push("/home") router.push("/home")
} else { } else {