xxx
This commit is contained in:
@@ -58,9 +58,15 @@ del /s /q *.pyc >nul 2>&1
|
||||
del /s /q *.pyo >nul 2>&1
|
||||
|
||||
:: 清理旧的打包文件
|
||||
echo 清理旧文件...
|
||||
if exist "build" rd /s /q "build"
|
||||
:: 保留当前版本的 .spec 文件
|
||||
set CURRENT_SPEC=dist\听泉cursor助手_test.spec
|
||||
if exist "!CURRENT_SPEC!" (
|
||||
move "!CURRENT_SPEC!" "!CURRENT_SPEC!.bak"
|
||||
)
|
||||
if exist "*.spec" del /f /q "*.spec"
|
||||
if exist "!CURRENT_SPEC!.bak" (
|
||||
move "!CURRENT_SPEC!.bak" "!CURRENT_SPEC!"
|
||||
)
|
||||
|
||||
:: 使用优化选项进行打包
|
||||
echo 开始打包...
|
||||
|
||||
Reference in New Issue
Block a user