Skip to content

Commit e95dc90

Browse files
committed
Merge branch 'release/V1.3'
2 parents 245bcd9 + 7106e3b commit e95dc90

6 files changed

Lines changed: 19 additions & 7 deletions

File tree

OpenFile.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@
526526
"@executable_path/../Frameworks",
527527
);
528528
MACOSX_DEPLOYMENT_TARGET = 10.13;
529-
MARKETING_VERSION = 1.2;
529+
MARKETING_VERSION = 1.3;
530530
PRODUCT_BUNDLE_IDENTIFIER = houmeng.OpenFile;
531531
PRODUCT_NAME = "$(TARGET_NAME)";
532532
SWIFT_VERSION = 5.0;
@@ -549,7 +549,7 @@
549549
"@executable_path/../Frameworks",
550550
);
551551
MACOSX_DEPLOYMENT_TARGET = 10.13;
552-
MARKETING_VERSION = 1.2;
552+
MARKETING_VERSION = 1.3;
553553
PRODUCT_BUNDLE_IDENTIFIER = houmeng.OpenFile;
554554
PRODUCT_NAME = "$(TARGET_NAME)";
555555
SWIFT_VERSION = 5.0;

OpenFile.xcodeproj/xcuserdata/HouMeng.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>OpenFile.xcscheme_^#shared#^_</key>
88
<dict>
99
<key>orderHint</key>
10-
<integer>5</integer>
10+
<integer>6</integer>
1111
</dict>
1212
</dict>
1313
</dict>

OpenFile/Info.plist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,9 @@
3838
<true/>
3939
<key>NSSupportsSuddenTermination</key>
4040
<true/>
41+
<key>SUFeedURL</key>
42+
<string>https://nlnlnull.github.io/OpenFile/appcast.xml</string>
43+
<key>SUPublicEDKey</key>
44+
<string>mlAnWwD5PcINpVSLEZi/qImGtO2k7h5x/JAKwRgyDyA=</string>
4145
</dict>
4246
</plist>

OpenFile/Main.storyboard

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<outlet property="statusMenu" destination="qWY-tW-89H" id="tF6-v0-l7p"/>
5050
</connections>
5151
</customObject>
52+
<customObject id="uN7-1I-SGm" customClass="SUUpdater"/>
5253
<menu id="qWY-tW-89H">
5354
<items>
5455
<menuItem title="偏好设置" keyEquivalent="" id="rMY-48-dQ6">
@@ -61,6 +62,12 @@
6162
<action selector="clearAddedFile:" target="Wbg-Gb-Ihh" id="4Gt-qt-ItK"/>
6263
</connections>
6364
</menuItem>
65+
<menuItem title="检查更新" id="E6t-Wu-t9V">
66+
<modifierMask key="keyEquivalentModifierMask"/>
67+
<connections>
68+
<action selector="checkForUpdates:" target="uN7-1I-SGm" id="leL-FV-C93"/>
69+
</connections>
70+
</menuItem>
6471
<menuItem isSeparatorItem="YES" id="jCa-jD-TvC"/>
6572
<menuItem title="退出" keyEquivalent="q" id="GMy-nS-wuu">
6673
<connections>

OpenFile/Main/HmMainWindowController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ class HmMainWindowController: NSWindowController {
1717
func show(button: NSButton?) {
1818

1919
guard let button = button, let buttonWindow = button.window, let window = self.window else { return }
20-
showWindow(button)
21-
window.makeKeyAndOrderFront(self)
2220
let frameOrigin = buttonWindow.frame.origin
2321

2422
let screenWidth = NSScreen.main?.frame.width ?? 0
@@ -33,13 +31,15 @@ class HmMainWindowController: NSWindowController {
3331
if right > screenMaxX {
3432
left = left - ((right - screenMaxX) + 10)
3533
} else if left < screenMinX {
36-
// left = screenMinX + 10
3734
left = screenMaxX - window.frame.width - 10
3835
}
3936

4037

4138
let yourPoint = CGPoint(x: left, y: top)
4239
window.setFrameOrigin(yourPoint)
4340
NSApp.activate(ignoringOtherApps: true)
41+
showWindow(NSScreen.main)
42+
window.makeKeyAndOrderFront(NSScreen.main)
43+
4444
}
4545
}

Podfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment the next line to define a global platform for your project
2-
# platform :ios, '9.0'
2+
platform :osx, '10.13'
33
source 'https://cdn.cocoapods.org/'
44
install! 'cocoapods', :generate_multiple_pod_projects => true
55
target 'OpenFile' do
@@ -8,6 +8,7 @@ target 'OpenFile' do
88
pod 'SnapKit'
99
pod 'MASShortcut'
1010
pod 'LoginServiceKit', :git => 'https://github.com/Clipy/LoginServiceKit.git'
11+
pod 'Sparkle'
1112
# Pods for OpenFile
1213

1314
end

0 commit comments

Comments
 (0)