Browse Source

add custom Info.plist (#1608)

Le Tan 4 years ago
parent
commit
dd935b5f90
3 changed files with 34 additions and 1 deletions
  1. 0 1
      .gitignore
  2. 32 0
      src/data/core/Info.plist
  3. 2 0
      src/src.pro

+ 0 - 1
.gitignore

@@ -3,4 +3,3 @@
 .ccls
 compile_commands.json
 compile_flags.txt
-*.plist

+ 32 - 0
src/data/core/Info.plist

@@ -0,0 +1,32 @@
+<?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>vnote</string>
+    <key>CFBundleShortVersionString</key>
+    <string>3.0.0</string>
+    <key>CFBundleVersion</key>
+    <string>3.0.0.2</string>
+    <key>NSHumanReadableCopyright</key>
+    <string>Created by VNoteX</string>
+    <key>CFBundleIconFile</key>
+    <string>vnote.icns</string>
+    <key>CFBundleIdentifier</key>
+    <string>com.vnotex.vnote</string>
+    <key>CFBundlePackageType</key>
+    <string>APPL</string>
+    <key>CFBundleSignature</key>
+    <string>????</string>
+    <key>LSMinimumSystemVersion</key>
+    <string>10.12</string>
+    <key>NOTE</key>
+    <string>Visit [GitHub VNote](https://github.com/vnotex/vnote) for details.</string>
+    <key>NSPrincipalClass</key>
+    <string>NSApplication</string>
+    <key>NSSupportsAutomaticGraphicsSwitching</key>
+    <true/>
+    <key>NSRequiresAquaSystemAppearance</key>
+    <true/>
+</dict>
+</plist>

+ 2 - 0
src/src.pro

@@ -62,6 +62,8 @@ QMAKE_EXTRA_COMPILERS += rcc_binary
 OTHER_FILES += $$RCC_BINARY_SOURCES
 
 macx {
+    QMAKE_INFO_PLIST = data/core/Info.plist
+
     # Process VTextEdit framework
     vte_lib_name = VTextEdit
     vte_lib_dir = $${OUT_PWD}/../libs/vtextedit/src/editor