pindo 5.0.7 → 5.0.8

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: cd1d664dc77bc75c43a1816a8316fafb10351c9133a4e9dabf403f010bd1882a
4
- data.tar.gz: 7e4387a7ad42c6830898bd9466a7ea8131ab92429b78ed5ed61479b07eebe44f
3
+ metadata.gz: bbd9ab9e245a2445159ada59a12a793d1540e92b7560ef32cb4296a2fc146b6d
4
+ data.tar.gz: c10f9d424c8a111512689cf6e076984d71de81c71248ea113edef3ebb22261e3
5
5
  SHA512:
6
- metadata.gz: 305e2b32210bf046c6d56a82cff9f799e9bf73672e812aa28e3c78e378b32bc8c4700f5f4f45cfe39e3301427632f6074c2f6b419778c51a21de15dc19d8a676
7
- data.tar.gz: 991b426167216c8c2f95fbd99400314fe807f892a6975300d145ff1e07684611547f6a89df7fbabd634d5f0f076839928fb89a1787977b313e4b1e332029a997
6
+ metadata.gz: bd9326c3c907e9ea350b4a5efab1bb51303708aea1210e601951c5ad8ab8a17f453603e385723f584853c9abb52977c78582ebaa01238504ec8a246763dcd19b
7
+ data.tar.gz: ae18025d46aaac286965ed1323e9070dd092a6dd6223e498be81f1c8141c8c0284e2d8465cb3e8258abd486cb61b95c9de9b1abeca12925bcedf96a6a132f3bb
@@ -282,12 +282,6 @@ module Pindo
282
282
  // 方法1: 最基本的关闭尝试
283
283
  window.close();
284
284
 
285
- // 方法2: 对于某些浏览器需要历史记录操作
286
- window.history.back();
287
-
288
- // 方法3: 空白页替换
289
- window.location.href = "about:blank";
290
-
291
285
  // 方法4: 尝试使用opener关系
292
286
  if (window.opener) {
293
287
  window.opener.focus();
@@ -138,13 +138,20 @@ module Pindo
138
138
  app_info_obj = PgyerHelper.share_instace.prepare_upload(working_directory:Dir.pwd, proj_name:proj_name)
139
139
  end
140
140
 
141
+
141
142
  args_temp = []
142
143
  args_temp << mainapp_bundleid
143
144
  Pindo::Command::Deploy::Pullconfig::run(args_temp)
144
145
 
145
146
  Dir.chdir(pindo_project_dir)
146
147
  config_json_file = File.join(pindo_project_dir,"config.json")
147
- Pindo::Command::Ios::Debug::modify_cert_with_project(project_dir:pindo_project_dir, config_file:config_json_file)
148
+
149
+ scheme_name = @args_proj_name if @args_proj_name
150
+ if !app_info_obj.nil? && !app_info_obj["appName"].nil? && !app_info_obj["appName"].empty?
151
+ scheme_name = app_info_obj["appName"]
152
+ end
153
+
154
+ Pindo::Command::Ios::Debug::modify_cert_with_project(project_dir:pindo_project_dir, config_file:config_json_file, scheme_name:scheme_name)
148
155
 
149
156
  if File.exist?(File.join(pindo_project_dir, "Podfile"))
150
157
 
@@ -104,12 +104,13 @@ module Pindo
104
104
 
105
105
  end
106
106
 
107
- def self.modify_cert_with_project(project_dir:nil, config_file:nil)
107
+ def self.modify_cert_with_project(project_dir:nil, config_file:nil, scheme_name:nil)
108
108
 
109
109
  project_fullname = Dir.glob(File.join(project_dir, "/*.xcodeproj")).max_by {|f| File.mtime(f)}
110
110
  if !project_fullname.nil?
111
111
 
112
112
  entitlements_plist_path = nil
113
+ info_plist_path = nil
113
114
  project_obj = Xcodeproj::Project.open(project_fullname)
114
115
  project_obj.targets.each do |target|
115
116
  if target.product_type.to_s.eql?("com.apple.product-type.application") then
@@ -117,9 +118,26 @@ module Pindo
117
118
  if !temp_entitlements_file.nil? && !temp_entitlements_file.empty?
118
119
  entitlements_plist_path = File.join(project_dir, temp_entitlements_file)
119
120
  end
121
+ temp_info_file = target.build_configurations.first.build_settings['INFOPLIST_FILE']
122
+ if !temp_info_file.nil? && !temp_info_file.empty?
123
+ info_plist_path = File.join(project_dir, temp_info_file)
124
+ end
120
125
  end
121
126
  end
122
-
127
+
128
+ if !info_plist_path.nil? && File.exist?(info_plist_path) && !scheme_name.nil? && !scheme_name.empty?
129
+ scheme_name = scheme_name.to_s.downcase.strip.gsub(/[\s\-_]/, '')
130
+ info_plist_dict = Xcodeproj::Plist.read_from_path(info_plist_path)
131
+ info_plist_dict["CFBundleURLTypes"] = []
132
+ item0 = {}
133
+ item0["CFBundleTypeRole"] = "Editor"
134
+ item0["CFBundleURLName"] = scheme_name
135
+ item0["CFBundleURLSchemes"] = []
136
+ item0["CFBundleURLSchemes"] << scheme_name
137
+ info_plist_dict["CFBundleURLTypes"] << item0
138
+ Xcodeproj::Plist.write_to_path(info_plist_dict, info_plist_path)
139
+ end
140
+
123
141
  # puts entitlements_plist_path
124
142
  if !entitlements_plist_path.nil? && File.exist?(entitlements_plist_path)
125
143
  config_json = nil
data/lib/pindo/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Pindo
2
2
 
3
- VERSION = "5.0.7"
3
+ VERSION = "5.0.8"
4
4
 
5
5
  class VersionCheck
6
6
 
@@ -8,7 +8,6 @@ module Pindo
8
8
 
9
9
  # puts
10
10
  # puts "pindo #{Pindo::VERSION}"
11
-
12
11
  begin
13
12
 
14
13
  pindo_dir = File.expand_path(ENV['PINDO_DIR'] || '~/.pindo')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pindo
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.7
4
+ version: 5.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - wade
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-16 00:00:00.000000000 Z
10
+ date: 2025-04-17 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: claide