Skip to content

Instantly share code, notes, and snippets.

View thelionx's full-sized avatar

Fadhil Noer Afif thelionx

  • Joyseed Gametribe
View GitHub Profile
/Applications/Unity/Unity.app/Contents/MacOS/Unity
\ -quit -batchmode
\ -logfile -
\ -executeMethod CoolProject.Builder.BuildProject
\ -outputPath <<your-output-path>>
\ -buildTarget Android
@thelionx
thelionx / executeMethod
Last active April 27, 2020 02:41
Execute custom method with 1 argument
/Applications/Unity/Unity.app/Contents/MacOS/Unity
\ -quit -batchmode
\ -logfile -
\ -executeMethod CoolProject.SomeClass.SomeMethod
\ -points 100
@thelionx
thelionx / batchmode
Last active April 24, 2020 09:35
Launching Unity via command line
/Applications/Unity/Unity.app/Contents/MacOS/Unity
\ -quit -batchmode
\ -serial SB-XXXX-XXXX-XXXX-XXXX-XXXX
\ -username 'JoeBloggs@example.com'
\ -password 'MyPassw0rd'
@thelionx
thelionx / Builder.cs
Last active April 27, 2020 02:16
Builds unity project to specific target and path.
namespace CoolProject
{
public static class Builder
{
public static void BuildProject(string path, BuildTarget buildTarget)
{
var options = new BuildPlayerOptions
{
scenes = ActiveScenePaths.ToArray(),
target = buildTarget,
hockey(
api_token: hockeyapp_token,
ipa: output_folder + options[:build_name] + ".ipa",
notes: options[:build_name]
)
lane :build_debug do |options|
match(
type: "development",
app_identifier: options[:bundle_id],
username: dev_username,
git_url: provisioning_git_url
)
gym(
project: "./iOS/" + options[:build_name] + "/Unity-iPhone.xcodeproj",
lane :build_debug do |options|
Dir.chdir("..") do
sh("./setup-gradle-wrapper.sh", options[:build_name], options[:product_name])
end
gradle(
project_dir: "./Android/" + options[:build_name] + "/" + options[:product_name],
task: "clean assembleDebug"
)
end
@thelionx
thelionx / unity-build-pipeline
Created July 30, 2019 10:11
Execute Joyseed Command Line Build
/Applications/Unity 2018.3.1f/Unity.app/Contents/MacOS/Unity" -quit -batchmode -logfile - -projectPath [PROJECT_PATH] -executemethod Joyseed.Build.CommandLine.CommandLineBuild -buildReporter "TeamCity" -buildTarget "Android" -buildNumber 13 -devBuild "true" -buildMode "SBOX" -exportAndroidStudio "true"