more
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
[ValidateSet("Windows","Android")]
|
||||
[string]$Target
|
||||
)
|
||||
|
||||
@@ -36,8 +34,7 @@ if (!(Test-Path $unityEditorPath)) {
|
||||
|
||||
# Install Unity Editor
|
||||
& $hubExe -- --headless install `
|
||||
--version $unityVersion `
|
||||
--changeset "" 2>$null
|
||||
--version $unityVersion 2>$null
|
||||
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Failed to install Unity $unityVersion"
|
||||
@@ -84,6 +81,10 @@ foreach ($module in $modules) {
|
||||
# -----------------------------
|
||||
# Resolve Unity build method
|
||||
# -----------------------------
|
||||
if(!$Target){
|
||||
Write-Host "No Target Provided"
|
||||
exit
|
||||
}
|
||||
$method = switch ($Target) {
|
||||
"Windows" { "BuildScript.Windows" }
|
||||
"Android" { "BuildScript.Android" }
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"unityVersion": "2022.3.62f1",
|
||||
"unityVersion": "6000.5.0f1",
|
||||
|
||||
"windows": {
|
||||
"unityRoot": "C:\\Program Files\\Unity\\Hub\\Editor",
|
||||
|
||||
Reference in New Issue
Block a user