This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import requests | |
import enlighten | |
import os.path | |
from os import path | |
from github import Github | |
from prettytable import PrettyTable | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export UNITY_VERSION=2019.1.12f1 | |
export [email protected] | |
export UNITY_PASSWORD=******** | |
export UNITY_CIPHER=change_me_to_anything_secure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export UNITY_VERSION=2019.1.12f1 | |
export [email protected] | |
export UNITY_PASSWORD=******** | |
export UNITY_CIPHER=change_me_to_anything_secure | |
export BUILD_TARGET=StandaloneWindows64; | |
export BUILD_NAME=projectname-; | |
export CIRCLE_BUILD_NUM=00; | |
export CIRCLE_USERNAME=localhost; | |
export CIRCLE_BRANCH=test; | |
./bin/build.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using System.Linq; | |
using System; | |
static class BuildCommand | |
{ | |
static string GetArgument (string name) | |
{ | |
string[] args = Environment.GetCommandLineArgs (); | |
for (int i = 0; i < args.Length; i++) { | |
if (args [i].Contains (name)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
set -x | |
echo "Building for $BUILD_TARGET" | |
export BUILD_PATH=./Builds/$CIRCLE_BRANCH/$CIRCLE_BUILD_NUM/$BUILD_TARGET/ | |
mkdir -p $BUILD_PATH | |
echo "Initialize manual license file..." | |
/opt/Unity/Editor/Unity \\ | |
-quit \\ | |
-batchmode \\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
set -x | |
mkdir -p /root/.cache/unity3d | |
mkdir -p /root/.local/share/unity3d/Unity/ | |
set +x | |
apt-get update && apt-get install -y pulseaudio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2.1 | |
orbs: | |
aws-s3: circleci/[email protected] | |
references: | |
docker_image: &docker_image | |
docker: | |
- image: gableroux/unity3d:2019.1.12f1 # unity3d.x.ulf-enc is fixed to this version | |
setup_unity_license_env_var: &setup_unity_license_env_var | |
command: | | |
openssl version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:GetBucketLocation", | |
"s3:ListAllMyBuckets" | |
], | |
"Resource": "*" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm \\ | |
--workdir "/root/project/.circleci/" \\ | |
--volume "$(pwd):/root/project" \\ | |
gableroux/unity3d:$UNITY_VERSION \\ | |
bash -c 'find -name "Unity*.ulf" -exec cp {} unity3d.x.ulf \\;' | |
docker run --rm \\ | |
--env UNITY_CIPHER \\ | |
--workdir "/root/project/.circleci/" \\ | |
--volume "$(pwd):/root/project" \\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /.circleci/; | |
docker run -it --rm \\ | |
--env UNITY_USERNAME \\ | |
--env UNITY_PASSWORD \\ | |
--env "TEST_PLATFORM=linux" \\ | |
--workdir "/root/project/.circleci/" \\ | |
--volume "$(pwd):/root/project" \\ | |
gableroux/unity3d:$UNITY_VERSION \\ | |
bash -c '/opt/Unity/Editor/Unity -quit -nographics -logFile /tmp/unity-createManualActivationFile.log -batchmode -createManualActivationFile -username "$UNITY_USERNAME" -password "$UNITY_PASSWORD"; find -name "Unity*" -exec mv {} unity3d.alf \\;' |