Skip to content

Commit eb358cd

Browse files
committed
ensure that entitlements are working appropriately
1 parent 19cb357 commit eb358cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

eng/pipelines/templates/scripts/assemble-dotnet-standalone-exe.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ elseif("$($Rid)".Contains("osx")){
7373
$binaryFile = Get-ChildItem -Path $outputPath | Where-Object { !([System.IO.Path]::hasExtension($_)) } | Select-Object -First 1
7474
$binaryFileBash = $binaryFile.ToString().Replace("`\","/")
7575

76-
$formattedTarget = (Resolve-Path $($Target)).ToString().Replace("`\","/")
76+
$entitlements = (Resolve-Path -Path (Join-Path $PSScriptRoot ".." ".." ".." "dotnet-executable-entitlements.plist")).ToString().Replace("`\", "/")
7777

78-
bash -c "codesign --deep -s - -f --options runtime --entitlements $($formattedTarget)/test-proxy-entitlements.plist $($binaryFileBash)"
78+
bash -c "codesign --deep -s - -f --options runtime --entitlements $($entitlements) $($binaryFileBash)"
7979
bash -c "codesign -d --entitlements :- $($binaryFileBash)"
8080
}
8181

0 commit comments

Comments
 (0)