Files
wiicompiled/Launcher/Prepare-Release.ps1
T
patchzyy ec226e8348 init
2026-08-23 17:10:50 +02:00

31 lines
1.1 KiB
PowerShell

[CmdletBinding(PositionalBinding = $false)]
param(
[string]$DolphinToolPath,
[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
if ([string]::IsNullOrWhiteSpace($DolphinToolPath)) {
throw 'Prepare-Release.ps1 requires -DolphinToolPath pointing to DolphinTool.exe.'
}
$arguments = @{
DolphinToolPath = $DolphinToolPath
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.'