社保机器人正式版.bat 1023 Bytes
@echo off

ping 127.0.0.1 -n 1 > nul
echo ...
echo ...
echo 开始打包Controlle

D:\developer\python\Scripts\pyinstaller.exe -Fc --hidden-import=pkg_resources --distpath=./sibot --icon=bot.ico D:\developer\Code\alone\sibot\sibot\controller\server.py  -n Controller

echo 打包Controlle结束


ping 127.0.0.1 -n 1 > nul
echo ...
echo ...
echo 开始打包Worker

D:\developer\python\Scripts\pyinstaller.exe -Fc --hidden-import=pkg_resources --distpath=./sibot --icon=bot.ico D:\developer\Code\alone\sibot\sibot\worker\server.py -n Worker

echo 打包Worker结束

ping 127.0.0.1 -n 1 > nul
echo ...
echo ...
echo 开始打包Bot

D:\developer\python\Scripts\pyinstaller.exe  -Fw  --hidden-import=pkg_resources --distpath=./sibot --icon=bot.ico D:\developer\Code\alone\sibot\sibot\watcher\server.py -n Bot

echo 打包Bot结束

echo ...
echo ...
echo ...
echo 开始删除编译临时文件...
rmdir /S /Q .\build
del /a /f /s .\Controller.spec
del /a /f /s .\Worker.spec
del /a /f /s .\Bot.spec
del /a /f /s .\BotClient.spec
echo 删除编译临时文件完成...