Some checks are pending
Docker Image CI / build-and-push-image (push) Waiting to run
21 lines
589 B
Batchfile
21 lines
589 B
Batchfile
@echo off
|
|
REM Windows 打包脚本
|
|
|
|
echo === 构建平台: Windows ===
|
|
|
|
REM 安装打包依赖
|
|
pip install pyinstaller --quiet
|
|
|
|
REM 执行打包
|
|
pyinstaller codex_register.spec --clean --noconfirm
|
|
|
|
IF EXIST dist\codex-register.exe (
|
|
FOR /F "tokens=*" %%i IN ('powershell -Command "[System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture"') DO SET ARCH=%%i
|
|
SET OUTPUT=dist\codex-register-windows-%ARCH%.exe
|
|
MOVE dist\codex-register.exe "%OUTPUT%"
|
|
echo === 构建完成: %OUTPUT% ===
|
|
) ELSE (
|
|
echo === 构建失败,未找到输出文件 ===
|
|
exit /b 1
|
|
)
|