This commit is contained in:
2026-06-23 00:29:59 +09:30
parent 04151399ee
commit c31cc83ffc
2 changed files with 6 additions and 5 deletions
+5 -4
View File
@@ -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
View File
@@ -1,5 +1,5 @@
{
"unityVersion": "2022.3.62f1",
"unityVersion": "6000.5.0f1",
"windows": {
"unityRoot": "C:\\Program Files\\Unity\\Hub\\Editor",