ikun 1.1.1 → 1.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b6d8a315b2f7269ae2cf7add4b12e2cec186dddbabd18fd8edeef8d2b1814c0
4
- data.tar.gz: b2aaa0d9967a161eb77d51044a8d74b055c88fe8f459d8c98cd8410da8227240
3
+ metadata.gz: 9be3a6a7d64ac7c04315ec142e4cfe2f734005515ec502005b3b7672912cf084
4
+ data.tar.gz: d3b6ea8769984c651e19b0ea13461180fac1477080dc0044d4250ebd593b753a
5
5
  SHA512:
6
- metadata.gz: 68a9489296edf3137fa7cc88cbbbed6e4532df4650cba62ac9048be50eb2666c42490038ff1d8fc92af549c509aa8c84409addc3374c75398aa8853e4e6572ec
7
- data.tar.gz: ba11ae4f4c151a4e3dc15535d0014c3aec674f6ce2b8dd68f5fd3e44af21b2a3eaca58af8864c5b5d1a2aefd4ac0cece414953e48cad5e94550e9388486a7e6a
6
+ metadata.gz: d6ac8b480ad263762046fd411e654a757ae0df2ccc599904ffe869938fc8b4ee16cb3dfac5abe24439c223fe024320966233cf9ca0fcdb6ea4031fe6cfa46623
7
+ data.tar.gz: c18362627396f416d0d3d63cbaed79a53521bbad0022438123407ac59b0b5424964614e9171ea1a800e8b35d861e016de30a7214ba9f3e19cfc6161562649355
data/lib/ikun/command.rb CHANGED
@@ -41,4 +41,28 @@ class Setup < Ikun::Command
41
41
  FileUtils.cd('ikun')
42
42
  `sh setup.sh -s #{@shipping} -b #{@branch} -t #{@target}`
43
43
  end
44
+ end
45
+
46
+ class Update < Ikun::Command
47
+ self.summary = '更新证书'
48
+ self.description = '更新证书'
49
+
50
+ def initialize(argv)
51
+ super
52
+ end
53
+
54
+ def validate!
55
+ super
56
+ end
57
+
58
+ def run
59
+ FileUtils.rm_rf('cers') if File.exists?('cers')
60
+ `git clone git@gitlab.appshahe.com:ios-automation/cers.git -b main --single-branch --depth 1`
61
+ FileUtils.cd('cers')
62
+
63
+ # 安装cers
64
+ `security import dev.p12 -P 1234`
65
+ # 安装provisioning profile
66
+ `sh install.sh`
67
+ end
44
68
  end
data/lib/ikun/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ikun
2
- VERSION = "1.1.1"
2
+ VERSION = "1.2.0"
3
3
  end
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.1.1
4
+ version: 1.2.0
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-03-01 00:00:00.000000000 Z
11
+ date: 2024-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide