diff --git a/bun.lockb b/bun.lockb index 5055104..e8a1395 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 2e568c4..25d09e4 100644 --- a/package.json +++ b/package.json @@ -56,18 +56,18 @@ }, "devDependencies": { "@tailwindcss/postcss": "^4.1.17", - "@tauri-apps/cli": "^2.9.3", + "@tauri-apps/cli": "^2.9.4", "@testing-library/dom": "^10.4.1", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.0", "@testing-library/user-event": "^14.6.1", "@types/jest": "^29.5.14", - "@types/node": "^22.19.0", + "@types/node": "^22.19.1", "@types/react": "19.0.10", "@types/react-dom": "19.0.4", - "@typescript-eslint/eslint-plugin": "^8.46.3", - "@typescript-eslint/parser": "^8.46.3", - "autoprefixer": "^10.4.21", + "@typescript-eslint/eslint-plugin": "^8.47.0", + "@typescript-eslint/parser": "^8.47.0", + "autoprefixer": "^10.4.22", "clsx": "^2.1.1", "cross-env": "^7.0.3", "cssnano": "^7.1.2", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index f5b21f3..d84f83a 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -12,6 +12,7 @@ dependencies = [ "futures-util", "gfxinfo", "log", + "md5", "notify", "regex", "reqwest", @@ -39,7 +40,7 @@ dependencies = [ "tokio", "url", "walkdir", - "window-vibrancy", + "window-vibrancy 0.7.1", "winreg 0.55.0", ] @@ -2692,6 +2693,12 @@ version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" +[[package]] +name = "md5" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771" + [[package]] name = "memchr" version = "2.7.6" @@ -5037,7 +5044,7 @@ dependencies = [ "url", "webkit2gtk", "webview2-com", - "window-vibrancy", + "window-vibrancy 0.6.0", "windows 0.61.3", ] @@ -6535,6 +6542,21 @@ dependencies = [ "windows-version", ] +[[package]] +name = "window-vibrancy" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "010797bd7c40396fbc59d3105089fed0885fe267a0ef4a0a4646df54e28647f6" +dependencies = [ + "objc2 0.6.3", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "raw-window-handle", + "windows-sys 0.60.2", + "windows-version", +] + [[package]] name = "windows" version = "0.52.0" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index c9b54cf..a46f361 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -43,7 +43,7 @@ futures-util = "0.3.30" tauri = { version = "2.9.2", features = [ "macos-private-api", "tray-icon" ] } -window-vibrancy = "0.6.0" +window-vibrancy = "0.7.1" tauri-plugin-process = "2.3.1" tauri-plugin-fs = "2.4.4" tauri-plugin-dialog = "2.4.2" @@ -64,6 +64,7 @@ dirs = "6.0.0" tokio = { version = "1.40", features = ["process"] } gfxinfo = "0.1.2" url = "2.5" +md5 = "0.7.0" [target.'cfg(windows)'.dependencies] # Windows Only winreg = "0.55.0" diff --git a/src-tauri/resources/csda.exe b/src-tauri/resources/csda.exe index 5c1a7b3..478bd09 100644 Binary files a/src-tauri/resources/csda.exe and b/src-tauri/resources/csda.exe differ diff --git a/src/store/tool.ts b/src/store/tool.ts index ac4fa60..98901bb 100644 --- a/src/store/tool.ts +++ b/src/store/tool.ts @@ -4,7 +4,6 @@ import { DEFAULT_STORE_CONFIG } from "./config" import { emit } from "@tauri-apps/api/event" import { invoke } from "@tauri-apps/api/core" import VideoSetting from "@/components/cstb/VideoSetting" -import { useSteamStore } from "./steam" export interface LaunchOption { option: string @@ -117,9 +116,9 @@ export const VideoSettingTemplate = { const defaultValue = { launchOptions: [ - { option: "-novid -high -freq 144 -fullscreen", name: "游戏" }, - { option: "-novid -high -w 1920 -h 1080 -freq 144 -sw -noborder", name: "录像" }, - { option: "-novid -high -freq 144 -fullscreen -allow_third_party_software", name: "测试" }, + { option: "-novid -high -freq 240 -coop_fullscreen -allow_third_party_software", name: "游戏" }, + { option: "-novid -high -w 1920 -h 1080 -freq 240 -sw -noborder -allow_third_party_software", name: "录像" }, + { option: "-novid -high -freq 240 -fullscreen -allow_third_party_software", name: "测试" }, ] as LaunchOption[], launchIndex: 0, powerPlan: 0,