Fix: Enforce local filesystem touch on ostp.exe to override inherited build server timestamps after zip expansions.

This commit is contained in:
ospab 2026-05-15 01:02:18 +03:00
parent a118e45cf1
commit d0146d027d
1 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,8 @@ if ($exeFile) {
Start-Sleep -Seconds 1 Start-Sleep -Seconds 1
Copy-Item -Path $exeFile.FullName -Destination (Join-Path $InstallDir "ostp.exe") -Force Copy-Item -Path $exeFile.FullName -Destination (Join-Path $InstallDir "ostp.exe") -Force
# Force file system timestamps to current local time to reflect successful execution
(Get-Item (Join-Path $InstallDir "ostp.exe")).LastWriteTime = [DateTime]::Now
Write-Host "Executable successfully deployed to $(Join-Path $InstallDir 'ostp.exe')." Write-Host "Executable successfully deployed to $(Join-Path $InstallDir 'ostp.exe')."
} else { } else {
Write-Error "Binary file ostp.exe not found in archive package." Write-Error "Binary file ostp.exe not found in archive package."