pindo 5.15.10 → 5.15.12
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 +4 -4
- data/lib/pindo/module/pgyer/pgyerhelper.rb +7 -2
- data/lib/pindo/module/task/model/unity/unity_yoo_asset_task.rb +3 -1
- data/lib/pindo/module/unity/unity_command_helper.rb +10 -4
- data/lib/pindo/module/unity/unity_helper.rb +14 -3
- data/lib/pindo/options/core/global_options_state.rb +1 -1
- data/lib/pindo/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 91922a7d79b8c298a7a6032713b5de285fa0df1c4a429449fbbf718f37c2c937
|
|
4
|
+
data.tar.gz: a9279fb764492b9f9deccde186fcd61a2590de82f1c3c9ca7069ce02c022b1e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 11e79e3ae9af23eb59b5d2abc4d06456658c8ecd1d841a0106e8b9833bbba5c86592b5b15025669e800f24da24848ac431898d780163f6b4c5f76bcaf871c01b
|
|
7
|
+
data.tar.gz: 885ee1532e0babcdca356261048a6043f2d5f7d480e8cee5eedb245e91ae0282f3e2288aaaacb059d653b012b6bbabfd61992a8e6e166aa89aa9389c19659fb2
|
|
@@ -219,6 +219,10 @@ module Pindo
|
|
|
219
219
|
w['packageType'] == 'apk'
|
|
220
220
|
when 'zip'
|
|
221
221
|
w['packageType'] == 'zip'
|
|
222
|
+
when 'app'
|
|
223
|
+
w['packageType'] == 'mac'
|
|
224
|
+
when 'exe'
|
|
225
|
+
w['packageType'] == 'exe'
|
|
222
226
|
else
|
|
223
227
|
true
|
|
224
228
|
end
|
|
@@ -232,6 +236,8 @@ module Pindo
|
|
|
232
236
|
when 'ipa' then 'iOS IPA'
|
|
233
237
|
when 'apk' then 'Android APK'
|
|
234
238
|
when 'zip' then 'WebGL'
|
|
239
|
+
when 'app' then 'macOS App'
|
|
240
|
+
when 'exe' then 'Windows EXE'
|
|
235
241
|
else package_type
|
|
236
242
|
end
|
|
237
243
|
|
|
@@ -698,8 +704,7 @@ module Pindo
|
|
|
698
704
|
end
|
|
699
705
|
|
|
700
706
|
if !ipa_file_upload.nil? &&
|
|
701
|
-
File.extname(ipa_file_upload).eql?(".app")
|
|
702
|
-
File.extname(ipa_file_upload).eql?(".apk")
|
|
707
|
+
File.extname(ipa_file_upload).eql?(".app")
|
|
703
708
|
|
|
704
709
|
mac_app_path = ipa_file_upload
|
|
705
710
|
ipa_base_dir = File.dirname(ipa_file_upload)
|
|
@@ -130,6 +130,8 @@ module Pindo
|
|
|
130
130
|
|
|
131
131
|
cmd = "#{@unity_exe_path} -batchmode -quit " \
|
|
132
132
|
"-projectPath #{@unity_root_path} " \
|
|
133
|
+
"-buildTarget #{platform_name} " \
|
|
134
|
+
"-logFile #{@unity_root_path}/Library/Logs/unity.log " \
|
|
133
135
|
"-executeMethod Yoo.Editor.YooCommandHelper.BatchBuild " \
|
|
134
136
|
"-platform #{platform_name}"
|
|
135
137
|
|
|
@@ -153,4 +155,4 @@ module Pindo
|
|
|
153
155
|
end
|
|
154
156
|
end
|
|
155
157
|
end
|
|
156
|
-
end
|
|
158
|
+
end
|
|
@@ -18,7 +18,7 @@ module Pindo
|
|
|
18
18
|
# @param method [String] Unity 方法名(默认: GoodUnityBuild.BuildManager.BatchBuild)
|
|
19
19
|
# @param additional_args [Hash] 额外参数
|
|
20
20
|
# @return [Hash] 执行结果 { success:, stdout:, stderr:, exit_status:, unity_version: }
|
|
21
|
-
def self.execute_unity_command(unity_exe_full_path, project_path, method: 'GoodUnityBuild.BuildManager.BatchBuild', additional_args: {})
|
|
21
|
+
def self.execute_unity_command(unity_exe_full_path, project_path, build_target: nil, method: 'GoodUnityBuild.BuildManager.BatchBuild', additional_args: {})
|
|
22
22
|
if unity_exe_full_path.nil?
|
|
23
23
|
raise Informative, "Unity path not found!"
|
|
24
24
|
end
|
|
@@ -45,11 +45,17 @@ module Pindo
|
|
|
45
45
|
"-batchmode",
|
|
46
46
|
"-quit",
|
|
47
47
|
"-projectPath",
|
|
48
|
-
project_path.to_s
|
|
49
|
-
"-executeMethod",
|
|
50
|
-
method
|
|
48
|
+
project_path.to_s
|
|
51
49
|
]
|
|
52
50
|
|
|
51
|
+
if build_target
|
|
52
|
+
cmd_args << "-buildTarget"
|
|
53
|
+
cmd_args << build_target.to_s
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
cmd_args << "-executeMethod"
|
|
57
|
+
cmd_args << method
|
|
58
|
+
|
|
53
59
|
# Add any additional arguments
|
|
54
60
|
additional_args.each do |key, value|
|
|
55
61
|
cmd_args << "-#{key}"
|
|
@@ -57,7 +57,9 @@ module Pindo
|
|
|
57
57
|
unity_exe_full_path,
|
|
58
58
|
project_path,
|
|
59
59
|
method: 'GoodUnityBuild.BuildManager.PrintLibraryVersion',
|
|
60
|
-
additional_args: {
|
|
60
|
+
additional_args: {
|
|
61
|
+
logFile: File.join(project_path, "Library", "Logs", "unity.log")
|
|
62
|
+
}
|
|
61
63
|
)
|
|
62
64
|
|
|
63
65
|
return unless result[:success]
|
|
@@ -120,11 +122,13 @@ module Pindo
|
|
|
120
122
|
additional_args[:buildtype] = 'library' if isLibrary
|
|
121
123
|
additional_args[:indexno] = indexNo if indexNo
|
|
122
124
|
additional_args[:deploymode] = deployMode || 'dev' if deployMode || true # 默认为 dev
|
|
125
|
+
additional_args[:logFile] = File.join(project_path, "Library", "Logs", "unity.log")
|
|
123
126
|
|
|
124
127
|
# 使用GoodUnityBuild.BuildManager.BatchBuild进行导出
|
|
125
128
|
result = UnityCommandHelper.execute_unity_command(
|
|
126
129
|
unity_exe_full_path,
|
|
127
130
|
project_path,
|
|
131
|
+
build_target: platform,
|
|
128
132
|
method: 'GoodUnityBuild.BuildManager.BatchBuild',
|
|
129
133
|
additional_args: additional_args
|
|
130
134
|
)
|
|
@@ -211,11 +215,13 @@ module Pindo
|
|
|
211
215
|
|
|
212
216
|
additional_args = {}
|
|
213
217
|
additional_args[:platform] = platform if platform
|
|
218
|
+
additional_args[:logFile] = File.join(project_path, "Library", "Logs", "unity.log")
|
|
214
219
|
|
|
215
220
|
# 使用 Yoo.Editor.YooCommandHelper.BatchBuild 进行资源构建
|
|
216
221
|
result = UnityCommandHelper.execute_unity_command(
|
|
217
222
|
unity_exe_full_path,
|
|
218
223
|
project_path,
|
|
224
|
+
build_target: platform,
|
|
219
225
|
method: 'Yoo.Editor.YooCommandHelper.BatchBuild',
|
|
220
226
|
additional_args: additional_args
|
|
221
227
|
)
|
|
@@ -248,7 +254,9 @@ module Pindo
|
|
|
248
254
|
unity_exe_full_path,
|
|
249
255
|
project_path,
|
|
250
256
|
method: 'NugetForUnity.Joy.JoyTools.CheckForceUpdate',
|
|
251
|
-
additional_args: {
|
|
257
|
+
additional_args: {
|
|
258
|
+
logFile: File.join(project_path, "Library", "Logs", "unity.log")
|
|
259
|
+
}
|
|
252
260
|
)
|
|
253
261
|
|
|
254
262
|
if result[:success]
|
|
@@ -288,7 +296,10 @@ module Pindo
|
|
|
288
296
|
unity_exe_full_path,
|
|
289
297
|
project_path,
|
|
290
298
|
method: 'GoodUnityBuild.BuildManager.BatchConfig',
|
|
291
|
-
additional_args: {
|
|
299
|
+
additional_args: {
|
|
300
|
+
deployMode: deploy_mode,
|
|
301
|
+
logFile: File.join(project_path, "Library", "Logs", "unity.log")
|
|
302
|
+
}
|
|
292
303
|
)
|
|
293
304
|
|
|
294
305
|
if result[:success]
|
|
@@ -258,7 +258,7 @@ module Pindo
|
|
|
258
258
|
if File.exist?(cache_file_path)
|
|
259
259
|
begin
|
|
260
260
|
content = File.read(cache_file_path)
|
|
261
|
-
@cache_data = JSON.parse(content, symbolize_names: true)
|
|
261
|
+
@cache_data = content.strip.empty? ? {} : JSON.parse(content, symbolize_names: true)
|
|
262
262
|
log_verbose("加载缓存文件: #{cache_file_path}")
|
|
263
263
|
log_verbose("缓存内容: #{@cache_data.inspect}")
|
|
264
264
|
rescue StandardError => e
|
data/lib/pindo/version.rb
CHANGED
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.15.
|
|
4
|
+
version: 5.15.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- wade
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 2026-02-27 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: claide
|
|
@@ -509,7 +509,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
509
509
|
- !ruby/object:Gem::Version
|
|
510
510
|
version: 3.0.0
|
|
511
511
|
requirements: []
|
|
512
|
-
rubygems_version:
|
|
512
|
+
rubygems_version: 3.6.3
|
|
513
513
|
specification_version: 4
|
|
514
514
|
summary: easy work
|
|
515
515
|
test_files: []
|