Skip to content

Conversation

@ntbowen
Copy link

@ntbowen ntbowen commented Nov 28, 2025

Added functionality to select supported Cloudflare HTTPS ports and custom speedtest URLs. Updated user input handling to include selected ports and speedtest URL in various modes.

ntbowen and others added 25 commits November 28, 2025 11:32
Added functionality to select supported Cloudflare HTTPS ports and custom speedtest URLs. Updated user input handling to include selected ports and speedtest URL in various modes.
resources for GUI
Added instructions for running the program in graphical mode.
- 新增 cloudflare_speedtest_gui.py: 基于 Flet 的跨平台 GUI
- 新增 requirements-gui.txt: GUI 依赖包
- 新增 icon/icon.png: 应用图标
- 新增 GitHub Actions 工作流: 支持 Linux/Windows/macOS 自动打包
- 支持输出格式: AppImage, DEB, EXE, DMG
- 添加 libfuse2 用于 AppImage 构建
- 添加 pillow 用于图标格式转换 (PNG -> ICO/ICNS)
支持以下平台和格式:
- RPM: x86_64, aarch64
- DEB: amd64, arm64
- AppImage: x86_64, aarch64
- DMG: Intel, Apple Silicon
- EXE: x64, arm64

所有产物不压缩,直接输出原始文件
使用 --appimage-extract 解压 appimagetool 后直接运行,避免 FUSE 和多架构检测问题
- 使用 sips + iconutil 生成正确的 .icns 图标
- 将图标复制到 .app bundle 的 Resources 目录
- 确保 Dock 和程序窗口显示一致的图标
- ARM64: 使用 export ARCH 和 --no-appstream 修复多架构检测
- macOS: 修改 Info.plist 设置正确的 CFBundleName 和 CFBundleDisplayName
- macOS: 替换所有 .icns 图标文件确保 Dock 显示正确
- ARM64 使用 linuxdeploy 构建 AppImage
- 修复 desktop 文件路径引用
- 添加 pyproject.toml 配置文件
- macOS 构建使用 flet build macos 生成原生应用
- 添加 Flutter SDK 安装步骤
- 恢复 Flet 依赖
- Linux x64/arm64: 使用 flet build linux
- Windows x64/arm64: 使用 flet build windows
- macOS Intel/ARM: 使用 flet build macos
- 添加 Flutter SDK 安装步骤
- 预期体积减少 60-70%,启动速度提升 2-5 倍
- 添加 assets/icon.png 用于自定义图标
- 添加详细日志输出 (-v)
- 动态查找构建输出文件
- 修复 Windows 路径问题
- 添加 get_app_data_dir() 函数获取跨平台应用数据目录
- macOS: ~/Library/Application Support/yx-tools
- Windows: %APPDATA%/yx-tools
- Linux: ~/.local/share/yx-tools
- 下载的可执行文件存放到用户可写目录
- macOS: 使用 flet build(启动快,原生体验)
- Linux/Windows: 使用 flet pack(更稳定)
- 修复打包后权限问题,下载文件到用户数据目录
- 添加 get_exec_cmd() 辅助函数
- 当 exec_name 是绝对路径时不添加 ./ 前缀
- 修复 macOS 打包后 Permission denied 错误
Added graphical interface section with images and features.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant