浏览代码

Merge pull request #226 from Unity-Technologies/build/automation

Build automation
/main
GitHub 7 年前
当前提交
dbef85a4
共有 3 个文件被更改,包括 30 次插入0 次删除
  1. 2
      .gitignore
  2. 3
      MaterialGraphProject/Assets/UnityShaderEditor/.npmignore
  3. 25
      build.py

2
.gitignore


artifacts/**
build/**
MaterialGraphProject/.vs
MaterialGraphProject/.vscode
MaterialGraphProject/Library

3
MaterialGraphProject/Assets/UnityShaderEditor/.npmignore


artifacts/**
build/**
.npmignore

25
build.py


#!/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."
正在加载...
取消
保存