Skip to content

Commit 752461c

Browse files
committed
removal of already existing dir
1 parent f50eaca commit 752461c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.yamato/project-builders/project-builders.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ build_{{ netcodeProject[0] }}_project:
5656
# Add BuilderScript.cs to the project so we can modify and build the project using Unity Editor.
5757
# This is a bit tricky step, notice that we also need to include proper assembly definition in order for those scripts to compile properly.
5858
# TODO: the asmdef file can be simplified
59+
- python -c "import os, shutil; d = 'C:/ClonedProject/{{ netcodeProject[1].projectPath }}/Assets/Scripts/Editor'; if os.path.exists(d): shutil.rmtree(d)" # --> Remove the directory if it exists to ensure we start with a clean slate
5960
- python -c "import os; os.makedirs('C:/ClonedProject/{{ netcodeProject[1].projectPath }}/Assets/Scripts/Editor', exist_ok=True)" # --> Create the directory if it doesn't exist
6061
- python -c "import shutil; shutil.copy('Tools/CI/scripts/BuildAutomation/Unity.ProjectBuild.Editor.asmdef', 'C:/ClonedProject/{{ netcodeProject[1].projectPath }}/Assets/Scripts/Editor/')" # --> Copy the asmdef file to the directory
6162
- python -c "import shutil; shutil.copy('Tools/CI/scripts/BuildAutomation/BuilderScripts.cs', 'C:/ClonedProject/{{ netcodeProject[1].projectPath }}/Assets/Scripts/Editor/')" # --> Copy the BuilderScripts.cs file to the directory (for build configuration setup)

0 commit comments

Comments
 (0)