Quellcode durchsuchen

Add icons and custom Mac plist to Qt project.

Adam Ierymenko vor 12 Jahren
Ursprung
Commit
74af234305
5 geänderte Dateien mit 27 neuen und 10 gelöschten Zeilen
  1. 20 0
      ZeroTierUI/Info.plist
  2. 6 10
      ZeroTierUI/ZeroTierUI.pro
  3. 1 0
      ZeroTierUI/ZeroTierUI.rc
  4. BIN
      ZeroTierUI/zt1icon.icns
  5. BIN
      ZeroTierUI/zt1icon.ico

+ 20 - 0
ZeroTierUI/Info.plist

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
+<plist version="0.9">
+<dict>
+	<key>NSPrincipalClass</key>
+	<string>NSApplication</string>
+	<key>CFBundleIconFile</key>
+	<string>zt1icon.icns</string>
+	<key>CFBundlePackageType</key>
+	<string>APPL</string>
+	<key>CFBundleGetInfoString</key>
+	<string>ZeroTier One (Mac GUI)</string>
+	<key>CFBundleSignature</key>
+	<string>????</string>
+	<key>CFBundleExecutable</key>
+	<string>ZeroTier One</string>
+	<key>CFBundleIdentifier</key>
+	<string>com.zerotier.ZeroTierOne</string>
+</dict>
+</plist>

+ 6 - 10
ZeroTierUI/ZeroTierUI.pro

@@ -1,16 +1,12 @@
-#-------------------------------------------------
-#
-# Project created by QtCreator 2013-11-13T15:03:09
-#
-#-------------------------------------------------
-
-QT       += core gui
-
-greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
-
+QT       += core gui widgets
 TARGET = "ZeroTier One"
 TEMPLATE = app
 
+win32:RC_FILE = ZeroTierUI.rc
+mac:ICON = zt1icon.icns
+mac:QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6
+mac:QMAKE_INFO_PLIST = Info.plist
+
 # ZeroTier One must be built before building this, since it links in the
 # client code and some stuff from Utils to talk to the running service.
 LIBS += ../node/*.o

+ 1 - 0
ZeroTierUI/ZeroTierUI.rc

@@ -0,0 +1 @@
+IDI_ICON1 ICON DISCARDABLE "zt1icon.ico"

BIN
ZeroTierUI/zt1icon.icns


BIN
ZeroTierUI/zt1icon.ico