Skip to content

sabastianpeters/vfs-gulp-auto-builder

Repository files navigation

Unity Build Tool

Build tool for building Unity games with NaturalDocs documentation. The game must be hosted on a git repo (Github use case explained here). Builds are automatically compressed and uploaded to Google Drive after being built. This tool will only run on windows, but can build for Windows, OSX and Linux.

Table of Contents

Project Setup

GitHub Auth Setup

  • goto your github profile's settings page
  • goto developer settings
  • goto Personal Access Token
  • create a token with full repo and gist privelages
  • create file config.git.js in project root
  • add the following content:
    module.exports = {
        username: "YOUR USERNAME HERE",
        password: "YOUR PERSONAL ACCESS TOKEN HERE"
    };

Google Auth Setup

  • Goto your Google API Console Credentials Screen
  • choose to make a OAuth credentials with: Create Credentials > OAuth client ID
  • choose type Other (this is for installed applications, or this console test)
  • download the Client with Download JSON and name it credentials.json
  • place this file in the root of this project
  • npm run auth to authorize yourself

Natural Docs Setup

  • download the NaturalDocs zip
  • create a folder called bin in project root
  • unzip the folder so that NaturalDocs.exe is at the path .\bin\NaturalDocs\NaturalDocs.exe
  • from this point, the docs should be all setup
    • if not, init the docs with .\node_modules\.bin\gulp docs-init
  • you can customize your project's setting in .\natural-docs-config\Project.txt
  • link to full official guide

Task Scheduler Setup

0 1 2 3 4 5

^ NOTE: this image is incorrect.

  • Program/script: "cmd.exe"
  • Add arguments (optional): /c ".\node_modules\.bin\gulp full-unity-build"
  • Start In: path of the folder with the gulp script
    • ie. if a/b/c/gulpfile.js is the path to the gulpfile, put a/b/c in this field

This runs a new Command Prompt that will run our gulp build script

If building with unreal, do a "full-unreal-build" instead of unity

6

Example Output

0 1 2

About

A custom Gulp pipeline that builds Unity games and upload them to Google Drive & Itch.io

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •