-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
33 lines (29 loc) · 798 Bytes
/
Copy pathbuild.bat
File metadata and controls
33 lines (29 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
chcp 65001 >nul
echo ========================================
echo 校园网登录工具 - 打包脚本
echo ========================================
echo.
REM 检查 PyInstaller
python -c "import PyInstaller" 2>nul
if errorlevel 1 (
echo [1/3] 安装 PyInstaller...
pip install pyinstaller
) else (
echo [1/3] PyInstaller 已安装
)
echo.
echo [2/3] 打包客户端...
pyinstaller --onefile --windowed --name CampusNetLogin --icon=NONE app.py
echo.
echo [3/3] 打包服务器...
pyinstaller --onefile --console --name ConfirmServer confirm_server.py
echo.
echo ========================================
echo 打包完成!
echo ========================================
echo.
echo 客户端: dist\CampusNetLogin.exe
echo 服务器: dist\ConfirmServer.exe
echo.
pause