example 'meshtastic': fix macOS version

This commit is contained in:
pls.153 2023-08-01 11:41:09 +02:00
parent 40af793f6b
commit 4c39d57633
3 changed files with 35 additions and 2 deletions

View file

@ -46,6 +46,10 @@ linux: LIBS += -L../../../platforms/linux/lib
macx: LIBS += -L../../../platforms/macos/lib
win32: LIBS += -L../../../platforms/windows/lib
macx {
QMAKE_INFO_PLIST = platforms/macos/Info.plist
}
win32 {
LIBS += -lws2_32

View file

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string>${ASSETCATALOG_COMPILER_APPICON_NAME}</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>${QMAKE_PKGINFO_TYPEINFO}</string>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
<key>NOTE</key>
<string>This file was generated by Qt/QMake.</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
<key>NSBluetoothAlwaysUsageDescription</key>
<string>For connecting to meshtastic radio devices.</string>
</dict>
</plist>

View file

@ -51,8 +51,11 @@ dependency of cl-sqlite) currently needs a small hack to even work on mobile.
Tested
------
Tested on Linux, macOS, android, iOS. The macOS version shows an ECL exception
during BLE ini, but works nevertheless.
Tested on Linux, macOS, android, iOS.
The macOS version must be compiled first and started from Finder (not the
console), otherwise BLE permissions will not work (if run from console, the app
will show a BLE exception and consume 100% CPU).
It should also work on Windows >= 10, but this is not tested yet.