# 游铛铛客户端 ## 技术栈 - **语言**:Python 3.10+ - **UI框架**:PyQt6 - **浏览器**:Playwright + 内置Chrome - **加密**:cryptography (RSA) - **打包**:PyInstaller - **保护**:PyArmor + Nuitka ## 项目结构 ``` client/ ├── src/ # 源代码目录 │ ├── __init__.py │ ├── main.py # 程序入口 │ ├── config/ # 配置模块 │ │ ├── __init__.py │ │ ├── settings.py # 配置管理 │ │ └── constants.py # 常量定义 │ ├── ui/ # UI界面模块 │ │ ├── __init__.py │ │ ├── login_window.py # 登录窗口 │ │ ├── main_window.py # 主窗口 │ │ └── widgets/ # 自定义组件 │ ├── api/ # API接口模块 │ │ ├── __init__.py │ │ ├── client.py # API客户端 │ │ └── encrypt.py # 加密工具 │ ├── core/ # 核心功能模块 │ │ ├── __init__.py │ │ ├── machine.py # 机器码生成 │ │ ├── browser.py # 浏览器控制 │ │ └── steam.py # Steam集成 │ ├── utils/ # 工具模块 │ │ ├── __init__.py │ │ ├── logger.py # 日志工具 │ │ └── storage.py # 存储工具 │ └── resources/ # 资源文件 │ ├── icons/ # 图标 │ ├── images/ # 图片 │ └── styles/ # 样式文件 ├── requirements.txt # 依赖包 ├── .gitignore └── README.md ``` ## 安装依赖 ```bash pip install -r requirements.txt ``` ## 安装Playwright浏览器(首次运行需要) ```bash playwright install chromium ``` ## 运行 ```bash python src/main.py ``` ## 打包 ```bash # 使用PyInstaller打包 pyinstaller --onefile --windowed src/main.py ```