Skip to content

ReStreet: FIFA Street (2012) recompiled for Windows PC, with online play, a launcher with friends, chat and rooms. Bring your own game.

CI installer: take ReXGlue outputs from Release\, pin the runtimes this job builds

SamuelitoDaVila6969748162c9
diff --git a/.github/workflows/release-installer.yml b/.github/workflows/release-installer.yml
index ac060ba..847f468 100644
--- a/.github/workflows/release-installer.yml
+++ b/.github/workflows/release-installer.yml
@@ -139,7 +139,19 @@ jobs:
Select-Object -First 1).Name
if (-not $clangVersion) { throw 'Unable to determine the installed Clang resource version.' }
$ninja = (Get-Command ninja.exe -ErrorAction Stop).Source
+ # Installer/backend-manifest.json pins the runtimes validated locally; this job ships the ones it just
+ # built, so it pins those (the installer checks them again on the player's PC).
+ $manifest = Get-Content -LiteralPath Installer/backend-manifest.json -Raw | ConvertFrom-Json
+ foreach ($name in @('D3D12', 'Vulkan')) {
+ $dir = Join-Path ReXGlue $manifest.backends.$name.source
+ $manifest.backends.$name.runtimeHash = (Get-FileHash (Join-Path $dir 'rexruntime.dll') -Algorithm SHA256).Hash.ToLower()
+ $manifest.backends.$name.gpuHash = (Get-FileHash (Join-Path $dir 'rexgpu-xenos.dll') -Algorithm SHA256).Hash.ToLower()
+ }
+ $manifest.version = 'ci-' + $env:GITHUB_SHA.Substring(0, 8)
+ $ciManifest = Join-Path $PWD 'dist/backend-manifest.json'
+ $manifest | ConvertTo-Json -Depth 5 | Set-Content -Encoding utf8 $ciManifest
./Installer/BuildSetup.ps1 `
+ -BackendManifest $ciManifest `
-Output "$PWD/dist/FifaStreet-Setup.exe" `
-LLVMRoot 'C:\Program Files\LLVM' `
-CMakeRoot 'C:\Program Files\CMake' `
diff --git a/Installer/BuildSetup.ps1 b/Installer/BuildSetup.ps1
index cf36693..c3868ca 100644
--- a/Installer/BuildSetup.ps1
+++ b/Installer/BuildSetup.ps1
@@ -42,6 +42,8 @@ Get-ChildItem -LiteralPath (Join-Path $stage 'payload') -Filter '*.pdb' | Remove
# Use the installed public SDK layout, with the current runtime and code generator.
Copy-Item -LiteralPath (Join-Path $ReXGlueRoot 'out\install\win-amd64') -Destination (Join-Path $stage 'sdk') -Recurse
$current = Join-Path $ReXGlueRoot 'out\win-amd64'
+# Multi-config builds (CI) put the outputs one level down, like backend-manifest.json expects.
+if (Test-Path -LiteralPath (Join-Path $current 'Release\rexglue.exe')) { $current = Join-Path $current 'Release' }
$backendRuntime = Join-Path $ReXGlueRoot $backendInputs.backends.Vulkan.source
foreach ($name in @('rexglue.exe','rexruntime.dll','rexgpu-xenos.dll','TracyClient.dll')) { Copy-Item -LiteralPath (Join-Path $current $name) -Destination (Join-Path $stage 'sdk\bin') -Force }
Get-ChildItem -LiteralPath $current -Filter '*.lib' | Copy-Item -Destination (Join-Path $stage 'sdk\lib') -Force