Remove timestamps from deps files
This commit is contained in:
parent
caaae2003e
commit
8366aabd59
|
|
@ -101,6 +101,11 @@
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="_RemoveTimestampFromDepsFile">
|
<Target Name="_RemoveTimestampFromDepsFile">
|
||||||
|
<GetOSPlatform>
|
||||||
|
<!-- Returns {Linux, macOS, Windows} -->
|
||||||
|
<Output TaskParameter="PlatformName" PropertyName="OSPlatform" />
|
||||||
|
</GetOSPlatform>
|
||||||
|
|
||||||
<Exec Command="powershell.exe -command "(Get-Content $(DepsFile)).replace('-$(BuildNumber)','-final') | Set-Content $(DepsFile)"" Condition="'$(OSPlatform)'=='Windows'"/>
|
<Exec Command="powershell.exe -command "(Get-Content $(DepsFile)).replace('-$(BuildNumber)','-final') | Set-Content $(DepsFile)"" Condition="'$(OSPlatform)'=='Windows'"/>
|
||||||
<Exec Command="sed -i '' -e "s/\-$(BuildNumber)/\-final/g" $(DepsFile)" Condition="'$(OSPlatform)'=='macOS'"/>
|
<Exec Command="sed -i '' -e "s/\-$(BuildNumber)/\-final/g" $(DepsFile)" Condition="'$(OSPlatform)'=='macOS'"/>
|
||||||
<Exec Command="sed -i -e "s/\-$(BuildNumber)/\-final/g" $(DepsFile)" Condition="'$(OSPlatform)'=='Linux'"/>
|
<Exec Command="sed -i -e "s/\-$(BuildNumber)/\-final/g" $(DepsFile)" Condition="'$(OSPlatform)'=='Linux'"/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue