Skip to content

Commit

Permalink
no wait, just repeat logs
Browse files Browse the repository at this point in the history
  • Loading branch information
frostebite committed Aug 15, 2023
2 parents 9900a91 + b567eb9 commit a31896b
Show file tree
Hide file tree
Showing 8 changed files with 482 additions and 290 deletions.
Binary file added dist/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,23 @@ public static void BuildProject()
}
}

#if UNITY_2021_2_OR_NEWER
// Determine subtarget
StandaloneBuildSubtarget buildSubtarget;
if (!options.TryGetValue("standaloneBuildSubtarget", out var subtargetValue) || !Enum.TryParse(subtargetValue, out buildSubtarget)) {
buildSubtarget = default;
}
#endif

// Define BuildPlayer Options
var buildPlayerOptions = new BuildPlayerOptions {
scenes = scenes,
locationPathName = options["customBuildPath"],
target = (BuildTarget) Enum.Parse(typeof(BuildTarget), options["buildTarget"]),
options = buildOptions
options = buildOptions,
#if UNITY_2021_2_OR_NEWER
subtarget = (int) buildSubtarget
#endif
};

// Set version for this build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public static Dictionary<string, string> GetValidatedOptions()
}

if (!Enum.IsDefined(typeof(BuildTarget), buildTarget)) {
Console.WriteLine($"{buildTarget} is not a defined {nameof(BuildTarget)}");
EditorApplication.Exit(121);
}

Expand Down
Loading

0 comments on commit a31896b

Please sign in to comment.