pindo 5.19.5 → 5.20.0

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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pindo/base/git_handler.rb +3 -3
  3. data/lib/pindo/command/android/autobuild.rb +1 -1
  4. data/lib/pindo/command/appstore/autobuild.rb +1 -1
  5. data/lib/pindo/command/appstore/iap.rb +2 -2
  6. data/lib/pindo/command/appstore/updateid.rb +1 -1
  7. data/lib/pindo/command/ios/autobuild.rb +1 -1
  8. data/lib/pindo/command/ios/podpush.rb +1 -1
  9. data/lib/pindo/command/jps/bind.rb +1 -1
  10. data/lib/pindo/command/jps/media.rb +1 -1
  11. data/lib/pindo/command/jps/upload.rb +1 -1
  12. data/lib/pindo/command/unity/autobuild.rb +1 -1
  13. data/lib/pindo/command/unity/packbuild.rb +1 -1
  14. data/lib/pindo/command/utils/copyconfig.rb +1 -1
  15. data/lib/pindo/command/utils/renewbundleid.rb +1 -1
  16. data/lib/pindo/command/utils/tag.rb +1 -1
  17. data/lib/pindo/command/web/autobuild.rb +1 -1
  18. data/lib/pindo/config/build_info_manager.rb +2 -2
  19. data/lib/pindo/module/appstore/itcapp_helper.rb +1 -1
  20. data/lib/pindo/module/build/swark_helper.rb +1 -1
  21. data/lib/pindo/module/cert/cert_helper.rb +1 -1
  22. data/lib/pindo/module/cert/pem_helper.rb +1 -1
  23. data/lib/pindo/module/task/model/build/ios_build_adhoc_task.rb +1 -1
  24. data/lib/pindo/module/task/model/build/ios_build_appstore_task.rb +1 -1
  25. data/lib/pindo/module/task/model/git/git_commit_task.rb +2 -2
  26. data/lib/pindo/module/utils/git_repo_helper.rb +2 -2
  27. data/lib/pindo/module/xcode/applovin_xcode_helper.rb +1 -1
  28. data/lib/pindo/module/xcode/cocoapods_helper.rb +2 -2
  29. data/lib/pindo/module/xcode/xcode_build_helper.rb +3 -3
  30. data/lib/pindo/module/xcode/xcode_swark_helper.rb +1 -1
  31. data/lib/pindo/version.rb +1 -1
  32. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7cccaa492d62d373f89fd3af414f3536ca43d47a840cc916b2629445cb581e3
4
- data.tar.gz: 70f7ad8f931126af81fb7bceae2f54b35d1adc4d34b3991cde6b3a6c6422b950
3
+ metadata.gz: bfdd53fd055d1904289590732efde4ad99d18f1a994108488197a7adea104e89
4
+ data.tar.gz: fa84818d702744888cff1da0079dcd907f9d6a100770cebe0e8fbe5dc6609af0
5
5
  SHA512:
6
- metadata.gz: 9ac4563509d172649298ca22c6f1459b2805521c2c0aa226f6ba9dacdb95b287814d92c70b5b747ac0be9f783c929f180d430dc72c179b76b764e65922ce30c2
7
- data.tar.gz: 8383a7f60e3970a37e7e3311a6f930dfc9fb68ca49fc56c48ba868678739ed6215ea63d5f326b86ee690afb747a98bede384378e163229094c0e9a2b972c7be9
6
+ metadata.gz: 5c2d62e359af6614bc9b10ce7aafa647ce4da5e67601960f34eec4d4dbfb7ea8ca0ec822a8cfafccf5fedd2c1f5de5afe3b58ea68e488a4f4e07450e917c49e9
7
+ data.tar.gz: 78903763470621e35ada1a8e50d3a477f052363651489de6f8ff1914d9c7e151946fab3d9132f100213d724d39ac3103e9ee4a0a9bfa72fa973181ce3699d38a
@@ -443,7 +443,7 @@ module Pindo
443
443
  return config_repo_dir
444
444
  end
445
445
 
446
- def git_addpush_repo(path:nil, message:"chore(config): 提交配置变更", commit_file_params:nil)
446
+ def git_addpush_repo(path:nil, message:"chore(config): pindo 提交配置变更", commit_file_params:nil)
447
447
  # gitee.com 仓库自动去除代理;is_gitee_repo? 命令已带 -C,无需 chdir
448
448
  if is_gitee_repo?(local_repo_dir: path)
449
449
  return without_proxy { git_addpush_repo_impl(path: path, message: message, commit_file_params: commit_file_params) }
@@ -452,7 +452,7 @@ module Pindo
452
452
  git_addpush_repo_impl(path: path, message: message, commit_file_params: commit_file_params)
453
453
  end
454
454
 
455
- def git_addpush_repo_impl(path:nil, message:"chore(config): 提交配置变更", commit_file_params:nil)
455
+ def git_addpush_repo_impl(path:nil, message:"chore(config): pindo 提交配置变更", commit_file_params:nil)
456
456
  current=Dir.pwd
457
457
  Dir.chdir(path)
458
458
  begin
@@ -620,7 +620,7 @@ module Pindo
620
620
 
621
621
  def handle_commit_all(project_dir, branch, commit_message = nil)
622
622
  # 使用传入的 commit_message,如果没有则使用默认值
623
- message = commit_message || "chore(build): 构建产生提交"
623
+ message = commit_message || "chore(build): pindo 构建产生提交"
624
624
 
625
625
  Funlog.instance.fancyinfo_start("开始提交文件...")
626
626
  git! ['add', '-A']
@@ -297,7 +297,7 @@ module Pindo
297
297
  tag_type: @args_tag_type,
298
298
  tag_pre: @args_tag_pre,
299
299
  process_type: process_type,
300
- commit_message: "feat: android autobuild 构建前提交"
300
+ commit_message: "chore(android): pindo autobuild 构建前提交"
301
301
  )
302
302
  tasks << git_commit_task
303
303
 
@@ -204,7 +204,7 @@ module Pindo
204
204
  tag_pre: @args_tag_pre,
205
205
  fixed_version: fixed_version,
206
206
  process_type: process_type,
207
- commit_message: "feat: appstore autobuild 构建前提交"
207
+ commit_message: "chore(appstore): pindo autobuild 构建前提交"
208
208
  )
209
209
  tasks << git_commit_task
210
210
  last_task = git_commit_task
@@ -150,7 +150,7 @@ module Pindo
150
150
 
151
151
  pindo_dir = File.expand_path(pindo_single_config.pindo_dir)
152
152
  config_repo_dir = File.join(pindo_dir, @bundle_id)
153
- Pindo::GitHandler.git_addpush_repo(path: config_repo_dir, message: "chore(config): 下载应用 iap 配置", commit_file_params: ["fastlane/iap/iap_appstore_download.json"])
153
+ Pindo::GitHandler.git_addpush_repo(path: config_repo_dir, message: "chore(config): pindo 下载应用 iap 配置", commit_file_params: ["fastlane/iap/iap_appstore_download.json"])
154
154
 
155
155
  update_app_share_secrets(app_id: app_id, need_create: false)
156
156
  end
@@ -295,7 +295,7 @@ module Pindo
295
295
  file.close
296
296
  end
297
297
 
298
- Pindo::GitHandler.git_addpush_repo(path: config_repo_dir, message: "chore(config): 更新应用 shared secret", commit_file_params: ["config.json"])
298
+ Pindo::GitHandler.git_addpush_repo(path: config_repo_dir, message: "chore(config): pindo 更新应用 shared secret", commit_file_params: ["config.json"])
299
299
 
300
300
  end
301
301
 
@@ -211,7 +211,7 @@ module Pindo
211
211
  # 只提交 config.json 到 Git 仓库
212
212
  Pindo::GitHandler.git_addpush_repo(
213
213
  path: app_config_dir,
214
- message: "chore(config): 同步 Apple Developer Portal 的 capabilities",
214
+ message: "chore(config): pindo 同步 Apple Developer Portal 的 capabilities",
215
215
  commit_file_params: ["config.json"]
216
216
  )
217
217
 
@@ -266,7 +266,7 @@ module Pindo
266
266
  tag_type: @args_tag_type,
267
267
  tag_pre: @args_tag_pre,
268
268
  process_type: process_type,
269
- commit_message: "feat: ios autobuild 构建前提交"
269
+ commit_message: "chore(ios): pindo autobuild 构建前提交"
270
270
  )
271
271
  tasks << git_commit_task
272
272
 
@@ -270,7 +270,7 @@ module Pindo
270
270
  begin FileUtils.mkdir_p(dest_dir) rescue StandardError => e end
271
271
  FileUtils.cp_r(podspec, File.join(dest_dir, File.basename(podspec)))
272
272
  puts "上传到仓库 #{private_source.repo}"
273
- git_addpush_repo(path:private_source.repo, message:"chore(pod): 添加 #{pod_name} #{tag_name}")
273
+ git_addpush_repo(path:private_source.repo, message:"chore(pod): pindo 添加 #{pod_name} #{tag_name}")
274
274
  end
275
275
  end
276
276
 
@@ -138,7 +138,7 @@ module Pindo
138
138
  project_path,
139
139
  {
140
140
  process_type: process_type,
141
- commit_message: "build: jps bind 绑定前提交"
141
+ commit_message: "chore(jps): pindo bind 绑定前提交"
142
142
  }
143
143
  )
144
144
  tasks << git_commit_task
@@ -131,7 +131,7 @@ module Pindo
131
131
  project_path,
132
132
  {
133
133
  process_type: process_type,
134
- commit_message: "feat: jps media 上传前提交"
134
+ commit_message: "chore(jps): pindo media 上传前提交"
135
135
  }
136
136
  )
137
137
  tasks << git_commit_task
@@ -181,7 +181,7 @@ module Pindo
181
181
 
182
182
  git_options_with_process = git_options.merge({
183
183
  process_type: process_type,
184
- commit_message: "feat: jps upload 构建前提交"
184
+ commit_message: "chore(jps): pindo upload 构建前提交"
185
185
  })
186
186
 
187
187
  # 1.1 Git 提交任务
@@ -252,7 +252,7 @@ module Pindo
252
252
  tag_type: @args_tag_type,
253
253
  tag_pre: @args_tag_pre,
254
254
  process_type: process_type,
255
- commit_message: "feat: unity autobuild 构建前提交"
255
+ commit_message: "chore(unity): pindo autobuild 构建前提交"
256
256
  )
257
257
  all_tasks << git_commit_task
258
258
 
@@ -188,7 +188,7 @@ module Pindo
188
188
  tag_type: @args_tag_type,
189
189
  tag_pre: @args_tag_pre,
190
190
  process_type: process_type,
191
- commit_message: "chore(nuget): 更新 nuget v#{confirmed_version} Release Notes",
191
+ commit_message: "chore(nuget): pindo 更新 nuget v#{confirmed_version} Release Notes",
192
192
  fixed_version: confirmed_version # 传入确认后的版本号
193
193
  )
194
194
  tasks << git_commit_task
@@ -170,7 +170,7 @@ module Pindo
170
170
  # 只提交 config.json
171
171
  Pindo::GitHandler.git_addpush_repo(
172
172
  path: new_config_dir,
173
- message: "chore(config): 初始化 #{@from_bundle_id} 的配置"
173
+ message: "chore(config): pindo 初始化 #{@from_bundle_id} 的配置"
174
174
  )
175
175
 
176
176
  puts
@@ -184,7 +184,7 @@ module Pindo
184
184
  # 提交到 Git 仓库
185
185
  Pindo::GitHandler.git_addpush_repo(
186
186
  path: app_config_dir,
187
- message: "chore(config): 同步 Apple Developer Portal 的 capabilities",
187
+ message: "chore(config): pindo 同步 Apple Developer Portal 的 capabilities",
188
188
  commit_file_params: ["config.json"]
189
189
  )
190
190
 
@@ -92,7 +92,7 @@ module Pindo
92
92
  tag_type: @args_tag_type,
93
93
  tag_pre: @args_tag_pre,
94
94
  process_type: process_type,
95
- commit_message: "feat: tag 操作前提交"
95
+ commit_message: "chore(git): pindo tag 操作前提交"
96
96
  )
97
97
  tasks << git_commit_task
98
98
 
@@ -268,7 +268,7 @@ module Pindo
268
268
  tag_type: @args_tag_type,
269
269
  tag_pre: @args_tag_pre,
270
270
  process_type: process_type,
271
- commit_message: "feat: web autobuild 构建前提交"
271
+ commit_message: "chore(web): pindo autobuild 构建前提交"
272
272
  )
273
273
  tasks << git_commit_task
274
274
 
@@ -220,7 +220,7 @@ module Pindo
220
220
  f.write(JSON.pretty_generate(git_repo_json))
221
221
  end
222
222
 
223
- Pindo::GitHandler.git_addpush_repo(path: pindo_setting_dir, message: "chore(config): 添加 #{repo_name} 仓库")
223
+ Pindo::GitHandler.git_addpush_repo(path: pindo_setting_dir, message: "chore(config): pindo 添加 #{repo_name} 仓库")
224
224
  end
225
225
 
226
226
  # 更新应用配置仓库(从模板复制)
@@ -252,7 +252,7 @@ module Pindo
252
252
  end
253
253
 
254
254
  # 提交并推送到远程仓库
255
- Pindo::GitHandler.git_addpush_repo(path: app_config_dir, message: "chore(config): 初始化应用配置")
255
+ Pindo::GitHandler.git_addpush_repo(path: app_config_dir, message: "chore(config): pindo 初始化应用配置")
256
256
  end
257
257
  end
258
258
 
@@ -186,7 +186,7 @@ module Pindo
186
186
  if File.exist?(app_config_file)
187
187
  modify_appconfig_file(config_file: app_config_file, app_info_detail: app)
188
188
  Pindo::GitHandler.prepare_gitenv()
189
- Pindo::GitHandler.git_addpush_repo(path: app_config_dir, message: "chore(config): 修改 apple id")
189
+ Pindo::GitHandler.git_addpush_repo(path: app_config_dir, message: "chore(config): pindo 修改 apple id")
190
190
  end
191
191
  rescue StandardError => e
192
192
  puts "更新远程配置仓库失败: #{e.message}"
@@ -127,7 +127,7 @@ module Pindo
127
127
  f.write(JSON.pretty_generate(swark_authorize_json))
128
128
  end
129
129
 
130
- Pindo::GitHandler.git_addpush_repo(path: app_config_dir, message: "chore(config): 添加 swark 授权配置")
130
+ Pindo::GitHandler.git_addpush_repo(path: app_config_dir, message: "chore(config): pindo 添加 swark 授权配置")
131
131
  end
132
132
 
133
133
  end
@@ -143,7 +143,7 @@ module Pindo
143
143
 
144
144
  # 提交并推送到远程仓库
145
145
  Pindo::GitHandler.prepare_gitenv()
146
- Pindo::GitHandler.git_addpush_repo(path: cert_repo_dir, message: "chore(cert): 删除 #{apple_id} 的证书")
146
+ Pindo::GitHandler.git_addpush_repo(path: cert_repo_dir, message: "chore(cert): pindo 删除 #{apple_id} 的证书")
147
147
 
148
148
  puts "✓ Git 仓库证书清理完成"
149
149
  end
@@ -65,7 +65,7 @@ module Pindo
65
65
  FileUtils.cp_r(File.join(push_path, "."), push_repo_dir)
66
66
 
67
67
  Pindo::GitHandler.prepare_gitenv()
68
- Pindo::GitHandler.git_addpush_repo(path: app_config_dir, message: "chore(cert): 添加推送证书")
68
+ Pindo::GitHandler.git_addpush_repo(path: app_config_dir, message: "chore(cert): pindo 添加推送证书")
69
69
 
70
70
  puts "✓ 证书已上传到配置仓库: #{push_repo_dir}"
71
71
  end
@@ -200,7 +200,7 @@ module Pindo
200
200
  git_helper = Pindo::GitRepoHelper.share_instance
201
201
  git_helper.git_addpush_repo(
202
202
  path: app_config_repo_dir,
203
- message: "chore(config): 递增 build number",
203
+ message: "chore(config): pindo 递增 build number",
204
204
  commit_file_params: ["config.json"]
205
205
  )
206
206
  end
@@ -173,7 +173,7 @@ module Pindo
173
173
  git_helper = Pindo::GitRepoHelper.share_instance
174
174
  git_helper.git_addpush_repo(
175
175
  path: app_config_repo_dir,
176
- message: "chore(config): 递增 build number",
176
+ message: "chore(config): pindo 递增 build number",
177
177
  commit_file_params: ["config.json"]
178
178
  )
179
179
  end
@@ -27,7 +27,7 @@ module Pindo
27
27
  # - tag_pre: tag前缀,默认 'v'
28
28
  # - fixed_version: 外部指定的固定版本号
29
29
  # - process_type: 未提交文件的处理方式 ('skip', 'commit', 'reset', 'stash'),默认 'skip'
30
- # - commit_message: 提交消息,默认 'chore(build): 构建产生提交'
30
+ # - commit_message: 提交消息,默认 'chore(build): pindo 构建产生提交'
31
31
  #
32
32
  # 版本号计算逻辑:
33
33
  # 1. 如果 fixed_version 为 nil 且 HEAD 存在 tag 且工作目录干净,
@@ -38,7 +38,7 @@ module Pindo
38
38
  # GitCommitTask 特有的属性
39
39
  @fixed_version = options[:fixed_version] # 外部指定的固定版本号
40
40
  @process_type = options[:process_type] || Pindo::UncommittedFilesProcessType::SKIP_WITH_TAG # 默认跳过但打tag
41
- @commit_message = options[:commit_message] || 'chore(build): 构建产生提交' # 默认提交消息
41
+ @commit_message = options[:commit_message] || 'chore(build): pindo 构建产生提交' # 默认提交消息
42
42
 
43
43
  options[:project_path] = project_path
44
44
  # 调用基类初始化(基类会设置 release_branch, ver_inc, tag_type, tag_pre 等通用属性)
@@ -57,7 +57,7 @@ module Pindo
57
57
  current_branch = Pindo::GitHandler.git!(%W(-C #{current_git_root_path} rev-parse --abbrev-ref HEAD)).strip
58
58
  Pindo::GitHandler.git!(%W(-C #{current_git_root_path} add cliff.toml))
59
59
  # .gitignore 已由 check_gitignore 自动添加到暂存区,无需重复添加
60
- commit_message = "docs(config): 添加日志变更配置".encode('UTF-8')
60
+ commit_message = "docs(config): pindo 添加日志变更配置".encode('UTF-8')
61
61
  Pindo::GitHandler.git!(%W(-C #{current_git_root_path} commit -m #{commit_message}))
62
62
  Pindo::GitHandler.git!(%W(-C #{current_git_root_path} push origin #{current_branch}))
63
63
  else
@@ -158,7 +158,7 @@ module Pindo
158
158
  current_branch = Pindo::GitHandler.git!(%W(-C #{git_root_dir} rev-parse --abbrev-ref HEAD)).strip
159
159
 
160
160
  # 提交
161
- commit_message = "chore(config): 更新 .gitignore 规则"
161
+ commit_message = "chore(config): pindo 更新 .gitignore 规则"
162
162
  Pindo::GitHandler.git!(%W(-C #{git_root_dir} commit -m #{commit_message}))
163
163
  Funlog.instance.fancyinfo_success("已自动提交 .gitignore 更改")
164
164
 
@@ -230,7 +230,7 @@ module Pindo
230
230
  begin
231
231
  Pindo::GitHandler.git_addpush_repo(
232
232
  path: config_dir,
233
- message: "chore(config): 更新 Applovin SKAdNetworkItems",
233
+ message: "chore(config): pindo 更新 Applovin SKAdNetworkItems",
234
234
  commit_file_params: ["applovin_client_config.json"]
235
235
  )
236
236
  puts "✓ 配置已保存到远程仓库"
@@ -187,7 +187,7 @@ module Pindo
187
187
  FileUtils.cp(proj_pod_file, File.join(app_config_dir, "Podfile.lock"))
188
188
  Pindo::GitHandler.git_addpush_repo(
189
189
  path: app_config_dir,
190
- message: "chore(pod): 备份 #{app_version} 的 Podfile.lock",
190
+ message: "chore(pod): pindo 备份 #{app_version} 的 Podfile.lock",
191
191
  commit_file_params: ["Podfile.lock"]
192
192
  )
193
193
 
@@ -218,7 +218,7 @@ module Pindo
218
218
 
219
219
  Pindo::GitHandler.git_addpush_repo(
220
220
  path: app_config_dir,
221
- message: "chore(build): 备份 #{app_version} 的构建输出信息",
221
+ message: "chore(build): pindo 备份 #{app_version} 的构建输出信息",
222
222
  commit_file_params: ["build_verify.json"]
223
223
  )
224
224
 
@@ -48,7 +48,7 @@ module Pindo
48
48
  file.close
49
49
  end
50
50
 
51
- git_addpush_repo(path:app_config_dir, message:"chore(build): 回写发布信息", commit_file_params:["build_verify.json"])
51
+ git_addpush_repo(path:app_config_dir, message:"chore(build): pindo 回写发布信息", commit_file_params:["build_verify.json"])
52
52
 
53
53
  if File.exist?(src_pod_file)
54
54
  FileUtils.cp_r(src_pod_file, File.join(project_dir, "Podfile.lock"))
@@ -64,7 +64,7 @@ module Pindo
64
64
  begin
65
65
  proj_pod_file = File.join(project_dir, "Podfile.lock")
66
66
  FileUtils.cp_r(proj_pod_file, File.join(app_config_dir, "Podfile.lock"))
67
- git_addpush_repo(path:app_config_dir, message:"chore(pod): 备份 #{appversion} 的 Podfile.lock", commit_file_params:["Podfile.lock"])
67
+ git_addpush_repo(path:app_config_dir, message:"chore(pod): pindo 备份 #{appversion} 的 Podfile.lock", commit_file_params:["Podfile.lock"])
68
68
 
69
69
  bytes = File.binread(proj_pod_file)
70
70
  checksum = Digest::MD5.hexdigest(bytes)
@@ -84,7 +84,7 @@ module Pindo
84
84
  file.write(JSON.pretty_generate(build_verify_json))
85
85
  file.close
86
86
  end
87
- git_addpush_repo(path:app_config_dir, message:"chore(build): 备份 #{appversion} 的构建输出信息", commit_file_params:["build_verify.json"])
87
+ git_addpush_repo(path:app_config_dir, message:"chore(build): pindo 备份 #{appversion} 的构建输出信息", commit_file_params:["build_verify.json"])
88
88
 
89
89
  rescue => error
90
90
  raise Informative, "保存Podfile.lock 文件失败!!!"
@@ -333,7 +333,7 @@ module Pindo
333
333
  end
334
334
 
335
335
  # 提交到配置仓库
336
- Pindo::GitHandler.git_addpush_repo(path: app_config_dir, message: "chore(config): 完成 swark 授权")
336
+ Pindo::GitHandler.git_addpush_repo(path: app_config_dir, message: "chore(config): pindo 完成 swark 授权")
337
337
 
338
338
  Funlog.instance.fancyinfo_success("Swark 授权完成!")
339
339
  return true
data/lib/pindo/version.rb CHANGED
@@ -6,7 +6,7 @@ require 'time'
6
6
 
7
7
  module Pindo
8
8
 
9
- VERSION = "5.19.5"
9
+ VERSION = "5.20.0"
10
10
 
11
11
  class VersionCheck
12
12
  RUBYGEMS_API = 'https://rubygems.org/api/v1/gems/pindo.json'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pindo
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.19.5
4
+ version: 5.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - wade