Files
wechat_crawler/启动工具.bat
李顺东 e28e91f1d5 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
2026-02-11 16:32:01 +08:00

111 lines
2.4 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 >nul
title 微信岗位提取工具 - 启动器
color 0A
:menu
cls
echo.
echo ╔════════════════════════════════════════╗
echo ║ 微信群岗位信息提取工具 v1.0 ║
echo ╚════════════════════════════════════════╝
echo.
echo 请选择操作:
echo.
echo [1] 启动 GUI 版本(推荐)
echo [2] 启动命令行版本
echo [3] 测试 API 连接
echo [4] 查看已提取的岗位数据
echo [5] 打包成 EXE 文件
echo [6] 安装/更新依赖
echo [0] 退出
echo.
echo ════════════════════════════════════════
set /p choice=请输入选项 (0-6):
if "%choice%"=="1" goto gui
if "%choice%"=="2" goto cli
if "%choice%"=="3" goto test
if "%choice%"=="4" goto view
if "%choice%"=="5" goto build
if "%choice%"=="6" goto install
if "%choice%"=="0" goto end
echo 无效选项,请重新选择
timeout /t 2 >nul
goto menu
:gui
cls
echo 正在启动 GUI 版本...
python job_extractor_gui.py
if errorlevel 1 (
echo.
echo [错误] 启动失败,可能缺少依赖
echo 请选择菜单中的选项 6 安装依赖
pause
)
goto menu
:cli
cls
echo 正在启动命令行版本...
echo 按 Ctrl+C 可停止程序
echo.
python job_extractor.py
pause
goto menu
:test
cls
echo 正在测试 API 连接...
echo.
python test_api.py
pause
goto menu
:view
cls
echo 正在查看岗位数据...
echo.
python view_jobs.py
pause
goto menu
:build
cls
echo 正在打包成 EXE...
echo 这可能需要几分钟时间,请耐心等待...
echo.
call build.bat
pause
goto menu
:install
cls
echo 正在安装/更新依赖...
echo.
echo [1/4] 安装 wxauto...
pip install -e .
echo.
echo [2/4] 安装 requests...
pip install requests
echo.
echo [3/4] 安装 pywin32COM组件支持...
pip install pywin32
echo.
echo [4/4] 安装 pyinstaller用于打包...
pip install pyinstaller
echo.
echo ════════════════════════════════════════
echo 依赖安装完成!
echo ════════════════════════════════════════
pause
goto menu
:end
cls
echo.
echo 感谢使用!再见~
timeout /t 2 >nul
exit