cocoapods-bb-bin 0.2.7.9 → 0.2.7.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64f16d05e05f3b13fa2546b1c5cc2ecd065bb6f1b9bfc06b41dfb033d0668b80
4
- data.tar.gz: 5057b90eef36df11e2163e0669b6f5d3456e602bf890e07fdc10c719e8b404a3
3
+ metadata.gz: 1e334d566dee758f5c2592d2ffc72b863255d1f08759cf59650b4abe59b6e8d2
4
+ data.tar.gz: adddf8822527acd261a9e967e261b3008a996086a507199548d61bbfaf690ea8
5
5
  SHA512:
6
- metadata.gz: 12c4dd03418b86dad8a8e80f19322b4960c7e3c15cafea1f510d40390185d7d413801990a38e4ee68b137d701242952fd344bb0985d696020bc1feeb42aec240
7
- data.tar.gz: '056097447b647990379c0c1d9381a326446f5d952468691553a7365323017b3fb1c6ad33697e7b3f08e108e4a1e6da8b56f6f2f3f6d3b18f07d526361379520b'
6
+ metadata.gz: 9e59446bca139135c8ad404215322afdf29fae1ee434cd7aabfaa85393271a995ed832bedb23fb8b27446c037a463acb0c6e6365219821d3bdf82f145d213117
7
+ data.tar.gz: 445592c43862620d945773a09fd440c4a13fcc54febcccbffb792a58ab01cfc6454caedc9516985caa16a48f7938ffd9185eb1979b257cc9ff3dec679f8afd30
@@ -137,7 +137,11 @@ EOF
137
137
  unless File.exist?(dir)
138
138
  # UI.puts "不存在 = #{dir}"
139
139
  begin
140
- FileUtils.mkdir_p(dir) unless File.exists?(dir) # require 'fileutils'
140
+ unless File.exist?(dir)
141
+ require "fileutils"
142
+ FileUtils.mkdir_p(dir)
143
+ end
144
+ # FileUtils.mkdir_p(dir) unless File.exists?(dir) # require 'fileutils'
141
145
  rescue SystemCallError
142
146
  # mkdir: _fzzfm3x4y17bm6psx9yhbs00000gn: Permission denied
143
147
  unless File.exist?(dir)
@@ -285,7 +289,11 @@ EOF
285
289
 
286
290
  def source_root
287
291
  dir = File.join(@config.cache_root,"Source")
288
- FileUtils.mkdir_p(dir) unless File.exist? dir
292
+ unless File.exist?(dir)
293
+ require "fileutils"
294
+ FileUtils.mkdir_p(dir)
295
+ end
296
+ # FileUtils.mkdir_p(dir) unless File.exist? dir
289
297
  dir
290
298
  end
291
299
 
@@ -215,7 +215,11 @@ module CBin
215
215
  # root_name = File.join(parent_dir,"#{basename}-build-temp")
216
216
  # Dir.mkdir(root_name) unless File.exist?root_name
217
217
  root_name = File.join(parent_dir,"/build/#{basename}") # 统一修改build目录
218
- FileUtils.mkdir_p(root_name) unless File.exists?(root_name) # require 'fileutils'
218
+ unless File.exist?(root_name)
219
+ require "fileutils"
220
+ FileUtils.mkdir_p(root_name)
221
+ end
222
+ # FileUtils.mkdir_p(root_name) unless File.exists?(root_name) # require 'fileutils'
219
223
  Pathname.new(root_name)
220
224
  end
221
225
 
@@ -1,7 +1,7 @@
1
1
  require 'cocoapods'
2
2
 
3
3
  module CBin
4
- VERSION = '0.2.7.9'
4
+ VERSION = '0.2.7.11'
5
5
  end
6
6
 
7
7
  module Pod
@@ -95,7 +95,11 @@ module CBin
95
95
  FileUtils.rm_rf(target_dir) if File.exist?(target_dir)
96
96
 
97
97
  zip_dir = CBin::Config::Builder.instance.zip_dir
98
- FileUtils.mkdir_p(zip_dir) unless File.exist?(zip_dir)
98
+ unless File.exist?(zip_dir)
99
+ require "fileutils"
100
+ FileUtils.mkdir_p(zip_dir)
101
+ end
102
+ # FileUtils.mkdir_p(zip_dir) unless File.exist?(zip_dir)
99
103
 
100
104
  `cp -fa #{@platform}/#{framework_name} #{target_dir}`
101
105
  end
@@ -37,8 +37,12 @@ module CBin
37
37
 
38
38
  def write_spec_file(file = filename)
39
39
  create unless spec
40
-
41
- FileUtils.mkdir_p(CBin::Config::Builder.instance.binary_json_dir) unless File.exist?(CBin::Config::Builder.instance.binary_json_dir)
40
+ dir = CBin::Config::Builder.instance.binary_json_dir
41
+ unless File.exist?(dir)
42
+ require "fileutils"
43
+ FileUtils.mkdir_p(dir)
44
+ end
45
+ # FileUtils.mkdir_p(dir) unless File.exist?(dir)
42
46
  FileUtils.rm_rf(file) if File.exist?(file)
43
47
 
44
48
  File.open(file, 'w+') do |f|
@@ -88,11 +88,24 @@ module CBin
88
88
  def binary_upload(zip_file)
89
89
  res = File.file?(zip_file)
90
90
  if res
91
+ url=CBin.config.binary_upload_url
91
92
  print <<EOF
92
93
  上传二进制文件: #{@spec.name} (#{@spec.version})
93
- curl #{CBin.config.binary_upload_url} -F "name=#{@spec.name}" -F "version=#{@spec.version}" -F "annotate=#{@spec.name}_#{@spec.version}_log" -F "file=@#{zip_file}"
94
+ curl #{url} -F "name=#{@spec.name}" -F "version=#{@spec.version}" -F "annotate=#{@spec.name}_#{@spec.version}_log" -F "file=@#{zip_file}"
94
95
  EOF
95
- `curl #{CBin.config.binary_upload_url} -F "name=#{@spec.name}" -F "version=#{@spec.version}" -F "annotate=#{@spec.name}_#{@spec.version}_log" -F "file=@#{zip_file}"` if res
96
+ result = `curl #{url} -F "name=#{@spec.name}" -F "version=#{@spec.version}" -F "annotate=#{@spec.name}_#{@spec.version}_log" -F "file=@#{zip_file}"`
97
+ if result.include?("#{@spec.name} (#{@spec.version})") # 保存成功 BBUnityFramework (1.0.4.0)
98
+ res=true
99
+ else
100
+ puts "curl上传出错,❌错误信息如下:".red
101
+ puts "#{result}"
102
+ puts "FAQ:帮助快速解决问题\
103
+ \n错误吗=308 Permanent Redirect,记得请求url带上https \
104
+ \n错误吗=413 Request Entity Too Large,运维限制域名访问大小 \
105
+ \n其它错误@hm排查原因
106
+ ".red
107
+ res=false
108
+ end
96
109
  end
97
110
  res
98
111
  end
@@ -68,7 +68,11 @@ module CBin
68
68
  FileUtils.rm_rf(target_dir) if File.exist?(target_dir)
69
69
 
70
70
  zip_dir = CBin::Config::Builder.instance.zip_dir
71
- FileUtils.mkdir_p(zip_dir) unless File.exist?(zip_dir)
71
+ unless File.exist?(zip_dir)
72
+ require "fileutils"
73
+ FileUtils.mkdir_p(zip_dir)
74
+ end
75
+ # FileUtils.mkdir_p(zip_dir) unless File.exist?(zip_dir)
72
76
 
73
77
  UI.puts "Compressing #{framework_file_path} into #{target_dir}"
74
78
  `cp -fa #{framework_file_path} #{target_dir} && rm -rf #{framework_folder_path}` # xcframework文件拷贝 & 删除源文件
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-bb-bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7.9
4
+ version: 0.2.7.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - humin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-25 00:00:00.000000000 Z
11
+ date: 2023-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
206
206
  - !ruby/object:Gem::Version
207
207
  version: '0'
208
208
  requirements: []
209
- rubygems_version: 3.4.20
209
+ rubygems_version: 3.4.22
210
210
  signing_key:
211
211
  specification_version: 4
212
212
  summary: cocoapods-bb-bin is a plugin which helps develpers switching pods between