add custom Info.plist (#1608)

This commit is contained in:
Le Tan 2020-12-18 19:17:01 -08:00 committed by GitHub
parent e454ea6e61
commit dd935b5f90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 1 deletions

1
.gitignore vendored
View File

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

32
src/data/core/Info.plist Normal file
View File

@ -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>

View File

@ -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