Files
qingjian/apps/settings/build.rs
T
yenharvey f325ddad78 feat(settings): 换掉旧设置程序,旧版留一个版本作回退
- macOS:设置程序作为独立 .app 装进 Qingjian.app/Contents/Applications,菜单「设置…」打开它,包里没有时退回旧版;原偏好设置改名「旧版设置…」
- Windows:qingjian-settings.exe 换成新程序(状态条齿轮、开始菜单「青简设置」),旧 WinUI 程序改名 qingjian-settings-legacy.exe,开始菜单「青简旧版设置」,互斥体与窗口标题分开以便同时开
- Linux:安装与预编译包带上 qingjian-settings 与应用菜单项
- 新程序:Windows 不弹控制台、嵌图标、只开一个;日志另写一份到输入法日志目录,按天留 7 天;随包数据按各平台安装布局找
- 测试 config_keys 离屏点遍每页控件,写了的键用输入法的 Config 读回核对;补上「英文模式也给候选」漏掉的 ⓘ
- ⓘ 点了打开官网文档对应的一段,测试核对锚点在 docs/user 里真有、行在那页上真有 ⓘ
- 用户文档按新的页重写设置一页,各处「偏好设置 → 通用」这类指路改成新页名;contributing「控件面原生」一条改为设置程序自绘
2026-10-12 10:07:26 +08:00

19 lines
620 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//! 在 Windows 上编时把青简图标嵌进 exe(开始菜单、任务栏、Alt+Tab 里显示的就是它)。
fn main() {
embed_icon();
}
/// 图标资源要 `rc.exe`(MSVC)编,只在 Windows 宿主上做;失败只警告,别让编译挂掉。
#[cfg(windows)]
fn embed_icon() {
const ICON: &str = "../windows/tsf/resources/qingjian.ico";
println!("cargo:rerun-if-changed={ICON}");
if let Err(error) = winresource::WindowsResource::new().set_icon(ICON).compile() {
println!("cargo:warning=嵌入设置程序图标失败: {error}");
}
}
#[cfg(not(windows))]
fn embed_icon() {}