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: f7a43784953093e2e3c2d236ed68708419d87535fb298cafb59c4b8c9acb0ba2
4
- data.tar.gz: ddefb9c0b4e914e9cf60929c3d11a725fb0ed3287cb1db72ef7d35c1957a6cd8
3
+ metadata.gz: f9d7f563550b5890aeb5993057c5c824f113a27e476e89ef1644d8e69d3eff05
4
+ data.tar.gz: 740d2892bd25efc1d016349bd900f702044e6290eac771eca29b21243a6d2bc3
5
5
  SHA512:
6
- metadata.gz: 82dc006553d7303996364c6deba35470908405400e4729078740b6a4198569bd65f20f13d07bc796bf3b9757b7765d75ba392aa3e1df833de94c3acc590624d1
7
- data.tar.gz: 7cdd5c71ff797b1f17aed526152b06a6d8489d4bb75466766c4166135bddfaa523c88109e4f9270870912cfd207fe5d70f95d446b432dc590e6779ec6786e4a6
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"]
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Alioss
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
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.7
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-13 00:00:00.000000000 Z
11
+ date: 2019-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry