2025-03-21 18:17:28 -05:00
|
|
|
. ./LANCommander.Build/Include/Get-LastSemVerTag.ps1
|
|
|
|
|
. ./LANCommander.Build/Include/Build-Server.ps1
|
|
|
|
|
. ./LANCommander.Build/Include/Build-Launcher.ps1
|
2025-03-21 01:23:15 -05:00
|
|
|
|
|
|
|
|
$Version = Get-LastSemVerTag
|
2025-03-21 18:20:22 -05:00
|
|
|
$Version = [semver]"$($Version.Major).$($Version.Minor).$($Version.Patch)-nightly.$(Get-Date -Format "yyyyMMddHHmm")"
|
2025-03-21 01:23:15 -05:00
|
|
|
|
|
|
|
|
$BuildTargets =
|
2025-03-21 18:22:21 -05:00
|
|
|
@{ Platform = 'Windows'; Architecture = 'x64'; Runtime = 'win' },
|
|
|
|
|
@{ Platform = 'Windows'; Architecture = 'arm64'; Runtime = 'win' },
|
|
|
|
|
@{ Platform = 'Linux'; Architecture = 'x64'; Runtime = 'linux' },
|
2025-03-21 19:07:55 -05:00
|
|
|
@{ Platform = 'Linux'; Architecture = 'arm64'; Runtime = 'linux' },
|
2025-03-21 19:34:05 -05:00
|
|
|
@{ Platform = 'macOS'; Architecture = 'x64'; Runtime = 'osx' },
|
|
|
|
|
@{ Platform = 'macOS'; Architecture = 'arm64'; Runtime = 'osx' }
|
2025-03-21 01:23:15 -05:00
|
|
|
|
|
|
|
|
Write-Host "Building Targets"
|
|
|
|
|
|
|
|
|
|
foreach ($target in $BuildTargets) {
|
|
|
|
|
Build-Server -Version $Version -Runtime $target.Runtime -Architecture $target.Architecture -Platform $target.Platform -Configuration 'Debug'
|
|
|
|
|
Build-Launcher -Version $Version -Runtime $target.Runtime -Architecture $target.Architecture -Platform $target.Platform -Configuration 'Debug'
|
|
|
|
|
}
|