ikun 1.2.1 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ikun/command.rb +19 -2
- data/lib/ikun/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 576c54f998f458fcf32c7cb1a44679328390f077aa6d4b21af9b6e87d70b82fc
|
4
|
+
data.tar.gz: e5b4035c750c6cb7f70d1a33be01ee3ba6643469f00a4548d82de308969865e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de4b26230c03e771c976bf34a4299e9b82fbb8be72ae249a36279d49ff615852f4178d8dc640414097e5d4f984076ff179e1475157bad626edfc451518767ba4
|
7
|
+
data.tar.gz: 7c9bce3da3e2d8b26a83f07390dd16627e6c11c761bc01919002a4e13d91ffd4f0be05fdda60a867182d004c7d74b17c97a0295e7985850dae53811f8f09e2d1
|
data/lib/ikun/command.rb
CHANGED
@@ -17,7 +17,8 @@ class Setup < Ikun::Command
|
|
17
17
|
['--shipping', '使用shipping路径的MetaWorldMobile.framework'],
|
18
18
|
['--branch=CONTAINER_BRANCH', '项目分支, 默认为main分支'],
|
19
19
|
['--target=BUSINESS_LINE', '业务线(gpark or 233), 默认为gpark, 不区分大小写.'],
|
20
|
-
['--ikun-branch', 'ikun使用哪个分支']
|
20
|
+
['--ikun-branch', 'ikun使用哪个分支'],
|
21
|
+
['--env', '项目环境, target == 233时生效, test/pre/online']
|
21
22
|
].concat(super)
|
22
23
|
end
|
23
24
|
|
@@ -26,6 +27,7 @@ class Setup < Ikun::Command
|
|
26
27
|
@branch = argv.option('branch', 'main')
|
27
28
|
@target = argv.option('target', 'gpark')
|
28
29
|
@ikun = argv.option('ikun-branch', 'main')
|
30
|
+
@env = argv.option('env', 'online')
|
29
31
|
super
|
30
32
|
end
|
31
33
|
|
@@ -33,6 +35,8 @@ class Setup < Ikun::Command
|
|
33
35
|
super
|
34
36
|
target = @target.downcase
|
35
37
|
help! 'target参数必须是gpark或者233' unless target == 'gpark' || target == '233'
|
38
|
+
help! 'env必须是test/pre/online中的一个' unless ['test', 'pre', 'online'].include?(@env)
|
39
|
+
help! 'target == 233时, env参数才有效' unless @target == '233' && @env.length > 0
|
36
40
|
end
|
37
41
|
|
38
42
|
def run
|
@@ -47,7 +51,14 @@ class Update < Ikun::Command
|
|
47
51
|
self.summary = '更新证书'
|
48
52
|
self.description = '更新证书'
|
49
53
|
|
54
|
+
def self.options
|
55
|
+
[
|
56
|
+
['--building', '编译引擎']
|
57
|
+
].concat(super)
|
58
|
+
end
|
59
|
+
|
50
60
|
def initialize(argv)
|
61
|
+
@building = argv.flag?('building', false)
|
51
62
|
super
|
52
63
|
end
|
53
64
|
|
@@ -60,7 +71,13 @@ class Update < Ikun::Command
|
|
60
71
|
`git clone git@gitlab.appshahe.com:ios-automation/cers.git -b main --single-branch --depth 1`
|
61
72
|
FileUtils.cd('cers')
|
62
73
|
|
74
|
+
# 安装cer
|
75
|
+
`sh install_cers.sh`
|
63
76
|
# 安装provisioning profile
|
64
|
-
|
77
|
+
if @building
|
78
|
+
`sh install_building.sh -b #{@building}`
|
79
|
+
else
|
80
|
+
`sh install_running.sh -b #{@building}`
|
81
|
+
end
|
65
82
|
end
|
66
83
|
end
|
data/lib/ikun/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ikun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lei.han
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|