From c31cc83ffcb62e968002609f223ed15ad1ceeb3b Mon Sep 17 00:00:00 2001 From: dionmoustos Date: Tue, 23 Jun 2026 00:29:59 +0930 Subject: [PATCH] more --- ci/Build-Windows.ps1 | 9 +++++---- ci/toolchain.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ci/Build-Windows.ps1 b/ci/Build-Windows.ps1 index cec3f5a..c001a05 100644 --- a/ci/Build-Windows.ps1 +++ b/ci/Build-Windows.ps1 @@ -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" } diff --git a/ci/toolchain.json b/ci/toolchain.json index e368e3b..9ba51dd 100644 --- a/ci/toolchain.json +++ b/ci/toolchain.json @@ -1,5 +1,5 @@ { - "unityVersion": "2022.3.62f1", + "unityVersion": "6000.5.0f1", "windows": { "unityRoot": "C:\\Program Files\\Unity\\Hub\\Editor",