From e2d72d45100da2a0ac8e62fcd56472e5c862596b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A?= Date: Sat, 25 Mar 2023 19:38:36 +0800 Subject: [PATCH] update --- example/Info.plist | 28 ++++++++++++++++++++++++++++ example/example.pro | 14 +------------- src/macos_install.sh | 0 3 files changed, 29 insertions(+), 13 deletions(-) create mode 100644 example/Info.plist mode change 100644 => 100755 src/macos_install.sh diff --git a/example/Info.plist b/example/Info.plist new file mode 100644 index 0000000..23f254d --- /dev/null +++ b/example/Info.plist @@ -0,0 +1,28 @@ + + + + + CFBundleExecutable + example + CFBundleIconFile + + CFBundleIdentifier + com.yourcompany.example + CFBundlePackageType + APPL + CFBundleSignature + ???? + LSMinimumSystemVersion + 10.14 + NOTE + This file was generated by Qt/QMake. + NSPrincipalClass + NSApplication + NSSupportsAutomaticGraphicsSwitching + + CFBundleDevelopmentRegion + en + CFBundleAllowMixedLocalizations + + + diff --git a/example/example.pro b/example/example.pro index e06f4a6..3212a08 100644 --- a/example/example.pro +++ b/example/example.pro @@ -1,6 +1,6 @@ QT += quick concurrent network multimedia CONFIG += c++11 - +CONFIG -= app_bundle DEFINES += QT_DEPRECATED_WARNINGS QT_NO_WARNING_OUTPUT SOURCES += \ @@ -8,17 +8,8 @@ SOURCES += \ main.cpp RESOURCES += qml.qrc - RC_ICONS = favicon.ico - -#qnx: target.path = /tmp/$${TARGET}/bin -#else: unix:!android: target.path = /opt/$${TARGET}/bin -#!isEmpty(target.path): INSTALLS += target - -# Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = - -# Additional import path used to resolve QML modules just for Qt Quick Designer QML_DESIGNER_IMPORT_PATH = CONFIG(debug,debug|release) { DESTDIR = $$absolute_path($${_PRO_FILE_PWD_}/../bin/debug) @@ -27,7 +18,6 @@ CONFIG(debug,debug|release) { } win32 { - contains(QT_ARCH, i386) { COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x86/*.dll) $$DESTDIR contains(QMAKE_CC, cl) { @@ -43,9 +33,7 @@ contains(QT_ARCH, i386) { QMAKE_PRE_LINK += $$QMAKE_COPY $$COPYDLL } } - } - HEADERS += \ ChatController.h diff --git a/src/macos_install.sh b/src/macos_install.sh old mode 100644 new mode 100755