2024-02-20 23:21:08 -04:00
|
|
|
<Project>
|
2025-04-26 11:24:51 -03:00
|
|
|
<Target Name="SignAppHost" AfterTargets="_CreateAppHost"
|
|
|
|
Condition="'$(AppHostIntermediatePath)' != ''
|
|
|
|
and ($(RuntimeIdentifier.StartsWith('osx')) or $(AppHostRuntimeIdentifier.StartsWith('osx')))">
|
2024-02-20 23:21:08 -04:00
|
|
|
<Exec Command='@codesign@ -f -s - "$(AppHostIntermediatePath)" 2>&1'/>
|
|
|
|
</Target>
|
2025-04-26 11:24:51 -03:00
|
|
|
<Target Name="UnsignBundle" BeforeTargets="GenerateSingleFileBundle"
|
|
|
|
Condition="'$(PublishedSingleFileName)' != ''
|
|
|
|
and ($(RuntimeIdentifier.StartsWith('osx')) or $(AppHostRuntimeIdentifier.StartsWith('osx')))">
|
2024-02-20 23:21:08 -04:00
|
|
|
<Exec Command='@codesign@ --remove-signature "@(FilesToBundle)" 2>&1' Condition="'%(FilesToBundle.RelativePath)' == '$(PublishedSingleFileName)'"/>
|
|
|
|
</Target>
|
2025-04-26 11:24:51 -03:00
|
|
|
<Target Name="SignBundle" AfterTargets="GenerateSingleFileBundle"
|
|
|
|
Condition="'$(PublishedSingleFilePath)' != ''
|
|
|
|
and ($(RuntimeIdentifier.StartsWith('osx')) or $(AppHostRuntimeIdentifier.StartsWith('osx')))">
|
2024-02-20 23:21:08 -04:00
|
|
|
<Exec Command='@codesign@ -f -s - "$(PublishedSingleFilePath)" 2>&1'/>
|
|
|
|
</Target>
|
|
|
|
</Project>
|