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.

test: use shared integrity helper for Windows PowerShell compatibility

SamuelitoDaVila2c8fdee6792e
diff --git a/Installer/TestSourceBackend.ps1 b/Installer/TestSourceBackend.ps1
index d52735f..8e99027 100644
--- a/Installer/TestSourceBackend.ps1
+++ b/Installer/TestSourceBackend.ps1
@@ -1,5 +1,6 @@
$ErrorActionPreference = 'Stop'
. (Join-Path $PSScriptRoot 'InstallSourceBackend.ps1')
+. (Join-Path $PSScriptRoot 'BuildIntegrity.ps1')
$testRoot = Join-Path $env:TEMP ('FifaSourceBackendTest_' + [guid]::NewGuid().ToString('N'))
$runtime = Join-Path $testRoot 'runtime'
$output = Join-Path $testRoot 'output'
@@ -14,7 +15,7 @@ foreach ($name in @('rexgpu-xenos.dll', 'TracyClient.dll')) {
Install-SourceBackend -RuntimeDirectory $runtime -Output $output
foreach ($name in @('rexruntime.dll', 'rexgpu-xenos.dll', 'TracyClient.dll')) {
foreach ($destination in @($output, (Join-Path $output 'Backends\D3D12'))) {
- if ((Get-FileHash (Join-Path $runtime $name)).Hash -ne (Get-FileHash (Join-Path $destination $name)).Hash) {
+ if ((Get-InputSha256 (Join-Path $runtime $name)) -ne (Get-InputSha256 (Join-Path $destination $name))) {
throw "Source backend copy differs: $name"
}
}
diff --git a/docs/BUILDING.md b/docs/BUILDING.md
index 1ed0ec1..d1076ea 100644
--- a/docs/BUILDING.md
+++ b/docs/BUILDING.md
@@ -87,7 +87,7 @@ Troubleshooting:
retains the official hash checks.
Run the backend installation regression check with:
-`pwsh -NoProfile -File Installer/TestSourceBackend.ps1`.
+`powershell -NoProfile -File Installer/TestSourceBackend.ps1`.
## Release packaging prerequisites