-
Notifications
You must be signed in to change notification settings - Fork 433
Enhance port selection and speedtest URL handling #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ntbowen
wants to merge
25
commits into
byJoey:main
Choose a base branch
from
ntbowen:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.