Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
- update app version to v1.3
- add version indicator
  • Loading branch information
dshnkao committed Apr 25, 2017
1 parent 2dcfafe commit 426d4ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions SpaceId/Application/StatusItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class StatusItem: NSObject, NSMenuDelegate {
let opt = NSMenuItem(title: "Options", action: nil, keyEquivalent: "")
let quit = NSMenuItem(title: "Quit", action: #selector(quit(_:)), keyEquivalent: "")
quit.target = self
let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") ?? "0"
menu.addItem(NSMenuItem(title: "v\(version)", action: nil, keyEquivalent: ""))
menu.addItem(NSMenuItem.separator())
menu.addItem(pref)
menu.setSubmenu(preferenceMenu(), for: pref)
menu.addItem(opt)
Expand Down
4 changes: 2 additions & 2 deletions SpaceId/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<string>1.3</string>
<key>CFBundleVersion</key>
<string>3</string>
<string>4</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
Expand Down

0 comments on commit 426d4ec

Please sign in to comment.