From d907c213239715957473a9b580294735f89412c8 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Mon, 17 May 2021 17:12:51 +0100 Subject: [PATCH] Fixes for MacOS build - sandbox --- Info.plist | 28 ++++++++++++++++++++++++++++ wfview.entitlements | 22 ++++++++++++++++++++++ wfview.pro | 8 +++++++- 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 Info.plist create mode 100644 wfview.entitlements diff --git a/Info.plist b/Info.plist new file mode 100644 index 0000000..b0628ba --- /dev/null +++ b/Info.plist @@ -0,0 +1,28 @@ + + + + + CFBundleExecutable + wfview + CFBundleIconFile + wfview.icns + CFBundleIdentifier + org.wfview.wfview + CFBundlePackageType + APPL + CFBundleSignature + ???? + LSMinimumSystemVersion + 10.13 + NOTE + Open Source interface for Icom transceivers + NSPrincipalClass + NSApplication + NSSupportsAutomaticGraphicsSwitching + + NSMicrophoneUsageDescription + Microphone required for TX audio + NSDownloadsFolderUsageDescription + Storing temporary files + + diff --git a/wfview.entitlements b/wfview.entitlements new file mode 100644 index 0000000..0e038ba --- /dev/null +++ b/wfview.entitlements @@ -0,0 +1,22 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.device.audio-input + + com.apple.security.device.bluetooth + + com.apple.security.device.usb + + com.apple.security.files.user-selected.read-write + + com.apple.security.files.downloads.read-write + + com.apple.security.network.client + + com.apple.security.network.server + + + diff --git a/wfview.pro b/wfview.pro index f183808..0e776f3 100644 --- a/wfview.pro +++ b/wfview.pro @@ -36,8 +36,14 @@ DEFINES += RANDOM_PREFIX=wf macx:INCLUDEPATH += /usr/local/include /opt/local/include macx:LIBS += -L/usr/local/lib -L/opt/local/lib -macx:ICON = wfview.icns +macx:ICON = ../wfview/wfview.icns + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13 +QMAKE_TARGET_BUNDLE_PREFIX = org.wfview +MY_ENTITLEMENTS.name = CODE_SIGN_ENTITLEMENTS +MY_ENTITLEMENTS.value = ../wfview/wfview.entitlements +QMAKE_MAC_XCODE_SETTINGS += MY_ENTITLEMENTS +QMAKE_INFO_PLIST = ../wfview/Info.plist !win32:DEFINES += HOST=\\\"`hostname`\\\" UNAME=\\\"`whoami`\\\"