11/**
22 * MIT License
3- *
3+ *
44 * Copyright (c) 2020-present GameCI, Anderbell Studios
5- *
5+ *
66 * Permission is hereby granted, free of charge, to any person obtaining a copy
77 * of this software and associated documentation files (the "Software"), to deal
88 * in the Software without restriction, including without limitation the rights
99 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1010 * copies of the Software, and to permit persons to whom the Software is
1111 * furnished to do so, subject to the following conditions:
12- *
12+ *
1313 * The above copyright notice and this permission notice shall be included in all
1414 * copies or substantial portions of the Software.
15- *
15+ *
1616 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1717 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1818 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -35,13 +35,10 @@ public static class DevelopmentBuild {
3535 public static void Build ( ) {
3636 ParseCommandLineArguments ( out Dictionary < string , string > options ) ;
3737
38- BuildTarget buildTarget = ( BuildTarget ) Enum . Parse (
39- typeof ( BuildTarget ) ,
40- options [ "buildTarget" ]
41- ) ;
38+ BuildTarget buildTarget = ( BuildTarget ) Enum . Parse ( typeof ( BuildTarget ) , options [ "buildTarget" ] ) ;
4239
43- List < string > scenes = EditorBuildSettings . scenes
44- . Where ( scene => scene . enabled )
40+ List < string > scenes = EditorBuildSettings
41+ . scenes . Where ( scene => scene . enabled )
4542 . Select ( scene => scene . path )
4643 . ToList ( ) ;
4744
@@ -57,7 +54,7 @@ public static void Build() {
5754 scenes = scenes . ToArray ( ) ,
5855 locationPathName = options [ "customBuildPath" ] ,
5956 target = buildTarget ,
60- options = UnityEditor . BuildOptions . Development
57+ options = UnityEditor . BuildOptions . Development ,
6158 } ;
6259
6360 BuildMetaData . SetBranchName ( options [ "branchName" ] ) ;
@@ -85,7 +82,8 @@ private static void ParseCommandLineArguments(out Dictionary<string, string> pro
8582
8683 // Ignore arguments not starting with '-'
8784 bool isFlag = args [ current ] . StartsWith ( "-" ) ;
88- if ( ! isFlag ) continue ;
85+ if ( ! isFlag )
86+ continue ;
8987
9088 string flag = args [ current ] . TrimStart ( '-' ) ;
9189
0 commit comments