Skip to content

Commit e0cb11f

Browse files
committed
fix: add proj regen
1 parent 39bc78d commit e0cb11f

1 file changed

Lines changed: 18 additions & 17 deletions

File tree

UBS.py

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,24 @@ def CreateTask(self,Args):
183183
OneUECommand.RUNUECMD_Cook()
184184

185185

186+
if Args.Clean == True:
187+
path_project = Path(Args.uprojectpath).parent
188+
## Path \ or not
189+
190+
## [TBD] clean xcproject
191+
UnrealProjectManager.CleanProject(path_project)
192+
193+
if Args.GenProject == True:
194+
path_uproject_file = Path(Args.uprojectpath)
195+
## [TBD] some needs \ and some doesn't need \
196+
UnrealProjectManager.GenerateProject(host_platform,path_uproject_file)
197+
198+
if Args.GenIOSProject == True:
199+
path_uproject_file = Path(Args.uprojectpath)
200+
## [TBD] some needs \ and some doesn't need \
201+
UnrealProjectManager.GenerateIOSProject(host_platform,path_uproject_file)
202+
203+
186204
if Args.BuildPlugin == True:
187205

188206
# [TBD] Modify
@@ -217,23 +235,6 @@ def CreateTask(self,Args):
217235
PrintErr("Invalid TargetPlatform Creation")
218236

219237

220-
if Args.Clean == True:
221-
path_project = Path(Args.uprojectpath).parent
222-
## Path \ or not
223-
224-
## [TBD] clean xcproject
225-
UnrealProjectManager.CleanProject(path_project)
226-
227-
if Args.GenProject == True:
228-
path_uproject_file = Path(Args.uprojectpath)
229-
## [TBD] some needs \ and some doesn't need \
230-
UnrealProjectManager.GenerateProject(host_platform,path_uproject_file)
231-
232-
if Args.GenIOSProject == True:
233-
path_uproject_file = Path(Args.uprojectpath)
234-
## [TBD] some needs \ and some doesn't need \
235-
UnrealProjectManager.GenerateIOSProject(host_platform,path_uproject_file)
236-
237238
bTestCommand = False
238239
if bTestCommand:
239240
if self.GetHostPlatform() == SystemHelper.Mac_HostName():

0 commit comments

Comments
 (0)