MSM: Fix digital signing of output files
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
a979361217
commit
532156de82
@ -54,15 +54,14 @@
|
||||
<PropertyGroup>
|
||||
<SigningCertificate Condition="$(SignMode)=='TestSign' And '$(TestCertificate)'!=''">$(TestCertificate)</SigningCertificate>
|
||||
<SigningCertificate Condition="$(SignMode)=='ProductionSign' And '$(ProductionCertificate)'!=''">$(ProductionCertificate)</SigningCertificate>
|
||||
<AfterBuildDependsOnTargets Condition="'$(SigningCertificate)'!='' And '$(TimeStampServer)'!=''">SignTarget</AfterBuildDependsOnTargets>
|
||||
<BuildDependsOn>$(BuildDependsOn);SignTarget</BuildDependsOn>
|
||||
<BuildDependsOn Condition="'$(SigningCertificate)'!='' And '$(TimeStampServer)'!=''">$(BuildDependsOn);SignTarget</BuildDependsOn>
|
||||
<CleanDependsOn>CleanSignTarget;$(CleanDependsOn)</CleanDependsOn>
|
||||
</PropertyGroup>
|
||||
<Target
|
||||
Name="SignTarget"
|
||||
Inputs="$(TargetPath)"
|
||||
Outputs="$(IntermediateOutputPath)$(TargetName).sign">
|
||||
<Exec Command="signtool.exe sign /sha1 "$(SigningCertificate)" /fd sha256 /tr "$(TimeStampServer)" /td sha256 /q "$(TargetPath)"" />
|
||||
<Exec Command="signtool.exe sign /sha1 "$(SigningCertificate)" /fd sha256 /tr "$(TimeStampServer)" /td sha256 "$(TargetPath)"" />
|
||||
<Touch Files="$(IntermediateOutputPath)$(TargetName).sign" AlwaysCreate="true"/>
|
||||
</Target>
|
||||
<Target Name="CleanSignTarget">
|
||||
|
Loading…
Reference in New Issue
Block a user