Skip to content

Commit ea2f3a9

Browse files
committed
Update file(s) "Packages/unity-builder/." from "unity-korea-community/unity-builder"
1 parent 936c1af commit ea2f3a9

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

Editor/BuildConfig/AndroidBuildConfig.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,13 @@ public override void OnInspectorGUI()
102102
if (command.StartsWith("-"))
103103
{
104104
if (hasNextCommand)
105+
{
105106
Environment.SetEnvironmentVariable(command, commands[i + 1]);
107+
}
106108
else
109+
{
107110
Environment.SetEnvironmentVariable(command, "");
111+
}
108112
}
109113
}
110114

Editor/BuildConfig/BuildConfig.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,21 @@ public override void ResetSetting(BuildConfig config)
8585
public override void OnPreBuild(IDictionary<string, string> commandLine, ref BuildPlayerOptions buildPlayerOptions)
8686
{
8787
if (string.IsNullOrEmpty(applicationIdentifier) == false)
88+
{
8889
PlayerSettings.applicationIdentifier = applicationIdentifier;
90+
}
8991
PlayerSettings.bundleVersion = bundleVersion;
9092

9193
var options = buildPlayerOptions.options;
9294
if (developmentBuild)
95+
{
9396
options |= BuildOptions.Development;
97+
}
9498

9599
if (autoRunPlayer)
100+
{
96101
options |= BuildOptions.AutoRunPlayer;
102+
}
97103

98104
buildPlayerOptions.options = options;
99105
}
@@ -102,8 +108,8 @@ public override void OnPostBuild(IDictionary<string, string> commandLine)
102108
{
103109
if (openBuildFolder)
104110
{
105-
string buildPath = GetBuildPath();
106-
string buildFolderPath = Path.GetDirectoryName(buildPath);
111+
string newBuildPath = GetBuildPath();
112+
string buildFolderPath = Path.GetDirectoryName(newBuildPath);
107113
Process.Start(buildFolderPath);
108114
}
109115
}

Editor/BuildConfig/WindowBuildConfig.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System.Runtime.InteropServices;
12
using System;
23
using UnityEngine;
34
using UnityEditor;
@@ -75,9 +76,13 @@ public override void OnInspectorGUI()
7576
if (command.StartsWith("-"))
7677
{
7778
if (hasNextCommand)
79+
{
7880
Environment.SetEnvironmentVariable(command, commands[i + 1]);
81+
}
7982
else
83+
{
8084
Environment.SetEnvironmentVariable(command, "");
85+
}
8186
}
8287
}
8388

Editor/GlobalConst.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace UNKO.Unity_Builder
22
{
33
public static class GlobalConst
44
{
5-
public const string CreateAssetMenu_Prefix = "UNKO/unity-builder";
6-
public const string EditorContextMenu_Prefix = "Tools/UNKO/unity-builder";
5+
public static readonly string CreateAssetMenu_Prefix = "UNKO/unity-builder";
6+
public static readonly string EditorContextMenu_Prefix = "Tools/UNKO/unity-builder";
77
}
88
}

0 commit comments

Comments
 (0)