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>
|
<PropertyGroup>
|
||||||
<SigningCertificate Condition="$(SignMode)=='TestSign' And '$(TestCertificate)'!=''">$(TestCertificate)</SigningCertificate>
|
<SigningCertificate Condition="$(SignMode)=='TestSign' And '$(TestCertificate)'!=''">$(TestCertificate)</SigningCertificate>
|
||||||
<SigningCertificate Condition="$(SignMode)=='ProductionSign' And '$(ProductionCertificate)'!=''">$(ProductionCertificate)</SigningCertificate>
|
<SigningCertificate Condition="$(SignMode)=='ProductionSign' And '$(ProductionCertificate)'!=''">$(ProductionCertificate)</SigningCertificate>
|
||||||
<AfterBuildDependsOnTargets Condition="'$(SigningCertificate)'!='' And '$(TimeStampServer)'!=''">SignTarget</AfterBuildDependsOnTargets>
|
<BuildDependsOn Condition="'$(SigningCertificate)'!='' And '$(TimeStampServer)'!=''">$(BuildDependsOn);SignTarget</BuildDependsOn>
|
||||||
<BuildDependsOn>$(BuildDependsOn);SignTarget</BuildDependsOn>
|
|
||||||
<CleanDependsOn>CleanSignTarget;$(CleanDependsOn)</CleanDependsOn>
|
<CleanDependsOn>CleanSignTarget;$(CleanDependsOn)</CleanDependsOn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Target
|
<Target
|
||||||
Name="SignTarget"
|
Name="SignTarget"
|
||||||
Inputs="$(TargetPath)"
|
Inputs="$(TargetPath)"
|
||||||
Outputs="$(IntermediateOutputPath)$(TargetName).sign">
|
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"/>
|
<Touch Files="$(IntermediateOutputPath)$(TargetName).sign" AlwaysCreate="true"/>
|
||||||
</Target>
|
</Target>
|
||||||
<Target Name="CleanSignTarget">
|
<Target Name="CleanSignTarget">
|
||||||
|
Loading…
Reference in New Issue
Block a user