Skip to content
Permalink
Browse files

[Build] Also sign Launcher executables

  • Loading branch information
xen2 committed Nov 28, 2018
1 parent f676169 commit 5e7e804b7227d58f6b23dab86734596c84b12032
@@ -204,6 +204,7 @@
<Import Project="..\..\editor\Xenko.Core.MostRecentlyUsedFiles\Xenko.Core.MostRecentlyUsedFiles.projitems" Label="Shared" />
<Import Project="..\..\assets\Xenko.Core.Assets.Yaml\Xenko.Core.Assets.Yaml.projitems" Label="Shared" />
<Import Project="..\..\editor\Xenko.Editor.CrashReport\Xenko.Editor.CrashReport.projitems" Label="Shared" />
<Import Project="..\..\targets\Xenko.Core.Sign.targets" />
<!-- <Target Name="AfterResolveReferences">
<ItemGroup>
<EmbeddedResource Update="@(ReferenceCopyLocalPaths)" Condition="'%(ReferenceCopyLocalPaths.Extension)' == '.dll'">
@@ -92,4 +92,5 @@
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="&#xD;&#xA;&#xD;&#xA;cd $(TargetDir)&#xD;&#xA;rem Ensure we are in the right place&#xD;&#xA;&#xD;&#xA;rem Delete all DLLs in the current directory and the immediate subdirectories&#xD;&#xA;del /q $(TargetDir)\*.dll&#xD;&#xA;for /d %25%25f in (&quot;$(TargetDir)\*&quot;) do del /q %25%25f\*.dll&#xD;&#xA;&#xD;&#xA;rem Delete empty directories at the first level&#xD;&#xA;rem See http://stackoverflow.com/questions/7831286/how-to-delete-empty-folders-using-windows-command-prompt for explanations&#xD;&#xA;rem Use %25SystemRoot%25 to use the right sort tool as people may have the unix sort in their path&#xD;&#xA;for /f &quot;usebackq delims=&quot; %25%25d in (`&quot;dir /ad/b $(TargetDir) | %25SystemRoot%25\System32\sort.exe /R&quot;`) do rd &quot;%25%25d&quot;" />
</Target>
<Import Project="..\..\targets\Xenko.Core.Sign.targets" />
</Project>
@@ -103,9 +103,11 @@
<Exec Condition=" '$(XenkoAssemblyProcessorDev)' == 'true' " Command="&quot;$(XenkoAssemblyProcessorPath)&quot; $(XenkoAssemblyProcessorOptions)"/>
</Target>

<Import Project="$(MSBuildThisFileDirectory)Xenko.Core.Sign.targets" />

<Target Name="SignExecutable" BeforeTargets="CopyFilesToOutputDirectory">
<SignFile Condition="'$(XenkoSignTool)' == 'true' And '$(XenkoProjectType)' != 'Cpp'" CertificateThumbprint="6969a724bf72c0b69e31c44bdd22dc11e5272bba" SigningTarget="$(IntermediateOutputPath)$(TargetName)$(TargetExt)" TimestampUrl="http://timestamp.globalsign.com/scripts/timstamp.dll" />
<SignFile Condition="'$(XenkoSignTool)' == 'true' And '$(XenkoProjectType)' == 'Cpp'" CertificateThumbprint="6969a724bf72c0b69e31c44bdd22dc11e5272bba" SigningTarget="$(OutputPath)$(TargetName)$(TargetExt)" TimestampUrl="http://timestamp.globalsign.com/scripts/timstamp.dll" />
<SignFile Condition="'$(XenkoProjectType)' != 'Cpp'" CertificateThumbprint="6969a724bf72c0b69e31c44bdd22dc11e5272bba" SigningTarget="$(IntermediateOutputPath)$(TargetName)$(TargetExt)" TimestampUrl="http://timestamp.globalsign.com/scripts/timstamp.dll" />
<SignFile Condition="'$(XenkoProjectType)' == 'Cpp'" CertificateThumbprint="6969a724bf72c0b69e31c44bdd22dc11e5272bba" SigningTarget="$(OutputPath)$(TargetName)$(TargetExt)" TimestampUrl="http://timestamp.globalsign.com/scripts/timstamp.dll" />
</Target>

<Target Name="SetPrivateOnProjectReferences" BeforeTargets="BeforeCompile" AfterTargets="IncludeTransitiveProjectReferences">
@@ -0,0 +1,6 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="_XenkoSignExecutable" BeforeTargets="CopyFilesToOutputDirectory">
<SignFile Condition="'$(XenkoPackageBuild)' == 'true' And '$(XenkoProjectType)' != 'Cpp'" CertificateThumbprint="6969a724bf72c0b69e31c44bdd22dc11e5272bba" SigningTarget="$(IntermediateOutputPath)$(TargetName)$(TargetExt)" TimestampUrl="http://timestamp.globalsign.com/scripts/timstamp.dll" />
<SignFile Condition="'$(XenkoPackageBuild)' == 'true' And '$(XenkoProjectType)' == 'Cpp'" CertificateThumbprint="6969a724bf72c0b69e31c44bdd22dc11e5272bba" SigningTarget="$(OutputPath)$(TargetName)$(TargetExt)" TimestampUrl="http://timestamp.globalsign.com/scripts/timstamp.dll" />
</Target>
</Project>

0 comments on commit 5e7e804

Please sign in to comment.
You can’t perform that action at this time.