Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 4.47 KB

03-template-generator.md

File metadata and controls

49 lines (37 loc) · 4.47 KB

Platform Template Generation

New platforms are always welcomed with open arms! If you'd like to add your platform's support, this article will guide you through the process.

What you'll need

The XRTK uses a template repository to quickly add new platform support. You'll need to either clone this or, if you're a contributor to the XRTK team directly, you can create a new repository using this as a template.

Getting Started

  1. Create a new repository on Github using the template repository: Create New Repository New Repository Settings

  2. Clone the new Repository Clone New RepositoryClone Local Repository

  3. Navigate to the root of the new repository and run InitializeTempalte.ps1 using the command line Root Project Folder

  4. Type the name of your new project and press Enter Run InitiazeTempalte

  5. Stage, Commit, and Push the updated files directly to the new master branch origin Commit Files

  6. Create the development branch and push it to the origin Development Branch

    This branch should be at the same checkout as your master branch Development Checkout

  7. Open the new project in Unity and verify the project is setup correctly

  8. Create a new branch and push the updated changes to the meta files and generated links Meta File Branch Commit

  9. Back in GitHub, navigate to the project's settings

    • Update the following features:Disabled Features Merge Button
  10. Update the default branch to development Default Branch

  11. Add branch protection rules to master, development, and features/* Branch Protection Rules

    Note: The required status checks will not show until the pipeline has ran at least once. You'll need to come back and enable this once the pipeline is setup and the initial PR is opened.

    Note: The features/* rule will have have an additional setting Allow deletions so that they can be removed after the PR is compelted.

  12. Create a new Pipeline in Azure Devops Create new pipeline

    Note: This step requires an admin to the XRTK to complete. If you're using the project template in your own devops envirionment then the steps are the same.

  13. Select the GitHub repository in the pipeline wizard

  14. Save the pipeline

  15. Edit the pipeline and update the name and triggers

  16. Save the pipeline, but DO NOT RUN!

  17. Open a pull request in your new GitHub repository for the meta file changes

    Note: You should see status checks start once Pull Request is opened

    Note: Once the status checks have ran at least once, you can go back to your branch protection rules and add the check


If there is anything not mentioned in this document or you simply want to know more, raise an RFI (Request for Information) request here.