diff --git a/README.md b/README.md index 186db29..bfcb5d8 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ ## 词库下载 -[GitHub 下载](/src-tauri/data.db)、[阿里云盘](https://www.aliyundrive.com/s/StTs9ojDAEF)、[蓝揍云](https://shadiao.lanzouw.com/b0116bgub) `密码hck1` 、 [诚通网盘](https://url08.ctfile.com/d/14688008-46477369-3732e0) `密码9919` +[GitHub 下载](/src-tauri/resources/data.db)、[阿里云盘](https://www.aliyundrive.com/s/StTs9ojDAEF)、[蓝揍云](https://shadiao.lanzouw.com/b0116bgub) `密码hck1` 、 [诚通网盘](https://url08.ctfile.com/d/14688008-46477369-3732e0) `密码9919` 在线文档:[Notion文档](https://dians.notion.site/d865fac077f1430f9510d020f8713c8e)、[口吐芬芳(谷歌文档)](https://docs.google.com/document/d/1SskgYtDpYL6P_4qmX2A1ndBl8MY5NeDcBaYPxS-yxIo/edit?usp=sharing) 、[火力全开(谷歌文档)](https://docs.google.com/document/d/14YG9qaNDZk275av-Iss6B6YY-eDTdkS5w_my3f7349A/edit?usp=sharing) diff --git a/src-tauri/resources/Licence.txt b/src-tauri/resources/Licence.txt new file mode 100644 index 0000000..e38a625 --- /dev/null +++ b/src-tauri/resources/Licence.txt @@ -0,0 +1,7 @@ +Copyright (c) 2025 Zihlu Wang + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/src-tauri/data.db b/src-tauri/resources/data.db similarity index 100% rename from src-tauri/data.db rename to src-tauri/resources/data.db diff --git a/src-tauri/src/database/mod.rs b/src-tauri/src/database/mod.rs index 2be90ca..f7c7005 100644 --- a/src-tauri/src/database/mod.rs +++ b/src-tauri/src/database/mod.rs @@ -30,7 +30,7 @@ impl Database { fn get_bundled_database_path(app_handle: &tauri::AppHandle) -> Result { let resource_path = app_handle .path() - .resolve("data.db", tauri::path::BaseDirectory::Resource)?; + .resolve("../../resources/data.db", tauri::path::BaseDirectory::Resource)?; println!("Database path: {:?}", resource_path); Ok(resource_path) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index c8a13c1..45129d2 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,6 +1,6 @@ { "$schema": "https://schema.tauri.app/config/2", - "productName": "zuanbot", + "productName": "Zuanbot", "version": "0.2.0", "identifier": "io.github.zihluwang.zuanbot", "build": { @@ -39,7 +39,7 @@ } }, "license": "MIT", - "licenseFile": "../LICENSE", + "licenseFile": "./resources/Licence.txt", "copyright": "Data Collected by @cndiandian, Developed by @zihluwang.", "icon": [ "icons/32x32.png", @@ -49,7 +49,7 @@ "icons/icon.ico" ], "resources": [ - "./data.db" + "./resources/data.db" ] } }