mirror of
https://github.com/patchzyy/wiicompiled
synced 2026-09-10 09:11:52 -04:00
25 lines
934 B
PowerShell
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.'
|