microsoft/openvmm

Public

mirrored fromhttps://github.com/microsoft/openvmmAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
cc6892b1d29a05c6323d2c2bcf637a3f572b3538

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

build_support/macos/sign_and_run.sh

15lines · modepreview

#!/bin/sh

set -e

case "$CARGO_PKG_NAME" in
    "openvmm"|"tmk_vmm")
        # Add entitlements for using hypervisor framework.
        entitlements=$(dirname "$0")/entitlements.xml
        codesign --entitlements "$entitlements" -f -s - "$1" > /dev/null
        ;;
    *)
        ;;
esac

exec "$@"