chore: Add batch scripts for build, deployment, and configuration
- Remove *.bat from .gitignore to track build and utility scripts - Add build.bat for automated PyInstaller packaging with dependency checks - Add run_gui.bat for launching the GUI application with error handling - Add 启动工具.bat interactive menu for accessing all project tools and operations - Add 修复并重新打包.bat comprehensive build script with COM component fixes - Add 配置API密钥.bat utility for configuring API keys in config.json - Enable version control of batch scripts for easier distribution and maintenance
This commit is contained in:
67
build.bat
Normal file
67
build.bat
Normal file
@@ -0,0 +1,67 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
echo ========================================
|
||||
echo 微信岗位提取工具 - 打包脚本
|
||||
echo ========================================
|
||||
echo.
|
||||
|
||||
echo 检查依赖...
|
||||
pip show pyinstaller >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo [错误] PyInstaller 未安装
|
||||
echo 正在安装 PyInstaller...
|
||||
pip install pyinstaller
|
||||
if errorlevel 1 (
|
||||
echo [错误] 安装失败,请手动运行: pip install pyinstaller
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
)
|
||||
|
||||
pip show pywin32 >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo [警告] pywin32 未安装
|
||||
echo 正在安装 pywin32...
|
||||
pip install pywin32
|
||||
if errorlevel 1 (
|
||||
echo [错误] 安装失败,请手动运行: pip install pywin32
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
)
|
||||
|
||||
echo [OK] 依赖已安装
|
||||
echo.
|
||||
|
||||
echo 清理旧文件...
|
||||
if exist build rmdir /s /q build
|
||||
if exist dist rmdir /s /q dist
|
||||
if exist "微信岗位提取工具.spec" del "微信岗位提取工具.spec"
|
||||
echo [OK] 清理完成
|
||||
echo.
|
||||
|
||||
echo 开始打包...
|
||||
pyinstaller build_exe.spec
|
||||
|
||||
if errorlevel 1 (
|
||||
echo.
|
||||
echo [错误] 打包失败
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ========================================
|
||||
echo [成功] 打包完成!
|
||||
echo ========================================
|
||||
echo.
|
||||
echo 可执行文件位置: dist\微信岗位提取工具.exe
|
||||
echo.
|
||||
echo 使用说明:
|
||||
echo 1. 将 dist\微信岗位提取工具.exe 复制到任意位置
|
||||
echo 2. 确保微信 3.9 已登录
|
||||
echo 3. 双击运行程序
|
||||
echo 4. 配置目标群组和API密钥
|
||||
echo 5. 点击"开始任务"开始监听
|
||||
echo.
|
||||
pause
|
||||
Reference in New Issue
Block a user