0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Unity]環境分けコマンドラインビルドEditor拡張

Last updated at Posted at 2019-02-16

develop環境, staging環境など
ビルド環境分けを行うことを目的としたEditor拡張を作りました。

セットアップ

Assets/Editor/EnvironmentBuilder

配下をインポートします。

Json設定

develop.json

{
    "PlatformOptions": [   # <- 各プラットフォームごとのアプリ名などのビルド設定.
        {
            "Platform": "iOS",
            "ProductName": "AppName",
            "ApplicationIdentifier": "com.appname"
        },
        {
            "Platform": "Android",
            "ProductName": "AppName",
            "ApplicationIdentifier": "com.appname"
        }
    ],
    "DefineSymbols": [    # <- ビルド時に有効とするプリプロセッサ.
        "SERVER_DEVELOP",
        "DEBUG_LOG",
        "TUTORIAL_SKIP"
    ],
    "BuildOptions": [     # <- ビルド時に有効とするビルドオプション.
        "Development"
    ]
}

他の環境を追加する場合は
別名のjsonを追加してください。

ビルド例

/Applications/Unity_2018.3.4f1/Unity.app/Contents/MacOS/Unity ¥
 -quit ¥
 -batchmode ¥
 -buildTarget Android ¥
 -projectPath $projectPath ¥
 -executeMethod AppBuilder.Perform ¥
 -path output ¥
 -env develop
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?