fastlane-plugin-alioss 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9d7f563550b5890aeb5993057c5c824f113a27e476e89ef1644d8e69d3eff05
|
4
|
+
data.tar.gz: 740d2892bd25efc1d016349bd900f702044e6290eac771eca29b21243a6d2bc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3caa856284abb8be0c3f5e8afdbf846c22650e17b6f9a9cc36c79911c6cd81b9ef18cadec2b9dfa445ce058fd03bed31f7087f8243866af461e22145e03ec00
|
7
|
+
data.tar.gz: 7fabd288ce9847dda1e3f67344135b2244dcffc8169615987de66ba824da2108dd0ddec4c2d9a5500e3a868acd7659c1492040725499524e4bbae009b0ea659a
|
@@ -59,6 +59,17 @@ module Fastlane
|
|
59
59
|
end
|
60
60
|
UI.message "======================================"
|
61
61
|
|
62
|
+
# 配置logo
|
63
|
+
unless bucket.object_exists?("#{path_for_app_name}/icon.png")
|
64
|
+
input = File.expand_path(UI.input("icon.png不存在,请上传您App的logo(120*120 <= 尺寸 <= 480*480),请输入文件路径(例如:~/Desktop/icon.png):"))
|
65
|
+
# 判断是一个普通文件 && 可读 && 扩展名是png
|
66
|
+
if File.readable_real?(input) && File.extname(input) == ".png"
|
67
|
+
bucket.put_object("#{path_for_app_name}/icon.png", :file => input)
|
68
|
+
UI.message "#{path_for_app_name}/icon.png 配置完成"
|
69
|
+
else
|
70
|
+
UI.important "文件不存在或无权限读写,请确认icon.png的文件路径"
|
71
|
+
end
|
72
|
+
end
|
62
73
|
|
63
74
|
# 必须包含的文件,没有就引导去下载
|
64
75
|
# must_bucket_file = ["app/config.json", "app/index.html"]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-alioss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- woodwu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|