diff --git a/README.md b/README.md
index 74596e1..f2fe4c0 100644
--- a/README.md
+++ b/README.md
@@ -6,12 +6,6 @@ This is a client of [TinyPNG](https://tinypng.com) for Mac, with which you can c
[中文](./README_ZH.md)
-### Version 1.0.1
-
-1. Migrate to Swift 5.0, thanks [@gewill](https://github.com/gewill)
-2. Downward compatibility to macOS 10.10
-3. Fixed [#19](https://github.com/kyleduo/TinyPNG4Mac/issues/19), [#22](https://github.com/kyleduo/TinyPNG4Mac/issues/22)
-
### Usage
@@ -24,9 +18,9 @@ This is a client of [TinyPNG](https://tinypng.com) for Mac, with which you can c
### Download
-[From Github](https://github.com/kyleduo/TinyPNG4Mac/releases)
+[Release Page](https://github.com/kyleduo/TinyPNG4Mac/releases)
-[七牛下载](https://static.kyleduo.com/project/release/tinypng4mac/tinypng4mac_1_0_1.app.zip)
+[CDN](https://static.kyleduo.com/project/release/tinypng4mac/tinypng4mac_1_0_1.app.zip)
Check "Anywhere" in `Preferences -> Security & privacy` if you can not open this app. Just for the first time, and I suggest you uncheck it after you open this app for security.
@@ -34,37 +28,42 @@ Check "Anywhere" in `Preferences -> Security & privacy` if you can not open this
[droptogif](https://github.com/mortenjust/droptogif) -- A very useful client for convert video to gif. I learnt how to create window from that project.
-### History
-
-> **Version 1.0.0**
->
-> 1. New icon and interface
-> 2. Support "in place"
-> 3. Improve stability and fix bugs
->
->
->
-> **Version 0.9.3**
->
-> 1. Update to **Swift 3**
-> 2. Add `Pods/` to `.gitignore`
-> 3. Display progress when uploading/downloaing.
->
->
->
-> **Version 0.9.2**
->
-> 1. Support **JPG** and **JPEG**.
->
->
->
-> **Version 0.9 brings a lot of change.**
->
-> 1. Whole new design UI.
-> 2. New workflow and easy to use.
-> 3. Custom ouput path support.
-> 4. Sorted task list.
-> 5. Chinese support.
+### Release Notes
+
+**Version 1.0.2**
+
+1. Fixed [#29](https://github.com/kyleduo/TinyPNG4Mac/issues/29)
+2. Fixed a typo.
+
+**Version 1.0.1**
+
+1. Migrate to Swift 5.0, thanks [@gewill](https://github.com/gewill)
+2. Downward compatibility to macOS 10.10
+3. Fixed [#19](https://github.com/kyleduo/TinyPNG4Mac/issues/19), [#22](
+
+**Version 1.0.0**
+
+1. New icon and interface
+2. Support "in place"
+3. Improve stability and fix bugs
+
+**Version 0.9.3**
+
+1. Update to **Swift 3**
+2. Add `Pods/` to `.gitignore`
+3. Display progress when uploading/downloaing.
+
+**Version 0.9.2**
+
+1. Support **JPG** and **JPEG**.
+
+**Version 0.9 brings a lot of change.**
+
+1. Whole new design UI.
+2. New workflow and easy to use.
+3. Custom ouput path support.
+4. Sorted task list.
+5. Chinese support.
### License
diff --git a/README_ZH.md b/README_ZH.md
index e4f7d0d..8a95c38 100644
--- a/README_ZH.md
+++ b/README_ZH.md
@@ -3,11 +3,7 @@
这是[TinyPNG](https://tinypng.com)的Mac客户端。TinyPNG提供了PNG图片的“几乎无损”压缩服务。使用TinyPNG4Mac,你可以通过简单的拖拽完成对PNG图片的压缩,无需打开浏览器,无需手动下载图片。
-### 1.0.1版本
-
-1. 迁移到Swift 5.0
-2. 向下兼容macOS 10.10
-3. 修复问题 [#19](https://github.com/kyleduo/TinyPNG4Mac/issues/19), [#22](https://github.com/kyleduo/TinyPNG4Mac/issues/22)
+[English](./README.md)
@@ -18,11 +14,13 @@
3. 拖拽图片到窗口中。
+
+
### 下载
-[直接下载](https://github.com/kyleduo/TinyPNG4Mac/releases)
+[Release Page](https://github.com/kyleduo/TinyPNG4Mac/releases)
-[七牛下载](https://static.kyleduo.com/project/release/tinypng4mac/tinypng4mac_1_0_1.app.zip)
+[CDN下载](https://static.kyleduo.com/project/release/tinypng4mac/tinypng4mac_1_0_1.app.zip)
第一次打开可能出现“无法打开”的提示,请到`设置 -> 安全性与隐私`里面勾选`所有来源`。出于安全考虑,建议打开之后关闭这个选项。
@@ -30,31 +28,42 @@
[droptogif](https://github.com/mortenjust/droptogif) -- 实用的视频转Gif的工具。我在里面学习了如何创建Window。
-### 版本历史
-
-> **Version 1.0.0**
->
-> 1. 新设计的icon和界面
-> 2. 支持“替换原图”
-> 3. 修复bug,提升稳定性
->
-> **Version 0.9.3**
->
-> 1. 升级到Swift 3
-> 2. 将`Pod/`添加到`.gitignore`
-> 3. 上传和下载时显示进度
->
-> **Version 0.9.2**
->
-> 1. 支持 **JPG** 和 **JPEG**.
->
-> **0.9版本带来了很多更新**
->
-> 1. 重新设计的UI;
-> 2. 新的流程更加易用,安全;
-> 3. 支持自定义保存路径;
-> 4. 任务列表排序;
-> 5. 支持中文。
+### 更新信息
+
+**Version 1.0.2**
+
+1. 修复 [#29](https://github.com/kyleduo/TinyPNG4Mac/issues/29)
+2. 修复一处拼写错误
+
+**Version 1.0.1**
+
+1. 迁移到Swift 5.0
+2. 向下兼容macOS 10.10
+3. 修复问题 [#19](https://github.com/kyleduo/TinyPNG4Mac/issues/19), [#22](https://github.com/kyleduo/TinyPNG4Mac/issues/22)
+
+**Version 1.0.0**
+
+1. 新设计的icon和界面
+2. 支持“替换原图”
+3. 修复bug,提升稳定性
+
+**Version 0.9.3**
+
+1. 升级到Swift 3
+2. 将`Pod/`添加到`.gitignore`
+3. 上传和下载时显示进度
+
+**Version 0.9.2**
+
+1. 支持 **JPG** 和 **JPEG**.
+
+**0.9版本带来了很多更新**
+
+1. 重新设计的UI;
+2. 新的流程更加易用,安全;
+3. 支持自定义保存路径;
+4. 任务列表排序;
+5. 支持中文。
### 协议
diff --git a/archive/TinyPNG4Mac_1_0_2.zip b/archive/TinyPNG4Mac_1_0_2.zip
new file mode 100644
index 0000000..4e6d496
Binary files /dev/null and b/archive/TinyPNG4Mac_1_0_2.zip differ
diff --git a/archive/tinypng4mac_1_0_1.app.zip b/archive/tinypng4mac_1_0_1.app.zip
deleted file mode 100644
index 49ce9d5..0000000
Binary files a/archive/tinypng4mac_1_0_1.app.zip and /dev/null differ
diff --git a/source/Podfile.lock b/source/Podfile.lock
index 8c42a15..3c3ee46 100644
--- a/source/Podfile.lock
+++ b/source/Podfile.lock
@@ -17,4 +17,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 1e14da6108c97041b7daef307aaa48a8f180f7a4
-COCOAPODS: 1.6.1
+COCOAPODS: 1.7.5
diff --git a/source/tinypng4mac.xcodeproj/project.pbxproj b/source/tinypng4mac.xcodeproj/project.pbxproj
index 9248061..88391d0 100644
--- a/source/tinypng4mac.xcodeproj/project.pbxproj
+++ b/source/tinypng4mac.xcodeproj/project.pbxproj
@@ -218,10 +218,9 @@
};
buildConfigurationList = 277AAF4A1D23F24900788F37 /* Build configuration list for PBXProject "tinypng4mac" */;
compatibilityVersion = "Xcode 3.2";
- developmentRegion = English;
+ developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
- English,
en,
Base,
"zh-Hans",
diff --git a/source/tinypng4mac/Base.lproj/Main.storyboard b/source/tinypng4mac/Base.lproj/Main.storyboard
index 09e6e33..eed71c2 100644
--- a/source/tinypng4mac/Base.lproj/Main.storyboard
+++ b/source/tinypng4mac/Base.lproj/Main.storyboard
@@ -168,7 +168,7 @@
-
+
@@ -176,15 +176,15 @@
-
-
+
+
-
+
@@ -195,7 +195,7 @@
-
+
@@ -216,7 +216,7 @@
-
+
@@ -224,7 +224,7 @@
@@ -450,7 +450,7 @@
-
+
diff --git a/source/tinypng4mac/Info.plist b/source/tinypng4mac/Info.plist
index 8984d5d..397d7c4 100644
--- a/source/tinypng4mac/Info.plist
+++ b/source/tinypng4mac/Info.plist
@@ -17,11 +17,11 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 1.0.1
+ 1.0.2
CFBundleSignature
????
CFBundleVersion
- 8
+ 9
LSMinimumSystemVersion
$(MACOSX_DEPLOYMENT_TARGET)
NSHumanReadableCopyright
diff --git a/source/tinypng4mac/views/InputKeyAlert.swift b/source/tinypng4mac/views/InputKeyAlert.swift
index 28302ab..f7a8ed7 100644
--- a/source/tinypng4mac/views/InputKeyAlert.swift
+++ b/source/tinypng4mac/views/InputKeyAlert.swift
@@ -22,6 +22,7 @@ class InputKeyAlert: NSAlert, NSTextFieldDelegate {
let view = NSView.init(frame: CGRect(x: 0, y: 0, width: 300, height: 54))
self.input = NSTextField.init(frame: CGRect(x: 0, y: 30, width: 300, height: 24))
self.input?.delegate = self
+ self.input?.usesSingleLineMode = true
view.addSubview(self.input!)
let button = self.createRegisterButton()
view.addSubview(button)
@@ -38,7 +39,7 @@ class InputKeyAlert: NSAlert, NSTextFieldDelegate {
let paragraphStyle = NSMutableParagraphStyle.init()
paragraphStyle.alignment = NSTextAlignment.center
let title = NSMutableAttributedString.init(string: NSLocalizedString("Register", comment: "Register"))
- title.addAttributes([NSAttributedString.Key.foregroundColor: NSColor.blue,
+ title.addAttributes([NSAttributedString.Key.foregroundColor: NSColor.linkColor,
NSAttributedString.Key.paragraphStyle:paragraphStyle,
NSAttributedString.Key.underlineStyle:NSUnderlineStyle.single.rawValue], range: NSMakeRange(0, title.length))
button.attributedTitle = title
@@ -60,10 +61,10 @@ class InputKeyAlert: NSAlert, NSTextFieldDelegate {
}
})
}
-
- func controlTextDidEndEditing(_ obj: Notification) {
- if let text = input?.stringValue {
- self.submitButton?.isEnabled = text.count > 0
- }
- }
+
+ func controlTextDidChange(_ obj: Notification) {
+ if let text = input?.stringValue {
+ self.submitButton?.isEnabled = text.count > 0
+ }
+ }
}