Files
2026-08-29 12:06:58 -04:00

25 lines
934 B
PowerShell

[CmdletBinding(PositionalBinding = $false)]
param(
[string]$PortableToolsDirectory = 'Launcher/artifacts/portable-tools',
[string]$DependencySourceDirectory = 'Launcher/artifacts/dependencies',
[string]$VcRuntimeDirectory,
[string]$ToolkitReleaseTag = $env:GITHUB_REF_NAME
)
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version 3.0
$arguments = @{
PortableToolsDirectory = $PortableToolsDirectory
DependencySourceDirectory = $DependencySourceDirectory
ToolkitReleaseTag = $ToolkitReleaseTag
}
if (-not [string]::IsNullOrWhiteSpace($VcRuntimeDirectory)) {
$arguments.VcRuntimeDirectory = $VcRuntimeDirectory
}
& (Join-Path $PSScriptRoot 'Build-Installer.ps1') @arguments
if ($LASTEXITCODE -ne 0) { throw "Build-Installer.ps1 failed with exit code $LASTEXITCODE." }
Write-Host 'The release artifact is ready. It contains no translated game executable, game image, Code.pul, or Retro-WFC payload.'