Skip to content

Commit

Permalink
chore: update mac plist
Browse files Browse the repository at this point in the history
  • Loading branch information
rankun committed Mar 28, 2020
1 parent 2e8ed0e commit 2210aa8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
/build/
build-*
*.DS_Store
userdata.ini
userdata.ini
5 changes: 3 additions & 2 deletions QtScrcpy/QtScrcpy.pro
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ win32 {
# windows rc file
RC_FILE = $$PWD/res/QtScrcpy.rc
}

# ***********************************************************
# Mac平台下配置
# ***********************************************************
Expand Down Expand Up @@ -158,12 +159,12 @@ macos {

# mac application icon
ICON = $$PWD/res/QtScrcpy.icns
QMAKE_INFO_PLIST = $$PWD/res/Info_mac.plist
QMAKE_INFO_PLIST = $$PWD/res/Info_Mac.plist

# 定义目标命令(修改版本号字段)
plistupdate.commands = /usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString $$VERSION\" \
-c \"Set :CFBundleVersion $$VERSION\" \
$$QMAKE_INFO_PLIST
$$DESTDIR/$${TARGET}.app/Contents/Info.plist

# 增加额外目标
QMAKE_EXTRA_TARGETS += plistupdate
Expand Down
4 changes: 2 additions & 2 deletions QtScrcpy/res/Info_mac.plist → QtScrcpy/res/Info_Mac.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.3.0</string>
<string>1.0.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1.3.0</string>
<string>1.0.0</string>
<key>LSMinimumSystemVersion</key>
<string>10.10</string>
<key>NSAppleEventsUsageDescription</key>
Expand Down

0 comments on commit 2210aa8

Please sign in to comment.