mirror of
https://github.com/dotMorten/NmeaParser.git
synced 2026-01-04 23:59:57 +01:00
Improve path for signtool
This commit is contained in:
parent
046427eafb
commit
19825b1652
2
.github/workflows/publish_nuget.yml
vendored
2
.github/workflows/publish_nuget.yml
vendored
|
|
@ -13,7 +13,7 @@ jobs:
|
|||
uses: actions/checkout@v1
|
||||
|
||||
- name: Setup Visual Studio Command Prompt
|
||||
uses: microsoft/setup-msbuild@v1.0.2
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
|
||||
- name: Get certificate
|
||||
id: cert_file
|
||||
|
|
|
|||
|
|
@ -88,17 +88,22 @@ All messages now have a unique timestamp useful to expire older messages.</Packa
|
|||
</ItemGroup>
|
||||
|
||||
<Target Name="SignAssemblies" Condition="Exists($(CertificatePath)) AND '$(CertificatePassword)'!=''" BeforeTargets="CopyFilesToOutputDirectory" DependsOnTargets="ComputeIntermediateSatelliteAssemblies">
|
||||
<PropertyGroup>
|
||||
<SignToolPath>$(ProgramFiles)\Windows Kits\10\bin\x64\signtool.exe</SignToolPath>
|
||||
<SignToolPath Condition="!Exists($(SignToolPath))">$(ProgramFiles)\Windows Kits\10\bin\x86\signtool.exe</SignToolPath>
|
||||
<SignToolPath Condition="!Exists($(SignToolPath))">$(ProgramFiles)\Windows Kits\10\bin\10.0.18362.0\x64\signtool.exe</SignToolPath>
|
||||
<SignToolPath Condition="!Exists($(SignToolPath))">$(WindowsSDK80Path)bin\x64\signtool.exe</SignToolPath>
|
||||
<SignToolPath Condition="!Exists($(SignToolPath))">signtool.exe</SignToolPath> <!-- fallback to use PATH environment -->
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<FilesToSign Include="@(IntermediateAssembly)" />
|
||||
<FilesToSign Include="@(IntermediateRefAssembly)" />
|
||||
<FilesToSign Include="@(IntermediateSatelliteAssembliesWithTargetPath)" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<FilesToSignFiltered Include="@(FilesToSign)" Condition="Exists(%(FilesToSign.Identity))" />
|
||||
</ItemGroup>
|
||||
<Exec Condition="'@(FilesToSignFiltered->Count())' > 0" Command="signtool sign /v /fd SHA1 /f "$(CertificatePath)" /p "$(CertificatePassword)" /tr http://timestamp.digicert.com /td SHA1 "%(FilesToSignFiltered.Identity)""
|
||||
<Exec Condition="'@(FilesToSignFiltered->Count())' > 0" Command=""$(SignToolPath)" sign /v /fd SHA1 /f "$(CertificatePath)" /p "$(CertificatePassword)" /tr http://timestamp.digicert.com /td SHA1 "%(FilesToSignFiltered.Identity)""
|
||||
WorkingDirectory="$(ProjectDir)" EchoOff="true" />
|
||||
<Exec Condition="'@(FilesToSignFiltered->Count())' > 0" Command="signtool sign /v /as /d "Authorization Summary" /fd SHA256 /f "$(CertificatePath)" /p "$(CertificatePassword)" /tr http://timestamp.digicert.com /td SHA256 "%(FilesToSignFiltered.Identity)""
|
||||
<Exec Condition="'@(FilesToSignFiltered->Count())' > 0" Command=""$(SignToolPath)" sign /v /as /d "Authorization Summary" /fd SHA256 /f "$(CertificatePath)" /p "$(CertificatePassword)" /tr http://timestamp.digicert.com /td SHA256 "%(FilesToSignFiltered.Identity)""
|
||||
WorkingDirectory="$(ProjectDir)" EchoOff="true" />
|
||||
</Target>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue