上传文件至「/」
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
echo ============================================
|
||||
echo DUFE Net Auto Login - One Click Build
|
||||
echo ============================================
|
||||
|
||||
if not exist ".venv\Scripts\python.exe" (
|
||||
echo [1/3] Creating virtual environment...
|
||||
python -m venv .venv
|
||||
echo [2/3] Installing dependencies...
|
||||
.venv\Scripts\pip install requests pillow pytesseract pyinstaller -q
|
||||
) else (
|
||||
echo [1/3] Virtual environment already exists
|
||||
echo [2/3] Checking dependency updates...
|
||||
.venv\Scripts\pip install requests pillow pytesseract pyinstaller -q --upgrade
|
||||
)
|
||||
|
||||
echo [3/3] Building EXE...
|
||||
.venv\Scripts\pyinstaller --onefile --name "dufeNetAutoLogin" --console --clean --noconfirm login.py
|
||||
|
||||
if exist "dist\dufeNetAutoLogin.exe" (
|
||||
if not exist "dist\config.json" copy config.json dist\ >nul
|
||||
echo.
|
||||
echo Build success: dist\dufeNetAutoLogin.exe
|
||||
echo Distribute dufeNetAutoLogin.exe and config.json together
|
||||
) else (
|
||||
echo Build failed!
|
||||
)
|
||||
pause
|
||||
Reference in New Issue
Block a user