at master 1.1 kB view raw
1<Project> 2 <Target Name="SignAppHost" AfterTargets="_CreateAppHost" 3 Condition="'$(AppHostIntermediatePath)' != '' 4 and ($(RuntimeIdentifier.StartsWith('osx')) or $(AppHostRuntimeIdentifier.StartsWith('osx')))"> 5 <Exec Command='@codesign@ -f -s - "$(AppHostIntermediatePath)" 2>&amp;1'/> 6 </Target> 7 <Target Name="UnsignBundle" BeforeTargets="GenerateSingleFileBundle" 8 Condition="'$(PublishedSingleFileName)' != '' 9 and ($(RuntimeIdentifier.StartsWith('osx')) or $(AppHostRuntimeIdentifier.StartsWith('osx')))"> 10 <Exec Command='@codesign@ --remove-signature "@(FilesToBundle)" 2>&amp;1' Condition="'%(FilesToBundle.RelativePath)' == '$(PublishedSingleFileName)'"/> 11 </Target> 12 <Target Name="SignBundle" AfterTargets="GenerateSingleFileBundle" 13 Condition="'$(PublishedSingleFilePath)' != '' 14 and ($(RuntimeIdentifier.StartsWith('osx')) or $(AppHostRuntimeIdentifier.StartsWith('osx')))"> 15 <Exec Command='@codesign@ -f -s - "$(PublishedSingleFilePath)" 2>&amp;1'/> 16 </Target> 17</Project>