您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
25 行
1.0 KiB
25 行
1.0 KiB
#!/usr/bin/python -B
|
|
import os
|
|
import logging
|
|
|
|
def packages_list():
|
|
return [
|
|
("com.unity.shadergraph", os.path.join("MaterialGraphProject", "Assets", "UnityShaderEditor"))
|
|
]
|
|
|
|
# Prepare an empty project for editor tests
|
|
def prepare_editor_test_project(repo_path, project_path, logger):
|
|
import unity_package_build
|
|
unity_package_build.copy_path_to_project(os.path.join("MaterialGraphProject", "Assets", "NewNodes"), repo_path, project_path, logger)
|
|
unity_package_build.copy_path_to_project(os.path.join("MaterialGraphProject", "Assets", "TestAssets"), repo_path, project_path, logger)
|
|
unity_package_build.copy_path_to_project(os.path.join("MaterialGraphProject", "Assets", "UnityShaderEditor", "Editor", "Testing"), repo_path, project_path, logger)
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
sys.path.insert(0, os.path.abspath(os.path.join("..", "automation-tools")))
|
|
|
|
try:
|
|
import unity_package_build
|
|
build_log = unity_package_build.setup()
|
|
except ImportError:
|
|
print "No Automation Tools found."
|