@wisdomgarden/mobile-assets 0.0.47 → 0.0.48
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +47 -22
- package/package.json +1 -1
- package/version_aligner.json +30 -0
package/README.md
CHANGED
@@ -1,33 +1,23 @@
|
|
1
1
|
## Update assets flow
|
2
2
|
|
3
|
-
|
4
3
|
### Add version records before uploading to the market
|
5
4
|
|
6
5
|
1. ~~[HiPaCloud](https://hipacloud.com/apps/61246bbeb74fa7ca113500cb/tables/61357f137c852d44c4e9248d)~~[飞书多维表格](https://wisdomgarden.feishu.cn/base/bascnGagJw701WLXVakop4vQlwc?table=tblgnx3liFOXJ3el&view=vewRsmyLYE) Create a new version record and improve the release notes, need edit it manually.
|
7
6
|
|
8
7
|
2. `node scripts/add_market_apps_version.js` Batch increase market version records
|
9
8
|
|
9
|
+
### Update version info
|
10
10
|
|
11
|
-
|
12
|
-
**update `version_update_android.json / version_update_ios.json`**
|
13
|
-
|
14
|
-
1. `node scripts/update_app_version_md.js` update json file with ~~hipa~~ feishu remote data, or edit it manually
|
15
|
-
2. check for errors then git commit `git commit -m "update version file"`
|
16
|
-
3. `node scripts/upgrade_version.js` increase current project version number and add new tag
|
17
|
-
4. `git push && git push --tags` push to GitHub, and Github Action publish it to [npm @wisdomgarden/mobile-assets](https://www.npmjs.com/package/@wisdomgarden/mobile-assets)
|
18
|
-
5. after about 10 minutes, check [jsDeliver package data](https://data.jsdelivr.com/v1/package/npm/@wisdomgarden/mobile-assets) util latest tag is same as package.json.version then `bash scripts/refresh_cdn.sh` refresh json file cdn cache
|
19
|
-
6. preview release note. local use live server `./preview-release.html` or [Online from GitHub Pages](https://wisdomgardeninc.github.io/mobile-assets/preview-release.html)
|
20
|
-
|
21
|
-
if update other file, edit `refresh_cdn.sh`, then run `bash scripts/refresh_cdn.sh` refresh it.
|
22
|
-
|
23
|
-
|
24
|
-
### update privacy policy
|
25
|
-
1. `bash scripts/sync_privacy_files.sh`
|
26
|
-
2. goto [update version info] step 3
|
11
|
+
#### 一、modify version info json
|
27
12
|
|
13
|
+
1. **update `version_update_android.json / version_update_ios.json`**(optional)
|
28
14
|
|
29
|
-
|
15
|
+
```bash
|
16
|
+
node scripts/update_app_version_md.js
|
30
17
|
```
|
18
|
+
|
19
|
+
```json
|
20
|
+
// release note use markdown syntax
|
31
21
|
{
|
32
22
|
"version": "2.0.8",
|
33
23
|
"update_type": 1, // 0 force update
|
@@ -36,25 +26,60 @@ if update other file, edit `refresh_cdn.sh`, then run `bash scripts/refresh_cdn.
|
|
36
26
|
"app_store_url_cn": "https://sj.qq.com/myapp/detail.htm?apkName=com.wisdomgarden.trpc", // only for android
|
37
27
|
"release_note_en_us": "- IOS security zone adjustment\n- Repair job description is not displayed\n- Optimized job review logic\n- Fixed the problem that the default avatar was not displayed on the answering result page and the scoring page\n- Fix the interactive list, the students clicked and did not respond\n- Optimized the prompt information of interactive teaching materials\n- QR code sign-in failure page optimization\n- UI optimization",
|
38
28
|
"release_note_zh_hans": "- IOS安全区域调整\n- 修复作业描述不显示\n- 作业批改逻辑优化\n- 修复抢答结果页和评分页面不显示默认头像\n- 修复互动列表,学生点击抢答无响应\n- 互动教材播放提示信息优化\n- 二维码签到失败页面优化\n- UI优化",
|
39
|
-
"release_note_zh_hant": "- IOS安全區域調整\n- 修復作業描述不顯示問題\n- 作業批改邏輯優化\n- 修復搶答結果頁和評分頁面不顯示默認頭像問題\n- 修復互動列表,學生點擊搶答無反應問題\n- 互動教材播放提示文案優化\n- QR Code簽到失敗頁面優化\n- UI優化"
|
29
|
+
"release_note_zh_hant": "- IOS安全區域調整\n- 修復作業描述不顯示問題\n- 作業批改邏輯優化\n- 修復搶答結果頁和評分頁面不顯示默認頭像問題\n- 修復互動列表,學生點擊搶答無反應問題\n- 互動教材播放提示文案優化\n- QR Code簽到失敗頁面優化\n- UI優化"
|
40
30
|
}
|
41
31
|
```
|
42
32
|
|
33
|
+
2. **update `version_aligner.json`**(optional)
|
34
|
+
|
35
|
+
```bash
|
36
|
+
node scripts/update_version_aligner.cjs
|
37
|
+
```
|
38
|
+
|
39
|
+
```json
|
40
|
+
// version_aligner.json use markdown syntax
|
41
|
+
// This json file records the correspondence between the mobile version and the web version
|
42
|
+
[
|
43
|
+
{
|
44
|
+
"mobileVersion": "xxx",
|
45
|
+
"serverVersion": "xxx"
|
46
|
+
}
|
47
|
+
]
|
48
|
+
```
|
49
|
+
|
50
|
+
#### 二、upgrade package `mobile-assets` version
|
51
|
+
|
52
|
+
1. check for errors then git commit `git commit -m "update version file"`
|
53
|
+
2. `node scripts/upgrade_version.js` increase current project version number and add new tag
|
54
|
+
3. `git push && git push --tags` push to GitHub, and Github Action publish it to [npm @wisdomgarden/mobile-assets](https://www.npmjs.com/package/@wisdomgarden/mobile-assets)
|
55
|
+
|
56
|
+
#### 三、refresh cdn
|
57
|
+
|
58
|
+
1. after about 10 minutes, check [jsDeliver package data](https://data.jsdelivr.com/v1/package/npm/@wisdomgarden/mobile-assets) util latest tag is same as package.json.version then `bash scripts/refresh_cdn.sh` refresh json file cdn cache
|
59
|
+
2. preview release note. local use live server `./preview-release.html` or [Online from GitHub Pages](https://wisdomgardeninc.github.io/mobile-assets/preview-release.html)
|
60
|
+
|
61
|
+
if update other file, edit `refresh_cdn.sh`, then run `bash scripts/refresh_cdn.sh` refresh it.
|
62
|
+
|
63
|
+
### update privacy policy
|
64
|
+
|
65
|
+
1. `bash scripts/sync_privacy_files.sh`
|
66
|
+
2. goto [update version info] step 3
|
67
|
+
|
43
68
|
##### Upload zip file to Azure for TW
|
69
|
+
|
44
70
|
CMD: `node ota/upload-to-azure.js qiniuZipUrl`
|
45
71
|
e.g. `node ota/upload-to-azure.js https://mobile-download.tronclass.com.cn/mobile-2.0/ota/prod/2.2.9.1656581179.d71a7d06.zip`
|
46
72
|
|
47
|
-
|
48
73
|
paremeter `qiniuZipUrl`: the latest ota zip file url on qiniu
|
49
74
|
|
50
|
-
|
51
75
|
### Update tc-orgs-tool Ota Org Information
|
76
|
+
|
52
77
|
https://gitlab.tronclass.com.cn/lms/tc-orgs-tool
|
53
78
|
|
54
79
|
#### before
|
80
|
+
|
55
81
|
- Clone `git clone git@gitlab.tronclass.com.cn:lms/tc-orgs-tool.git`
|
56
82
|
- Edit `ota/.env.js` set project path & [LeanCloud API](https://leancloud.cn/docs/#REST-API) authorization information
|
57
83
|
- Make sure [OTAVersion prod env](https://console.leancloud.cn/apps/tRcsVqctq7saBytI0LpOCznA-gzGzoHsz/storage/data/OTAVersion) information correctly.
|
58
84
|
- Run `node ota/update-orgs-server-json.js`
|
59
85
|
- Goto `tc-orgs-tool` project, run `python update_orgs.py`
|
60
|
-
|
package/package.json
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"mobileVersion": "2.7.0",
|
4
|
+
"serverVersion": "1.69~1.71"
|
5
|
+
},
|
6
|
+
{
|
7
|
+
"mobileVersion": "2.6.2",
|
8
|
+
"serverVersion": "1.68~1.70"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"mobileVersion": "2.6.1",
|
12
|
+
"serverVersion": "1.68~1.70"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"mobileVersion": "2.6.0",
|
16
|
+
"serverVersion": "1.68~1.70"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"mobileVersion": "2.5.2",
|
20
|
+
"serverVersion": "1.67~1.69"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"mobileVersion": "2.5.1",
|
24
|
+
"serverVersion": "1.67~1.69"
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"mobileVersion": "2.5.0",
|
28
|
+
"serverVersion": "1.67~1.69"
|
29
|
+
}
|
30
|
+
]
|