mirror of https://github.com/ospab/ostp.git
Fix: Enforce local filesystem touch on ostp.exe to override inherited build server timestamps after zip expansions.
This commit is contained in:
parent
a118e45cf1
commit
d0146d027d
|
|
@ -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."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue