fixed plugin gui compile error on mac #4168

This commit is contained in:
Xinyu Hou 2015-02-04 19:11:54 +00:00
parent 1132da4598
commit f6d4cf1c38
5 changed files with 34 additions and 2 deletions

View File

@ -1,3 +1,4 @@
QT += widgets
TARGET = plugindownloader TARGET = plugindownloader
TEMPLATE = app TEMPLATE = app
SOURCES += src/main.cpp \ SOURCES += src/main.cpp \
@ -9,6 +10,14 @@ HEADERS += src/Arguments.h \
FORMS += res/MainDialogBase.ui FORMS += res/MainDialogBase.ui
RESOURCES += res/Synergy.qrc RESOURCES += res/Synergy.qrc
RC_FILE = res/win/Synergy.rc RC_FILE = res/win/Synergy.rc
macx {
QMAKE_INFO_PLIST = res/mac/Info.plist
TARGET = Synergy
QSYNERGY_ICON.files = res/mac/Synergy.icns
QSYNERGY_ICON.path = Contents/Resources
QMAKE_BUNDLE_DATA += QSYNERGY_ICON
LIBS += $$MACX_LIBS
}
win32 { win32 {
Debug:DESTDIR = ../../../bin/Debug Debug:DESTDIR = ../../../bin/Debug
Release:DESTDIR = ../../../bin/Release Release:DESTDIR = ../../../bin/Release

View File

@ -0,0 +1,25 @@
<?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>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>CFBundleIconFile</key>
<string>Synergy.icns</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleExecutable</key>
<string>Synergy</string>
<key>CFBundleIdentifier</key>
<string>synergy</string>
<key>SMPrivilegedExecutables</key>
<dict>
<key>synmacph</key>
<string>anchor apple generic and identifier &quot;synmacph&quot; and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = SP58PFWX5L)</string>
</dict>
</dict>
</plist>

Binary file not shown.

Binary file not shown.

View File

@ -1,8 +1,6 @@
#include "MainDialog.h" #include "MainDialog.h"
#include "Arguments.h" #include "Arguments.h"
#include <QtGui/QApplication>
void parseArgs(Arguments& args, int argc, char* argv[]) void parseArgs(Arguments& args, int argc, char* argv[])
{ {
for (int i = 1; i < argc; i++) { for (int i = 1; i < argc; i++) {