-
Notifications
You must be signed in to change notification settings - Fork 74
/
99_应用打包.bat
25 lines (19 loc) · 900 Bytes
/
99_应用打包.bat
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
@echo off
@REM 设置工作目录
set ROOT=%~dp0
@REM 清理环境
powershell -Command "Remove-Item -Path 'dist' -Recurse -Force -ErrorAction SilentlyContinue"
powershell -Command "Remove-Item -Path 'build' -Recurse -Force -ErrorAction SilentlyContinue"
powershell -Command "Remove-Item -Path 'AiNiee.spec' -Recurse -Force -ErrorAction SilentlyContinue"
@REM 更新环境
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
python -m pip install -r requirements.txt
python -m pip cache purge
@REM 打包
python .\Tools\pyinstall.py
@REM 复制资源文件
powershell -Command "Copy-Item -Path 'Resource' -Destination 'dist\Resource' -Recurse -Force"
powershell -Command "Copy-Item -Path 'StevExtraction' -Destination 'dist\StevExtraction' -Recurse -Force"
powershell -Command "Copy-Item -Path 'Plugin_Scripts' -Destination 'dist\Plugin_Scripts' -Recurse -Force"
pause