feat(core): 添加隐私协议管理和关于菜单功能

- 在 Main.py 中初始化隐私协议管理器,并在程序启动前显示隐私协议对话框
- 在 core/__init__.py 中添加 PrivacyManager 的引用
- 在 ui_manager.py 中实现关于菜单和隐私协议相关功能,包括:
  - 创建关于按钮和菜单
  - 添加隐私协议子菜单
  - 实现撤回隐私协议同意并重启软件的功能
  - 优化菜单样式和字体加载
This commit is contained in:
hyb-oyqq
2025-07-31 10:59:42 +08:00
parent c837370470
commit cbfe0d7ff6
6 changed files with 618 additions and 62 deletions

View File

@@ -0,0 +1,46 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# 隐私协议的缩略版内容
PRIVACY_POLICY_BRIEF = """
# FRAISEMOE2-Installer 隐私政策摘要
本应用在运行过程中会收集和处理以下信息:
## 收集的信息
- 系统信息:操作系统版本、程序版本号
- 网络信息IP 地址(Cloudflare 加速时)、域名解析、下载统计
- 文件信息:游戏安装路径、文件哈希值
## 系统修改
- 使用 Cloudflare 加速时会临时修改系统 hosts 文件
- 修改前会自动备份,程序退出时自动恢复
## 第三方服务
- Cloudflare 服务:用于测试和优化下载速度
- 云端配置服务:获取配置信息和下载链接
完整的隐私政策可在程序中访问github仓库查看。
"""
# 隐私协议的英文版缩略版内容
PRIVACY_POLICY_BRIEF_EN = """
# FRAISEMOE2-Installer Privacy Policy Summary
This application collects and processes the following information:
## Information Collected
- System info: OS version, application version
- Network info: IP address (for Cloudflare acceleration), DNS resolution, download statistics
- File info: Game installation paths, file hash values
## System Modifications
- Temporarily modifies system hosts file when using Cloudflare acceleration
- Automatically backs up before modification and restores upon exit
## Third-party Services
- Cloudflare services: Used for testing and optimizing download speeds
- Cloud configuration services: For obtaining configuration information and download links
The complete privacy policy can be found in the github repository of the program.
"""