-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test.py
33 lines (24 loc) · 958 Bytes
/
Test.py
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
from CommandBase.Command import *
from Utility.UnrealProjectManager import *
# RUNCMD(["dir", "/b"]) # 序列参数
# RUNCMD("exit 1") # 字符串参数
import argparse
# ArgParser = argparse.ArgumentParser(description="Test argparse")
# ArgParser.add_argument("-targetplatform", default="Win64")
# ArgParser.add_argument("-agorasdk", default="4.2.1")
# Args = ArgParser.parse_args()
# print(Args.targetplatform)
# print(Args.agorasdk)
# command = (
# r"D:\GameEngine\UE_5.2\Engine\Build\BatchFiles\RunUAT.bat"
# r" BuildCookRun -project=C:\Users\admin\Documents\SVNRepo\ClientRepo\Trunk\UATTestProject\AgoraExample.uproject"
# r" -targetplatform=Win64"
# r" -Build"
# r" -Cook"
# r" -Stage"
# r" -archive"
# r" -package"
# )
# RUNCMD(command)
ProjectRootPath = r"C:\Users\admin\Documents\SVNRepo\ClientRepo\Trunk\UATTestProject"
UnrealProjectManager.CleanProject(ProjectRootPath)