🚚 tauri-genshin → Teyvat Guide

This commit is contained in:
BTMuli
2023-09-15 17:19:33 +08:00
parent f907c798bc
commit a7dd069930
9 changed files with 33 additions and 54 deletions

43
src-tauri/Cargo.lock generated
View File

@@ -2,6 +2,17 @@
# It is not intended for manual editing.
version = 3
[[package]]
name = "TeyvatGuide"
version = "0.3.1"
dependencies = [
"serde",
"serde_json",
"tauri",
"tauri-build",
"tauri-plugin-sql",
]
[[package]]
name = "addr2line"
version = "0.21.0"
@@ -2069,12 +2080,6 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
[[package]]
name = "minisign-verify"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "933dca44d65cdd53b355d0b73d380a2ff5da71f87f036053188bf1eab6a19881"
[[package]]
name = "miniz_oxide"
version = "0.7.1"
@@ -3964,7 +3969,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7fbe522898e35407a8e60dc3870f7579fea2fc262a6a6072eccdd37ae1e1d91e"
dependencies = [
"anyhow",
"base64 0.21.3",
"bytes",
"cocoa",
"dirs-next",
@@ -3978,7 +3982,6 @@ dependencies = [
"heck 0.4.1",
"http",
"ignore",
"minisign-verify",
"notify-rust",
"objc",
"once_cell",
@@ -4006,14 +4009,12 @@ dependencies = [
"tauri-utils",
"tempfile",
"thiserror",
"time",
"tokio",
"url",
"uuid",
"webkit2gtk",
"webview2-com",
"windows 0.39.0",
"zip",
]
[[package]]
@@ -4059,17 +4060,6 @@ dependencies = [
"walkdir",
]
[[package]]
name = "tauri-genshin"
version = "0.3.1"
dependencies = [
"serde",
"serde_json",
"tauri",
"tauri-build",
"tauri-plugin-sql",
]
[[package]]
name = "tauri-macros"
version = "1.4.0"
@@ -5314,17 +5304,6 @@ version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2a0956f1ba7c7909bfb66c2e9e4124ab6f6482560f6628b5aaeba39207c9aad9"
[[package]]
name = "zip"
version = "0.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "760394e246e4c28189f19d488c058bf16f564016aefac5d32bb1f3b51d5e9261"
dependencies = [
"byteorder",
"crc32fast",
"crossbeam-utils",
]
[[package]]
name = "zvariant"
version = "3.15.0"

View File

@@ -1,10 +1,10 @@
[package]
name = "tauri-genshin"
name = "TeyvatGuide"
version = "0.3.1"
description = "A Genshin Tool build with Tauri"
authors = ["BTMuli<bt-muli@outlook.com>"]
license = "MIT"
repository = "https://github.com/BTMuli/Tauri.Genshin"
repository = "https://github.com/BTMuli/TeyvatGuide"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -13,7 +13,7 @@ edition = "2021"
tauri-build = { version = "1.4", features = [] }
[dependencies]
tauri = { version = "1.4", features = ["api-all", "updater"] }
tauri = { version = "1.4", features = ["api-all"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

View File

@@ -7,7 +7,7 @@ fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_sql::Builder::default().build())
.setup(|_app| {
let _window = _app.get_window("tauri-genshin").unwrap();
let _window = _app.get_window("TeyvatGuide").unwrap();
#[cfg(debug_assertions)] // only include this code on debug builds
_window.open_devtools(); // open the devtools on startup
Ok(())

View File

@@ -7,7 +7,7 @@
"withGlobalTauri": true
},
"package": {
"productName": "tauri-genshin",
"productName": "TeyvatGuide",
"version": "0.3.1"
},
"tauri": {
@@ -47,7 +47,7 @@
"bundle": {
"active": true,
"icon": ["icons/icon.png", "icons/icon.ico"],
"identifier": "tauri-genshin",
"identifier": "TeyvatGuide",
"targets": ["msi", "updater"],
"windows": {
"wix": {
@@ -59,11 +59,11 @@
"csp": null
},
"updater": {
"active": true,
"active": false,
"dialog": true,
"endpoints": [
"https://raw.fastgit.org/BTMuli/Tauri.Genshin/master/latest.json",
"https://raw.kgithub.com/BTMuli/Tauri.Genshin/master/latest.json"
"https://raw.fastgit.org/BTMuli/TeyvatGuide/master/latest.json",
"https://raw.kgithub.com/BTMuli/TeyvatGuide/master/latest.json"
],
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDg2MkVGRjMxQzJDQzFBNTkKUldSWkdzekNNZjh1aHJGRXBEOGtwbUxLaU1wdWNVeUJaeGhoV2ZlZ3VlYmQ0b2tYZWQwODdnTHkK"
},
@@ -71,8 +71,8 @@
{
"fullscreen": false,
"resizable": true,
"title": "Tauri.Genshin",
"label": "tauri-genshin",
"title": "Teyvat Guide",
"label": "TeyvatGuide",
"width": 1600,
"height": 900,
"center": true,