Unity に於ける Android ビルド自動化のおはなし - 20141215 第27回 Unity 勉強会

Click here to load reader

  • date post

    20-Jul-2015
  • Category

    Engineering

  • view

    724
  • download

    4

Embed Size (px)

Transcript of Unity に於ける Android ビルド自動化のおはなし - 20141215 第27回 Unity 勉強会

  • Unity Android

    2014.12.15 (Thu) / Unity vol.27

  • tMerry Christmas!!

  • $ whoami

    a.k.a: / T: @monry / F: monry84

    30 / / O / /

  • $ whoami

  • $ whoami ()

    Web

    Unity 1

    AWS

    Shader

  • $ jobs

    /

    EdTech No.1 ()

  • $ jobs

  • $ jobs

  • $ ls -la apps/

    !!

    & !!

    !!

    !!

    i18n i18n i18n

    i18n

    App Sto

    re / Goo

    gle Play

    1

  • Operation System: OS X Yosemite

    Unity: 4.6.0f3 (Pro Only)

    Platform: Android

    Language: C#

    Other: Android SDK, gradle

  • Build

    Android Studio

    PostProcessBuild

  • Native Plugin

    Google Play Developer Console

  • Unity Android Project

  • Unity Android Project

  • Unity Android Project

  • Unity Android Project

  • Unity Android Project

  • Archive

  • Pre Archive

    SDK

    intent-lter

    KeyStore

  • Packaging

    APK

  • Packaging

    Android Studio

  • Packaging

    "Import Non-Android Studio project"

  • Packaging

  • Packaging

    APK

  • Export Android Project

  • Export Android Project

    UnityEditor.BuildPipeline.BuildPlayer(

    string[] levels,

    string locationPathName,

    UnityEditor.BuildTarget target,

    UnityEditor.BuildOptions options

    );

  • Export Android Project

    BuildPipeline.BuildPlayer(

    new string[] { "Main.scene" },

    "/Users/monry/SampleProject",

    BuildTarget.Android,

    BuildOptions.Development

    | BuildOptions.AllowDebugging | BuildOptions.AcceptExternalModificationsToPlayer

    );

    Example

    Android Project

  • PostProcessBuild

  • Archive

  • Archive

    System.Diagnostics.Process process = new System.Diagnostics.Process();

    process.StartInfo.FileName = "/usr/local/bin/gradle";

    process.StartInfo.Arguments = string.Format(

    "-b \"{0}/build.gradle\" assembleProduction",

    "/path/to/export"

    );

    process.StartInfo.CreateNoWindow = true;

    process.Start();

    process.WaitForExit();

    process.Close();

    gradle

  • Archive

  • build.gradle

  • build.gradle

  • apk DeployGate PUSH

    ChatWork Slack POST

    Jenkins

  • PostProcessBuild

    Build Archive Deploy

  • Thank you foryour attention !