Skip to content

Commit 19630d5

Browse files
committed
Fix #20 Use Release template for minsize builds
1 parent 5943a49 commit 19630d5

File tree

10 files changed

+3
-0
lines changed

10 files changed

+3
-0
lines changed

Assets/Scripts/Editor/BuildScript.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,14 @@ public static void Build(string[] args)
7777
string[] tagParameters = tagVersion.Split('-');
7878
if (tagParameters.Contains("minsize"))
7979
{
80+
PlayerSettings.WebGL.template = "PROJECT:Release";
8081
SetWebGlOptimization("size");
8182
PlayerSettings.WebGL.exceptionSupport = WebGLExceptionSupport.None;
8283
PlayerSettings.SetIl2CppCompilerConfiguration(BuildTargetGroup.WebGL, Il2CppCompilerConfiguration.Master);
8384
}
8485
else if (tagParameters.Contains("debug"))
8586
{
87+
PlayerSettings.WebGL.template = "PROJECT:Develop";
8688
SetWebGlOptimization("size");
8789
PlayerSettings.WebGL.exceptionSupport = WebGLExceptionSupport.FullWithStacktrace;
8890
PlayerSettings.SetIl2CppCompilerConfiguration(BuildTargetGroup.WebGL, Il2CppCompilerConfiguration.Debug);
@@ -95,6 +97,7 @@ public static void Build(string[] args)
9597
}
9698
else
9799
{
100+
PlayerSettings.WebGL.template = "PROJECT:Develop";
98101
// By default use the speed setting
99102
SetWebGlOptimization("speed");
100103
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)