lol

dotnet-sdk: limit code signing to osx targets (#402047)

authored by

David McFarland and committed by
GitHub
1c2203ff 4983188f

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