ocean_package 0.4.0 → 0.5.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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +12 -5
- data/lib/ocean_package/fir.rb +5 -5
- data/lib/ocean_package/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 344dac21c822cdd2058be666eb3dbbb434d2c8b380db248001213a6f09134317
|
|
4
|
+
data.tar.gz: 7368eceae90f6301962531d28c13835271542919299aafecb2710c47f48e45fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 976f454f79dc357c77d352861bf0af1b41125d8359ed3bae1edc9a7899efdffe1137c916d933633d291d56e09acd9486d89a32aefad3cb42997ded29e8d9f754
|
|
7
|
+
data.tar.gz: dfdeadea4295b8d84d3509b6cfef25f89e1daed4563d47a95c0a9705e72514f394f10fc7d8bb412af87eeed1f527613e5ddbb0d236e50b4afdcb2934ac615266
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -24,6 +24,13 @@ or
|
|
|
24
24
|
|
|
25
25
|
$ sudo gem install ocean_package
|
|
26
26
|
|
|
27
|
+
其他需要安装的依赖
|
|
28
|
+
|
|
29
|
+
- `fir-cli`, [链接](https://github.com/FIRHQ/fir-cli)
|
|
30
|
+
- `ossutil`, [链接](https://help.aliyun.com/document_detail/120075.html?spm=a2c4g.11186623.2.45.6e491c7akyZ5HE)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
27
34
|
## Usage
|
|
28
35
|
|
|
29
36
|
```
|
|
@@ -32,16 +39,16 @@ oceanpackage --workspace-path=/Users/ocean/Desktop/code/iOS/MyApp.xcworkspace --
|
|
|
32
39
|
|
|
33
40
|
- `--workspace-path`: `.xcworkspace` 文件路径
|
|
34
41
|
- `--scheme`: `scheme`
|
|
35
|
-
- `--configuration`: Debug 和 Release
|
|
42
|
+
- `--configuration`: `Debug` 和 `Release`
|
|
36
43
|
- `--archive-path`: 生成的 `.xcarchive` 文件目录
|
|
37
44
|
- `--export-options-plist`: 打包用到的 `export-options` plist 文件路径
|
|
38
45
|
- `--company-name`: 公司名称,可以不填
|
|
39
46
|
- `--fir-token`: fir 平台的 token
|
|
40
47
|
- `--change-log`: 更新描述
|
|
41
|
-
- `--oss-bucket-name`: oss bucket 名称
|
|
42
|
-
- `--oss-bucket-path`: oss bucket 路径
|
|
43
|
-
- `--oss-endpoint`: oss 的 endpoint
|
|
44
|
-
- `--ding-token`:
|
|
48
|
+
- `--oss-bucket-name`: `oss bucket` 名称
|
|
49
|
+
- `--oss-bucket-path`: `oss bucket` 路径
|
|
50
|
+
- `--oss-endpoint`: `oss` 的 `endpoint`
|
|
51
|
+
- `--ding-token`: 钉钉群机器人的`token`
|
|
45
52
|
- `--at-mobiles`: 钉钉群需要 @ 的人手机号,多个用 `,` 拼接
|
|
46
53
|
|
|
47
54
|
|
data/lib/ocean_package/fir.rb
CHANGED
|
@@ -37,11 +37,11 @@ module OceanPackage
|
|
|
37
37
|
|
|
38
38
|
# 命令:上传ipa文件到fir平台
|
|
39
39
|
def publish_cmd
|
|
40
|
-
cmd =
|
|
41
|
-
cmd +=
|
|
42
|
-
cmd +=
|
|
43
|
-
cmd +=
|
|
44
|
-
cmd +=
|
|
40
|
+
cmd = "fir publish"
|
|
41
|
+
cmd += " " + "#{@ipa_file_path}"
|
|
42
|
+
cmd += " -c " + "#{@change_log}"
|
|
43
|
+
cmd += " -Q"
|
|
44
|
+
cmd += " | tee " + "#{@log_path}"
|
|
45
45
|
|
|
46
46
|
Log.divider
|
|
47
47
|
Log.info("fir publish command: #{cmd}")
|