Skip to content

Commit

Permalink
version using date time and commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
fuji246 committed Jun 4, 2019
1 parent ff6d861 commit 27eb0b3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion LomoAgent/AboutWindow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class AboutWindow: NSWindowController {
NSApp.activate(ignoringOtherApps: true)

if let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String {
versionLabel.stringValue = "v\(version)"
versionLabel.stringValue = "ver: \(version)"
}

}
Expand Down
2 changes: 1 addition & 1 deletion LomoAgent/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extension OSLog {
class AppDelegate: NSObject, NSApplicationDelegate {

func applicationWillFinishLaunching(_ aNotification: Notification) {
let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as! String
let version = Bundle.main.infoDictionary?["CFBundleVersion"] as! String
let arguments = CommandLine.arguments
var exit = false
for arg in arguments {
Expand Down
18 changes: 9 additions & 9 deletions LomoAgent/Base.lproj/AboutWindow.xib
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,6 @@
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="whH-lp-w3F">
<rect key="frame" x="112" y="180" width="48" height="17"/>
<autoresizingMask key="autoresizingMask"/>
<textFieldCell key="cell" lineBreakMode="clipping" alignment="center" title="version" id="Iox-9E-p6j">
<font key="font" metaFont="system"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="au3-O2-T7i">
<rect key="frame" x="40" y="47" width="192" height="119"/>
<autoresizingMask key="autoresizingMask"/>
Expand All @@ -71,6 +62,15 @@
<userDefinedRuntimeAttribute type="string" keyPath="href" value="https://lomorage.com/"/>
</userDefinedRuntimeAttributes>
</textField>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="whH-lp-w3F">
<rect key="frame" x="68" y="180" width="137" height="17"/>
<autoresizingMask key="autoresizingMask"/>
<textFieldCell key="cell" lineBreakMode="clipping" alignment="center" title="version" id="Iox-9E-p6j">
<font key="font" metaFont="system"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
</subviews>
</view>
<connections>
Expand Down
4 changes: 2 additions & 2 deletions LomoAgent/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>0.2</string>
<string>ff6d861</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>2019_06_04.09_09_24.0.ff6d861</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSUIElement</key>
Expand Down

0 comments on commit 27eb0b3

Please sign in to comment.