Skip to content

Tags: ctkqiang/BBtool

Tags

v1.0.2

Toggle v1.0.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Create python-app.yml

v1.0.2d

Toggle v1.0.2d's commit message
ci: 更新Python测试版本至3.12并优化工作流程

简化测试矩阵,仅保留Python 3.12版本测试
移除冗余的环境变量PYTHON_VERSION
修复二进制文件拷贝命令以兼容不同构建输出

v1.0.2c

Toggle v1.0.2c's commit message
ci(workflow): 更新Python测试矩阵并设置最新版本

在GitHub Actions工作流中添加Python版本矩阵测试,包括3.10和最新版本
将默认Python版本设置为'latest'以保持最新兼容性

v1.0.2b

Toggle v1.0.2b's commit message
ci: 更新 Python 工作流中的 pip 安装命令

将 pip3 命令更新为 python -m pip 以确保兼容性,并限制 pip 版本以避免潜在问题

v1.0.2a

Toggle v1.0.2a's commit message
ci(workflow): 更新Python应用构建流程

使用pip3替代pip以确保兼容性
将直接调用pyinstaller改为使用build.py脚本

v1.0.1

Toggle v1.0.1's commit message
修复:Windows 平台执行命令时报 WinError 3 的问题

原因:在 Windows 下调用 subprocess.Popen 时指定了类 Unix 的 shell 路径(如 /bin/sh),导致系统找不到该路径抛出 [WinError 3] 错误。

解决方案:
- 判断当前平台是否为 Windows,若是则不传入 executable 参数,使用默认的 cmd.exe;
- 保留 macOS 和 Linux 的 shell 路径逻辑以兼容 zsh/sh;
- 确保所有命令在 Windows 下均可正常执行,提升兼容性和稳定性。

影响范围:
- run_command 方法的 shell 执行逻辑
- Windows 平台下 curl、nmap 等工具的调用

备注:
本次修复确保 GUI 工具在跨平台执行安全测试命令时行为一致,修复后 Windows 下不再抛出 WinError 3 错误。

参考: #4

v1.0

Toggle v1.0's commit message
docs: 更新README中的启动命令

将启动命令从 `python3 main.py` 更改为 `python3 run.py`,以反映实际使用的脚本文件名。#1