Skip to content

Commit

Permalink
Add a script to build the player for all three platforms in one go
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jul 22, 2019
1 parent 6fa773f commit f84da9c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

EDITOR="$HOME/Unity/Hub/Editor/2019.1.10f1/Editor/Unity"
BUILD_DIR="/tmp/build-unity"

rm -rf "$BUILD_DIR"

mkdir -p "$BUILD_DIR/Linux"
mkdir -p "$BUILD_DIR/macOS"
mkdir -p "$BUILD_DIR/Windows"

"$EDITOR" -buildLinuxUniversalPlayer "$BUILD_DIR/Linux/SEGMent" -projectPath "$PWD" -batchmode -quit
"$EDITOR" -buildOSXUniversalPlayer "$BUILD_DIR/macOS/SEGMent" -projectPath "$PWD" -batchmode -quit
"$EDITOR" -buildWindows64Player "$BUILD_DIR/Windows/SEGMent" -projectPath "$PWD" -batchmode -quit

0 comments on commit f84da9c

Please sign in to comment.