From 8e63340a275792be43b9ccb1441b8d70ced7b64a Mon Sep 17 00:00:00 2001 From: zihluwang Date: Tue, 29 Jul 2025 10:38:55 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加版权、作者信息,修改打包出的 Windows 安装包后缀 `en_US` 到 `zh_CN` --- README.md | 10 +++++++++- src-tauri/tauri.conf.json | 12 +++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 210fca6..d3e5a54 100644 --- a/README.md +++ b/README.md @@ -17,21 +17,29 @@ 下载对应操作系统的安装包,执行安装即可。 -> 由于作者目前 Rust 水平有限,无法去除打包后的 `en_US` Locale 后缀,但实际语言仍然为中文。 +包类型(文件后缀): + +- Windows: `x64.msi` +- macOS + - Intel: `x64.dmg` + - Apple Silicon: `aarch64.dmg` ## 什么原理 收集整理了N条骂人的句子,然后随机读取一条输出即可。 核心代码就一行: + ```sql SELECT * FROM `main` ORDER BY RANDOM() limit 1 ``` ## 词库都是怎么来的 + 最初来源于网络收集了一些,后来基本就都是各位用户的投稿了,投稿渠道现已关闭。 ## 写在最后 + 还有其他好玩的生成器,比如彩虹屁生成器、毒鸡汤、朋友圈文案等等,请访问 https://shadiao.app 体验。 同时也欢迎交流,可以扫码加微信,请备注 `github`,同时有**粉丝群**与**开发者群**,有兴趣可以私聊告知,会尽快拉你。 diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 4e6f278..08c63c0 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -23,7 +23,17 @@ }, "bundle": { "active": true, - "targets": "all", + "publisher": "Zihlu Wang", + "category": "Utility", + "targets": ["dmg", "msi"], + "windows": { + "wix": { + "language": "zh-CN" + } + }, + "license": "MIT", + "licenseFile": "../LICENSE", + "copyright": "Data Collected by @cndiandian, Developed by @zihluwang.", "icon": [ "icons/32x32.png", "icons/128x128.png",