Skip to content

Deployment

Reko Kälkäjä edited this page Sep 17, 2019 · 2 revisions

Overview

The workstations we currently possess do not necessarily have the power to run a full-fledged 3D VR game. Therefore the game is built and deployed to a dedicated test machine. The deployment process needs to be lean, painless and easy to use and that is where the deployment scripts come in.

Setup

The deployment process requires a few external tools to work. The Google Drive CLI tool gdrive and zip for Windows is included in the repository.

  • Install 3rd-party tools found in Deploy/3rd-Party (link)
    • The contents of zip/ should be placed in /usr/bin/ (C:\Program Files\Git\usr\bin on Windows)
    • The contents of gdrive/ should be placed in /usr/bin/ (C:\Program Files\Git\usr\bin on Windows)
      • Run command gdrive about and go to the provided url in your browser
      • Log in as farmasia.vr and copy the provided code
      • Paste the code to the command prompt and press enter
  • Modify the configuration file
    • UNITY_PATH: The installation path e.g. /c/Program Files/Unity/Hub/Editor/${UNITY_VERSION}/Editor/Unity.exe

How-to instructions

NOTE: Unity has to be closed before attemping to make a build from the command-line.

Run on local machine:

$ cd Deploy
$ ./build.sh
$ ./upload.sh

Run on test machine:

$ cd Deploy
$ ./download.sh
Clone this wiki locally