From b2d5abc41b824dba85102a5299671a65f4dc0ca9 Mon Sep 17 00:00:00 2001 From: Matthew Stanley <1379tech@gmail.com> Date: Thu, 27 Aug 2026 13:33:04 -0700 Subject: [PATCH] release: prepare psxrecomp v0.3.2-alpha --- RELEASE_NOTES.md | 2 +- tools/package_release.ps1 | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 19cb7a5f..9b971033 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,4 +1,4 @@ -# Unreleased +# v0.3.2-alpha - Replaces OpenGL temporal frame blending's shared second context and presentation thread with a deadline-driven path on the renderer's original diff --git a/tools/package_release.ps1 b/tools/package_release.ps1 index 47915cbd..4b3635fd 100644 --- a/tools/package_release.ps1 +++ b/tools/package_release.ps1 @@ -1,5 +1,5 @@ param( - [string]$Version = "v0.1.0-alpha", + [string]$Version = "v0.3.2-alpha", [string]$BuildDir = "runtime/build-release" ) @@ -21,7 +21,12 @@ cmake -S (Join-Path $Root "runtime") -B $BuildPath -G Ninja ` cmake --build $BuildPath --target psx-runtime -j $env:NUMBER_OF_PROCESSORS if (Test-Path $StageRoot) { - Remove-Item -Recurse -Force $StageRoot + $resolvedRoot = (Resolve-Path $Root).Path.TrimEnd('\') + $resolvedStage = (Resolve-Path $StageRoot).Path.TrimEnd('\') + if (-not $resolvedStage.StartsWith($resolvedRoot + "\", [System.StringComparison]::OrdinalIgnoreCase)) { + throw "Refusing to delete stage path outside repo root: $resolvedStage" + } + Remove-Item -LiteralPath $StageRoot -Recurse -Force } New-Item -ItemType Directory -Force $Stage | Out-Null New-Item -ItemType Directory -Force (Join-Path $Stage "saves") | Out-Null @@ -53,7 +58,7 @@ $imports = & $objdump -p (Join-Path $Stage "PSXRecomp.exe") | $systemDlls = @("kernel32.dll","user32.dll","gdi32.dll","shell32.dll","msvcrt.dll", "advapi32.dll","ws2_32.dll","comdlg32.dll","dbghelp.dll","ole32.dll", "oleaut32.dll","winmm.dll","imm32.dll","version.dll","setupapi.dll", - "dinput8.dll","rpcrt4.dll","hid.dll","cfgmgr32.dll") + "dinput8.dll","rpcrt4.dll","hid.dll","cfgmgr32.dll","opengl32.dll") $nonSystem = $imports | Where-Object { $systemDlls -notcontains $_.ToLower() } if ($nonSystem) { throw "Release exe is NOT self-contained; imports non-system DLL(s): $($nonSystem -join ', ')"