pindo 5.10.9 → 5.11.1
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/command/android/autobuild.rb +38 -22
- data/lib/pindo/command/android/autoresign.rb +332 -0
- data/lib/pindo/command/android/build.rb +19 -12
- data/lib/pindo/command/android/{debug.rb → keystore.rb} +20 -25
- data/lib/pindo/command/android.rb +4 -3
- data/lib/pindo/command/{ipa/output.rb → appstore/adhocbuild.rb} +17 -17
- data/lib/pindo/command/{ipa → appstore}/autoresign.rb +11 -11
- data/lib/pindo/command/appstore/iap.rb +8 -8
- data/lib/pindo/command/{ipa → appstore}/import.rb +18 -18
- data/lib/pindo/command/appstore/itcapp.rb +8 -8
- data/lib/pindo/command/appstore/metadata.rb +8 -8
- data/lib/pindo/command/appstore/screenshots.rb +8 -8
- data/lib/pindo/command/appstore/upload.rb +8 -8
- data/lib/pindo/command/appstore.rb +6 -2
- data/lib/pindo/command/deploy/bundleid.rb +8 -8
- data/lib/pindo/command/deploy/cert.rb +10 -10
- data/lib/pindo/command/deploy/check.rb +8 -8
- data/lib/pindo/command/deploy.rb +1 -3
- data/lib/pindo/command/env/dreamstudio.rb +14 -12
- data/lib/pindo/command/env/quarkenv.rb +13 -11
- data/lib/pindo/command/env/swarkenv.rb +13 -11
- data/lib/pindo/command/env/workhard.rb +14 -12
- data/lib/pindo/command/env.rb +1 -1
- data/lib/pindo/command/gplay.rb +1 -1
- data/lib/pindo/command/ios/autobuild.rb +23 -15
- data/lib/pindo/command/ios/autoresign.rb +16 -16
- data/lib/pindo/command/ios/build.rb +12 -10
- data/lib/pindo/command/ios/{debug.rb → cert.rb} +26 -27
- data/lib/pindo/command/{lib/lint.rb → ios/podlint.rb} +6 -6
- data/lib/pindo/command/{lib/forcepush.rb → ios/podpush.rb} +123 -23
- data/lib/pindo/command/{lib/update.rb → ios/podupdate.rb} +5 -5
- data/lib/pindo/command/ios.rb +6 -2
- data/lib/pindo/command/jps/upload.rb +1 -1
- data/lib/pindo/command/jps.rb +1 -1
- data/lib/pindo/command/repo.rb +1 -1
- data/lib/pindo/command/unity/apk.rb +20 -15
- data/lib/pindo/command/unity/autobuild.rb +15 -21
- data/lib/pindo/command/unity/ipa.rb +21 -17
- data/lib/pindo/command/unity/{pack.rb → packbuild.rb} +17 -10
- data/lib/pindo/command/unity/{initpack.rb → packinit.rb} +10 -16
- data/lib/pindo/command/unity/{upload.rb → packpush.rb} +13 -19
- data/lib/pindo/command/unity/web.rb +19 -13
- data/lib/pindo/command/unity.rb +4 -4
- data/lib/pindo/command/{dev → utils}/feishu.rb +14 -14
- data/lib/pindo/command/{dev → utils}/repoinit.rb +8 -8
- data/lib/pindo/command/{dev → utils}/tag.rb +19 -19
- data/lib/pindo/command/utils.rb +9 -6
- data/lib/pindo/command/web/autobuild.rb +1 -1
- data/lib/pindo/command/web.rb +1 -1
- data/lib/pindo/command.rb +1 -4
- data/lib/pindo/module/android/android_build_config_helper.rb +83 -10
- data/lib/pindo/version.rb +1 -1
- metadata +16 -22
- data/lib/pindo/command/dev.rb +0 -21
- data/lib/pindo/command/feishu/send_message.rb +0 -103
- data/lib/pindo/command/feishu.rb +0 -50
- data/lib/pindo/command/ios/adhoc.rb +0 -245
- data/lib/pindo/command/ipa.rb +0 -16
- data/lib/pindo/command/lib/push.rb +0 -157
- data/lib/pindo/command/lib.rb +0 -16
|
@@ -19,39 +19,33 @@ module Pindo
|
|
|
19
19
|
|
|
20
20
|
# 详细说明
|
|
21
21
|
self.description = <<-DESC
|
|
22
|
-
编译Unity工程并生成iOS IPA、Android APK和WebGL
|
|
22
|
+
编译Unity工程并生成iOS IPA、Android APK和WebGL包,支持上传到JPS测试平台。
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
支持功能:
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
* 多平台自动构建(iOS → Android → WebGL)
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
* 生成iOS IPA文件
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
* 生成Android APK文件
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
* 生成WebGL包
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
* 支持上传到JPS测试平台
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
* 支持发送测试通知
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
使用示例:
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
$ pindo unity autobuild # 编译所有平台
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
$ pindo unity autobuild --upload # 编译并上传到JPS
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
$ pindo unity autobuild --send # 编译、上传并发送通知
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
$ pindo unity autobuild --proj="My App" # 指定项目名称
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
$ pindo unity autobuild --base # Unity lib模式
|
|
51
|
-
|
|
52
|
-
$ pindo unity autobuild --bundle_name=com.example.app # 指定Android包名
|
|
53
|
-
|
|
54
|
-
$ pindo unity autobuild --bundleid=com.test.ios --bundle_name=com.test.android # 同时指定iOS和Android包名
|
|
48
|
+
$ pindo unity autobuild --base # Unity lib模式
|
|
55
49
|
DESC
|
|
56
50
|
|
|
57
51
|
# 命令参数
|
|
@@ -97,7 +91,7 @@ DESC
|
|
|
97
91
|
build_helper = Pindo::BuildHelper.share_instance
|
|
98
92
|
is_need_add_tag,tag_action_parms = build_helper.check_is_need_add_tag?(pindo_project_dir)
|
|
99
93
|
if is_need_add_tag
|
|
100
|
-
Pindo::Command::
|
|
94
|
+
Pindo::Command::Utils::Tag::run(tag_action_parms)
|
|
101
95
|
end
|
|
102
96
|
end
|
|
103
97
|
|
|
@@ -16,7 +16,7 @@ module Pindo
|
|
|
16
16
|
|
|
17
17
|
include Pindo::Githelper
|
|
18
18
|
# Unity IPA包编译和上传命令
|
|
19
|
-
self.summary = '
|
|
19
|
+
self.summary = 'Unity工程编译IPA (优先使用pindo ios autobuild命令)'
|
|
20
20
|
|
|
21
21
|
# 启用缓存机制
|
|
22
22
|
def self.use_cache?
|
|
@@ -27,29 +27,33 @@ module Pindo
|
|
|
27
27
|
|
|
28
28
|
# 详细说明
|
|
29
29
|
self.description = <<-DESC
|
|
30
|
-
|
|
30
|
+
Unity工程编译IPA (优先使用pindo ios autobuild命令)
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
支持功能:
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
PINDO_PROJECT_NAME - 指定项目名称(如: Test Demo)
|
|
36
|
-
PINDO_TAG_DECISION - 指定Tag策略(new/retag/skip/exit)
|
|
37
|
-
PINDO_FORCE_BUILD - 自动使用缓存选择,跳过确认
|
|
34
|
+
* 自动检测Unity版本
|
|
38
35
|
|
|
39
|
-
|
|
36
|
+
* 编译生成iOS IPA文件
|
|
40
37
|
|
|
41
|
-
|
|
42
|
-
$ pindo unity ipa --upload # 编译并上传
|
|
43
|
-
$ pindo unity ipa --send # 编译、上传并发送群组通知
|
|
38
|
+
* 支持上传到JPS测试平台
|
|
44
39
|
|
|
45
|
-
|
|
46
|
-
$ PINDO_FORCE_BUILD=1 PINDO_BUNDLE_ID=com.heroneverdie101 PINDO_PROJECT_NAME="Test Demo" PINDO_TAG_DECISION=new pindo unity ipa --upload
|
|
40
|
+
* 支持发送测试通知
|
|
47
41
|
|
|
48
|
-
|
|
42
|
+
* 支持CI/CD自动化构建
|
|
49
43
|
|
|
44
|
+
使用示例:
|
|
50
45
|
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
$ pindo unity ipa # 编译IPA
|
|
47
|
+
|
|
48
|
+
$ pindo unity ipa --upload # 编译并上传到JPS
|
|
49
|
+
|
|
50
|
+
$ pindo unity ipa --send # 编译、上传并发送通知
|
|
51
|
+
|
|
52
|
+
$ pindo unity ipa --bundleid=com.example.app # 指定Bundle ID
|
|
53
|
+
|
|
54
|
+
$ pindo unity ipa --proj="My App" # 指定项目名称
|
|
55
|
+
|
|
56
|
+
$ pindo unity ipa --base # Unity lib模式
|
|
53
57
|
DESC
|
|
54
58
|
|
|
55
59
|
# 命令参数
|
|
@@ -123,7 +127,7 @@ DESC
|
|
|
123
127
|
if @args_upload_flag
|
|
124
128
|
is_need_add_tag,tag_action_parms = build_helper.check_is_need_add_tag?(pindo_project_dir)
|
|
125
129
|
if is_need_add_tag
|
|
126
|
-
Pindo::Command::
|
|
130
|
+
Pindo::Command::Utils::Tag::run(tag_action_parms)
|
|
127
131
|
end
|
|
128
132
|
end
|
|
129
133
|
|
|
@@ -5,20 +5,27 @@ require 'pindo/module/unity/nuget_helper'
|
|
|
5
5
|
module Pindo
|
|
6
6
|
class Command
|
|
7
7
|
class Unity < Command
|
|
8
|
-
class
|
|
8
|
+
class Packbuild < Unity
|
|
9
9
|
|
|
10
|
-
self.summary = '
|
|
10
|
+
self.summary = 'NuGet: 将Unity Package打包为NuGet的包'
|
|
11
11
|
|
|
12
12
|
self.description = <<-DESC
|
|
13
|
-
|
|
13
|
+
将Unity Package打包为NuGet的包。
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
支持功能:
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
* 读取package.json配置
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
* 生成.nuspec文件
|
|
20
|
+
|
|
21
|
+
* 打包成.nupkg格式
|
|
22
|
+
|
|
23
|
+
* 支持自定义版本号
|
|
24
|
+
|
|
25
|
+
使用示例:
|
|
26
|
+
|
|
27
|
+
$ pindo unity packbuild # 打包当前目录的Unity Package
|
|
20
28
|
|
|
21
|
-
$ pindo unity pack
|
|
22
29
|
DESC
|
|
23
30
|
|
|
24
31
|
def self.arguments
|
|
@@ -41,9 +48,9 @@ module Pindo
|
|
|
41
48
|
puts "=" * 60
|
|
42
49
|
puts
|
|
43
50
|
|
|
44
|
-
# 先执行
|
|
51
|
+
# 先执行 packinit 命令进行检查和同步
|
|
45
52
|
puts "🔍 执行初始化检查..."
|
|
46
|
-
initpack_cmd = Pindo::Command::Unity::
|
|
53
|
+
initpack_cmd = Pindo::Command::Unity::Packinit.new(CLAide::ARGV.new([]))
|
|
47
54
|
initpack_cmd.run
|
|
48
55
|
puts
|
|
49
56
|
|
|
@@ -77,7 +84,7 @@ module Pindo
|
|
|
77
84
|
puts " #{nupkg_file}"
|
|
78
85
|
puts
|
|
79
86
|
puts "下一步:"
|
|
80
|
-
puts " 运行 pindo unity
|
|
87
|
+
puts " 运行 pindo unity packpush 上传到 JPS"
|
|
81
88
|
end
|
|
82
89
|
|
|
83
90
|
end
|
|
@@ -5,32 +5,26 @@ require 'pindo/module/unity/nuget_helper'
|
|
|
5
5
|
module Pindo
|
|
6
6
|
class Command
|
|
7
7
|
class Unity < Command
|
|
8
|
-
class
|
|
8
|
+
class Packinit < Unity
|
|
9
9
|
|
|
10
|
-
self.summary = '初始化
|
|
10
|
+
self.summary = 'NuGet: 初始化Unity Package的NuGet打包配置'
|
|
11
11
|
|
|
12
12
|
self.description = <<-DESC
|
|
13
|
-
|
|
13
|
+
初始化并同步package.json和.nuspec文件,确保信息一致。
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
支持功能:
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
* 自动创建缺失的配置文件
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
* 同步package.json和.nuspec信息
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
* 自动格式转换(小写/驼峰)
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
* 验证配置文件完整性
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
使用示例:
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
• .nuspec 的 id:始终驼峰
|
|
30
|
-
|
|
31
|
-
使用示例:
|
|
32
|
-
|
|
33
|
-
$ pindo unity initpack
|
|
27
|
+
$ pindo unity packinit # 初始化打包配置
|
|
34
28
|
DESC
|
|
35
29
|
|
|
36
30
|
def self.arguments
|
|
@@ -8,39 +8,33 @@ require 'pindo/module/unity/nuget_helper'
|
|
|
8
8
|
module Pindo
|
|
9
9
|
class Command
|
|
10
10
|
class Unity < Command
|
|
11
|
-
class
|
|
11
|
+
class Packpush < Unity
|
|
12
12
|
include Pindo::Githelper
|
|
13
13
|
extend Pindo::Executable
|
|
14
14
|
executable :git
|
|
15
15
|
|
|
16
|
-
self.summary = '
|
|
16
|
+
self.summary = 'NuGet: 将NuGet包到推送到JPS系统'
|
|
17
17
|
|
|
18
18
|
self.description = <<-DESC
|
|
19
|
-
|
|
19
|
+
将NuGet包到推送到JPS系统。
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
支持功能:
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
* 自动查找当前目录的.nupkg文件
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
* 支持指定文件路径上传
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
* 上传前用户确认
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
* 自动创建Git Tag
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
* 支持环境变量控制
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
使用示例:
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
$ pindo unity packpush # 自动查找并上传
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
$ pindo unity upload path/to/package.nupkg # 指定文件上传
|
|
40
|
-
|
|
41
|
-
$ pindo unity upload --nupkg=path/to/file # 使用选项指定
|
|
42
|
-
|
|
43
|
-
$ NUGET_UPLOAD_FORCE=1 pindo unity upload # 跳过确认直接上传
|
|
37
|
+
$ pindo unity packpush package.nupkg # 指定文件上传
|
|
44
38
|
DESC
|
|
45
39
|
|
|
46
40
|
def self.arguments
|
|
@@ -297,7 +291,7 @@ module Pindo
|
|
|
297
291
|
|
|
298
292
|
# 调用 pindo dev tag 命令,使用 --tag 参数
|
|
299
293
|
begin
|
|
300
|
-
tag_cmd = Pindo::Command::
|
|
294
|
+
tag_cmd = Pindo::Command::Utils::Tag.new(CLAide::ARGV.new(["--tag=#{version}"]))
|
|
301
295
|
tag_cmd.run
|
|
302
296
|
puts "✅ Git Tag 创建成功"
|
|
303
297
|
rescue => e
|
|
@@ -15,7 +15,7 @@ module Pindo
|
|
|
15
15
|
|
|
16
16
|
include Pindo::Githelper
|
|
17
17
|
# Unity WebGL包编译和上传命令
|
|
18
|
-
self.summary = '
|
|
18
|
+
self.summary = 'Unity工程编译Web(优先使用pindo web autobuild命令)'
|
|
19
19
|
|
|
20
20
|
# 启用缓存机制
|
|
21
21
|
def self.use_cache?
|
|
@@ -24,26 +24,32 @@ module Pindo
|
|
|
24
24
|
|
|
25
25
|
# 详细说明
|
|
26
26
|
self.description = <<-DESC
|
|
27
|
-
|
|
27
|
+
Unity工程编译Web(优先使用pindo web autobuild命令)
|
|
28
28
|
|
|
29
|
-
支持功能:
|
|
29
|
+
支持功能:
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
* 自动检测Unity版本
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
* 编译生成WebGL包
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
* 支持上传到JPS测试平台
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
* 支持发送测试通知
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
* 支持CI/CD自动化构建
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
使用示例:
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
$ pindo unity web # 编译WebGL
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
$ pindo unity web --upload # 编译并上传到JPS
|
|
46
|
+
|
|
47
|
+
$ pindo unity web --send # 编译、上传并发送通知
|
|
48
|
+
|
|
49
|
+
$ pindo unity web --proj="My App" # 指定项目名称
|
|
50
|
+
|
|
51
|
+
$ pindo unity web --base # Unity lib模式
|
|
52
|
+
DESC
|
|
47
53
|
|
|
48
54
|
# 命令参数
|
|
49
55
|
self.arguments = [
|
|
@@ -100,7 +106,7 @@ DESC
|
|
|
100
106
|
build_helper = Pindo::BuildHelper.share_instance
|
|
101
107
|
is_need_add_tag,tag_action_parms = build_helper.check_is_need_add_tag?(pindo_project_dir)
|
|
102
108
|
if is_need_add_tag
|
|
103
|
-
Pindo::Command::
|
|
109
|
+
Pindo::Command::Utils::Tag::run(tag_action_parms)
|
|
104
110
|
end
|
|
105
111
|
end
|
|
106
112
|
|
data/lib/pindo/command/unity.rb
CHANGED
|
@@ -4,16 +4,16 @@ require 'pindo/command/unity/ipa'
|
|
|
4
4
|
require 'pindo/command/unity/apk'
|
|
5
5
|
require 'pindo/command/unity/web'
|
|
6
6
|
require 'pindo/command/unity/autobuild'
|
|
7
|
-
require 'pindo/command/unity/
|
|
8
|
-
require 'pindo/command/unity/
|
|
9
|
-
require 'pindo/command/unity/
|
|
7
|
+
require 'pindo/command/unity/packinit'
|
|
8
|
+
require 'pindo/command/unity/packbuild'
|
|
9
|
+
require 'pindo/command/unity/packpush'
|
|
10
10
|
|
|
11
11
|
module Pindo
|
|
12
12
|
class Command
|
|
13
13
|
|
|
14
14
|
class Unity < Command
|
|
15
15
|
self.abstract_command = true
|
|
16
|
-
self.summary = 'Unity
|
|
16
|
+
self.summary = 'Unity平台开发相关的命令'
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
end
|
|
@@ -6,34 +6,34 @@ require 'pindo/module/pgyer/pgyerhelper'
|
|
|
6
6
|
|
|
7
7
|
module Pindo
|
|
8
8
|
class Command
|
|
9
|
-
class
|
|
10
|
-
class Feishu <
|
|
9
|
+
class Utils < Command
|
|
10
|
+
class Feishu < Utils
|
|
11
11
|
# 命令的简要说明 - 发送飞书消息
|
|
12
12
|
self.summary = '发送飞书消息'
|
|
13
13
|
|
|
14
14
|
# 命令的详细说明,包含用法示例
|
|
15
15
|
self.description = <<-DESC
|
|
16
|
-
|
|
16
|
+
发送飞书消息到指定的飞书群。
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
支持功能:
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
* 发送文本消息到飞书群
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
* 支持自定义Webhook URL
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
* 支持消息签名验证
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
* 支持富文本格式
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
使用示例:
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
$ pindo utils feishu "要发送的消息" # 发送简单文本消息
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
$ pindo utils feishu --webhook=URL "消息内容" # 指定webhook发送
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
$ pindo utils feishu "构建完成通知" # 发送构建通知
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
$ pindo utils feishu "@所有人 版本已发布" # 发送@所有人消息
|
|
37
37
|
DESC
|
|
38
38
|
|
|
39
39
|
# 命令的参数列表
|
|
@@ -100,7 +100,7 @@ module Pindo
|
|
|
100
100
|
build_helper.check_check_and_install_cliff(pindo_project_dir)
|
|
101
101
|
is_need_add_tag,tag_action_parms = build_helper.check_is_need_add_tag?(pindo_project_dir)
|
|
102
102
|
if is_need_add_tag
|
|
103
|
-
Pindo::Command::
|
|
103
|
+
Pindo::Command::Utils::Tag::run(tag_action_parms)
|
|
104
104
|
end
|
|
105
105
|
|
|
106
106
|
unless @webhook_url.nil? || @webhook_url.empty?
|
|
@@ -3,8 +3,8 @@ require 'fileutils'
|
|
|
3
3
|
|
|
4
4
|
module Pindo
|
|
5
5
|
class Command
|
|
6
|
-
class
|
|
7
|
-
class Repoinit <
|
|
6
|
+
class Utils < Command
|
|
7
|
+
class Repoinit < Utils
|
|
8
8
|
|
|
9
9
|
include Pindo::Githelper
|
|
10
10
|
|
|
@@ -13,17 +13,17 @@ module Pindo
|
|
|
13
13
|
|
|
14
14
|
# 命令的详细说明,包含用法示例
|
|
15
15
|
self.description = <<-DESC
|
|
16
|
-
|
|
16
|
+
初始化git仓库中git cliff的配置。
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
支持功能:
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
* 初始化git cliff配置
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
* 生成配置文件
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
使用示例:
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
$ pindo utils repoinit # 初始化配置
|
|
27
27
|
DESC
|
|
28
28
|
|
|
29
29
|
# 命令的参数列表
|
|
@@ -3,34 +3,34 @@ require 'fileutils'
|
|
|
3
3
|
|
|
4
4
|
module Pindo
|
|
5
5
|
class Command
|
|
6
|
-
class
|
|
7
|
-
class Tag <
|
|
6
|
+
class Utils < Command
|
|
7
|
+
class Tag < Utils
|
|
8
8
|
# 命令的简要说明 - 发布代码并添加tag
|
|
9
9
|
self.summary = '发布代码,添加tag,添加发布信息,并合并到发布分支'
|
|
10
10
|
|
|
11
11
|
# 命令的详细说明,包含用法示例
|
|
12
12
|
self.description = <<-DESC
|
|
13
|
-
|
|
13
|
+
发布代码,添加tag,添加发布信息,并合并到发布分支。
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
支持功能:
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
* 处理未提交的文件
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
* 添加版本tag
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
* 合并到发布分支
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
使用示例:
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
$ pindo utils tag # 使用minor模式创建tag
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
$ pindo utils tag --mode=major # 使用major模式创建tag
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
$ pindo utils tag --mode=patch # 使用patch模式创建tag
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
$ pindo utils tag --tag=1.1.3 # 直接指定版本号创建tag(会自动添加v前缀)
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
$ pindo utils tag --retag # 强制重新打tag
|
|
34
34
|
DESC
|
|
35
35
|
|
|
36
36
|
# 命令的参数列表
|
|
@@ -64,7 +64,7 @@ module Pindo
|
|
|
64
64
|
puts current_project_dir
|
|
65
65
|
# 检查当前目录是否是git仓库
|
|
66
66
|
unless is_git_directory?(local_repo_dir: current_project_dir)
|
|
67
|
-
|
|
67
|
+
|
|
68
68
|
Funlog.instance.fancyinfo_error("当前目录不是git仓库")
|
|
69
69
|
raise Informative, "请在git仓库目录下执行此命令"
|
|
70
70
|
end
|
|
@@ -76,7 +76,7 @@ module Pindo
|
|
|
76
76
|
raise Informative, "获取git仓库根目录失败"
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
|
|
80
80
|
|
|
81
81
|
release_branch = "master"
|
|
82
82
|
process_need_add_files(project_dir: root_dir)
|
|
@@ -86,8 +86,8 @@ module Pindo
|
|
|
86
86
|
|
|
87
87
|
Funlog.instance.fancyinfo_start("开始合并到#{release_branch}分支")
|
|
88
88
|
merge_to_release_branch(
|
|
89
|
-
project_dir: root_dir,
|
|
90
|
-
release_branch: release_branch,
|
|
89
|
+
project_dir: root_dir,
|
|
90
|
+
release_branch: release_branch,
|
|
91
91
|
coding_branch: coding_branch
|
|
92
92
|
)
|
|
93
93
|
|
|
@@ -171,7 +171,7 @@ module Pindo
|
|
|
171
171
|
if !coding_branch.eql?(release_branch)
|
|
172
172
|
coding_branch_commit_id = git!(%W(-C #{current_project_dir} rev-parse #{coding_branch})).strip
|
|
173
173
|
release_branch_commit_id = nil
|
|
174
|
-
|
|
174
|
+
|
|
175
175
|
if remote_branch_exists?(local_repo_dir: current_project_dir, branch: release_branch)
|
|
176
176
|
Funlog.instance.fancyinfo_update("存在#{release_branch}远程分支")
|
|
177
177
|
if local_branch_exists?(local_repo_dir: current_project_dir, branch: release_branch)
|
|
@@ -248,4 +248,4 @@ module Pindo
|
|
|
248
248
|
end
|
|
249
249
|
end
|
|
250
250
|
end
|
|
251
|
-
end
|
|
251
|
+
end
|
data/lib/pindo/command/utils.rb
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
require 'pindo/command/utils/icon'
|
|
3
|
-
require 'pindo/command/utils/renewproj'
|
|
2
|
+
# require 'pindo/command/utils/icon'
|
|
3
|
+
# require 'pindo/command/utils/renewproj'
|
|
4
4
|
require 'pindo/command/utils/clearcert'
|
|
5
|
-
require 'pindo/command/utils/xcassets'
|
|
5
|
+
# require 'pindo/command/utils/xcassets'
|
|
6
6
|
require 'pindo/command/utils/device'
|
|
7
|
-
require 'pindo/command/utils/tgate'
|
|
8
|
-
require 'pindo/command/utils/boss'
|
|
7
|
+
# require 'pindo/command/utils/tgate'
|
|
8
|
+
# require 'pindo/command/utils/boss'
|
|
9
9
|
require 'pindo/command/utils/renewcert'
|
|
10
|
+
require 'pindo/command/utils/repoinit'
|
|
11
|
+
require 'pindo/command/utils/feishu'
|
|
12
|
+
require 'pindo/command/utils/tag'
|
|
10
13
|
|
|
11
14
|
|
|
12
15
|
module Pindo
|
|
@@ -17,7 +20,7 @@ module Pindo
|
|
|
17
20
|
|
|
18
21
|
self.abstract_command = true
|
|
19
22
|
|
|
20
|
-
self.summary = '
|
|
23
|
+
self.summary = '其他工具类的相关的命令'
|
|
21
24
|
|
|
22
25
|
|
|
23
26
|
end
|
|
@@ -124,7 +124,7 @@ module Pindo
|
|
|
124
124
|
if @args_upload_flag
|
|
125
125
|
is_need_add_tag,tag_action_parms = build_helper.check_is_need_add_tag?(pindo_project_dir)
|
|
126
126
|
if is_need_add_tag
|
|
127
|
-
Pindo::Command::
|
|
127
|
+
Pindo::Command::Utils::Tag::run(tag_action_parms)
|
|
128
128
|
end
|
|
129
129
|
end
|
|
130
130
|
|
data/lib/pindo/command/web.rb
CHANGED
data/lib/pindo/command.rb
CHANGED
|
@@ -38,14 +38,11 @@ module Pindo
|
|
|
38
38
|
require 'pindo/module/appstore/appstore_metadata_connect_api_helper'
|
|
39
39
|
|
|
40
40
|
require 'pindo/command/deploy'
|
|
41
|
-
require 'pindo/command/dev'
|
|
42
41
|
require 'pindo/command/env'
|
|
43
|
-
require 'pindo/command/lib'
|
|
44
42
|
require 'pindo/command/utils'
|
|
45
43
|
require 'pindo/command/jps'
|
|
46
44
|
require 'pindo/command/setup'
|
|
47
|
-
require 'pindo/command/repo'
|
|
48
|
-
require 'pindo/command/ipa'
|
|
45
|
+
# require 'pindo/command/repo'
|
|
49
46
|
require 'pindo/command/appstore'
|
|
50
47
|
require 'pindo/command/gplay'
|
|
51
48
|
require 'pindo/command/unity'
|