mirror of
https://github.com/microsoft/WSL.git
synced 2025-12-11 04:35:57 -06:00
CI: update issue for wslsettings being rebuilt and signature being overwritten
This commit is contained in:
parent
9a845e81d1
commit
67cfa8f1d3
@ -224,9 +224,9 @@ stages:
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
# Replace the intermediate wslsettings binaries file with the signed versions so that any future steps building wslsettings will use the signed versions
|
# Replace the wslsettings binaries with signed versions and touch the target to prevent rebuilds
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Replace wslsettings binaries in intermediate folder with signed versions'
|
displayName: 'Update wslsettings binaries with signed versions'
|
||||||
condition: and(succeeded(), eq('${{ parameters.isRelease }}', true))
|
condition: and(succeeded(), eq('${{ parameters.isRelease }}', true))
|
||||||
inputs:
|
inputs:
|
||||||
targetType: inline
|
targetType: inline
|
||||||
@ -234,10 +234,17 @@ stages:
|
|||||||
$arch = '${{ platform }}'
|
$arch = '${{ platform }}'
|
||||||
$wslsettingsbinpath = "bin\$arch\release\wslsettings"
|
$wslsettingsbinpath = "bin\$arch\release\wslsettings"
|
||||||
$wslsettingsobjpath = "src\windows\wslsettings\obj\$arch\release"
|
$wslsettingsobjpath = "src\windows\wslsettings\obj\$arch\release"
|
||||||
# Update the timestamp of wslsettings.exe so that it doesn't get rebuilt
|
# Copy signed binaries to intermediate folder
|
||||||
(Get-Item $wslsettingsbinpath\wslsettings.exe).LastWriteTime = Get-Date
|
|
||||||
Copy-Item $wslsettingsbinpath\wslsettings.dll $wslsettingsobjpath\wslsettings.dll -Force
|
Copy-Item $wslsettingsbinpath\wslsettings.dll $wslsettingsobjpath\wslsettings.dll -Force
|
||||||
Copy-Item $wslsettingsbinpath\wslsettings.exe $wslsettingsobjpath\apphost.exe -Force
|
Copy-Item $wslsettingsbinpath\wslsettings.exe $wslsettingsobjpath\apphost.exe -Force
|
||||||
|
# Update timestamps on both source and output to prevent MSBuild from detecting changes
|
||||||
|
$futureTime = (Get-Date).AddHours(1)
|
||||||
|
(Get-Item $wslsettingsbinpath\wslsettings.exe).LastWriteTime = $futureTime
|
||||||
|
(Get-Item $wslsettingsbinpath\wslsettings.dll).LastWriteTime = $futureTime
|
||||||
|
(Get-Item $wslsettingsobjpath\wslsettings.dll).LastWriteTime = $futureTime
|
||||||
|
(Get-Item $wslsettingsobjpath\apphost.exe).LastWriteTime = $futureTime
|
||||||
|
# Touch the project file to mark it as up-to-date
|
||||||
|
(Get-Item "src\windows\wslsettings\wslsettings.csproj").LastWriteTime = (Get-Date).AddSeconds(-10)
|
||||||
|
|
||||||
- script: cmake --build . --config Release -- -m
|
- script: cmake --build . --config Release -- -m
|
||||||
displayName: "Build installer msix and tests (${{ platform }})"
|
displayName: "Build installer msix and tests (${{ platform }})"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user