@wisdomgarden/mobile-assets 0.0.53 → 0.0.55
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.
- package/README.md +14 -71
- package/package.json +3 -5
- package/version_aligner.json +8 -0
- package/version_update_android.json +3 -3
- package/version_update_ios.json +2 -2
package/README.md
CHANGED
@@ -1,85 +1,28 @@
|
|
1
|
-
|
1
|
+
# Update assets flow
|
2
2
|
|
3
|
-
|
3
|
+
## Update version info
|
4
4
|
|
5
|
-
|
5
|
+
### I. Sync version file files
|
6
|
+
- In Project [mobile-assistant](https://gitlab.tronclass.com.cn/lms/mobile-assistant), prepare the preliminary work according to readme.md.
|
7
|
+
- You should clone mobile-assistant into the same directory as the current project.
|
8
|
+
- use `bash sync_version_files.sh` to sync latest file
|
6
9
|
|
7
|
-
2. `node scripts/add_market_apps_version.js` Batch increase market version records
|
8
10
|
|
9
|
-
###
|
11
|
+
### II. upgrade package `mobile-assets` version
|
10
12
|
|
11
|
-
|
13
|
+
1. ues `git diff` to check the changed files
|
14
|
+
2. then commit all files `git commit -m "update version file"`
|
15
|
+
3. `node scripts/upgrade_version.js` increase current project version number and add new tag
|
16
|
+
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)
|
12
17
|
|
13
|
-
|
14
|
-
|
15
|
-
```bash
|
16
|
-
node scripts/update_app_version_md.js
|
17
|
-
```
|
18
|
-
|
19
|
-
```json
|
20
|
-
// release note use markdown syntax
|
21
|
-
{
|
22
|
-
"version": "2.0.8",
|
23
|
-
"update_type": 1, // 0 force update
|
24
|
-
"allow_lowest_version": "2.1.3", // if less than allow_lowest_version force update
|
25
|
-
"app_store_url": "https://play.google.com/store/apps/details?id=com.wisdomgarden.trpc",
|
26
|
-
"app_store_url_cn": "https://sj.qq.com/myapp/detail.htm?apkName=com.wisdomgarden.trpc", // only for android
|
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",
|
28
|
-
"release_note_zh_hans": "- IOS安全区域调整\n- 修复作业描述不显示\n- 作业批改逻辑优化\n- 修复抢答结果页和评分页面不显示默认头像\n- 修复互动列表,学生点击抢答无响应\n- 互动教材播放提示信息优化\n- 二维码签到失败页面优化\n- UI优化",
|
29
|
-
"release_note_zh_hant": "- IOS安全區域調整\n- 修復作業描述不顯示問題\n- 作業批改邏輯優化\n- 修復搶答結果頁和評分頁面不顯示默認頭像問題\n- 修復互動列表,學生點擊搶答無反應問題\n- 互動教材播放提示文案優化\n- QR Code簽到失敗頁面優化\n- UI優化"
|
30
|
-
}
|
31
|
-
```
|
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
|
18
|
+
### III. refresh cdn
|
57
19
|
|
58
20
|
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
21
|
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
22
|
|
61
23
|
if update other file, edit `refresh_cdn.sh`, then run `bash scripts/refresh_cdn.sh` refresh it.
|
62
24
|
|
63
|
-
|
25
|
+
## Update privacy policy
|
64
26
|
|
65
27
|
1. `bash scripts/sync_privacy_files.sh`
|
66
|
-
2. goto [
|
67
|
-
|
68
|
-
##### Upload zip file to Azure for TW
|
69
|
-
|
70
|
-
CMD: `node ota/upload-to-azure.js qiniuZipUrl`
|
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`
|
72
|
-
|
73
|
-
paremeter `qiniuZipUrl`: the latest ota zip file url on qiniu
|
74
|
-
|
75
|
-
### Update tc-orgs-tool Ota Org Information
|
76
|
-
|
77
|
-
https://gitlab.tronclass.com.cn/lms/tc-orgs-tool
|
78
|
-
|
79
|
-
#### before
|
80
|
-
|
81
|
-
- Clone `git clone git@gitlab.tronclass.com.cn:lms/tc-orgs-tool.git`
|
82
|
-
- Edit `ota/.env.js` set project path & [LeanCloud API](https://leancloud.cn/docs/#REST-API) authorization information
|
83
|
-
- Make sure [OTAVersion prod env](https://console.leancloud.cn/apps/tRcsVqctq7saBytI0LpOCznA-gzGzoHsz/storage/data/OTAVersion) information correctly.
|
84
|
-
- Run `node ota/update-orgs-server-json.js`
|
85
|
-
- Goto `tc-orgs-tool` project, run `python update_orgs.py`
|
28
|
+
2. goto [II. upgrade package `mobile-assets` version](#II-upgrade-package-mobile-assets-version) to continue
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@wisdomgarden/mobile-assets",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.55",
|
4
4
|
"description": "host mobile assets",
|
5
5
|
"main": "index.js",
|
6
6
|
"repository": "git@github.com:WisdomGardenInc/mobile-assets.git",
|
@@ -13,9 +13,7 @@
|
|
13
13
|
"/*.md"
|
14
14
|
],
|
15
15
|
"devDependencies": {
|
16
|
-
"
|
17
|
-
"
|
18
|
-
"enquirer": "^2.3.6",
|
19
|
-
"shelljs": "^0.8.4"
|
16
|
+
"enquirer": "^2.4.1",
|
17
|
+
"shelljs": "^0.8.5"
|
20
18
|
}
|
21
19
|
}
|
package/version_aligner.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
|
-
"version": "2.
|
2
|
+
"version": "2.9.1",
|
3
3
|
"update_type": 1,
|
4
|
-
"allow_lowest_version": "2.6.
|
4
|
+
"allow_lowest_version": "2.6.2",
|
5
5
|
"app_store_url": "https://play.google.com/store/apps/details?id=com.wisdomgarden.trpc",
|
6
|
-
"app_store_url_cn": "https://mobile-download.tronclass.com.cn/mobile-2.0/app/android/app-release-2.
|
6
|
+
"app_store_url_cn": "https://mobile-download.tronclass.com.cn/mobile-2.0/app/android/app-release-2.9.1.apk",
|
7
7
|
"release_note_en_us": "- Fix bugs and improve system performance.",
|
8
8
|
"release_note_zh_hans": "- 已知问题修复和性能优化",
|
9
9
|
"release_note_zh_hant": "- 已知問題修復和性能優化"
|
package/version_update_ios.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
|
-
"version": "2.
|
2
|
+
"version": "2.9.1",
|
3
3
|
"update_type": 1,
|
4
|
-
"allow_lowest_version": "2.6.
|
4
|
+
"allow_lowest_version": "2.6.2",
|
5
5
|
"app_store_url": "https://apps.apple.com/app/scratch/id973028199",
|
6
6
|
"release_note_en_us": "- Fix bugs and improve system performance.",
|
7
7
|
"release_note_zh_hans": "- 已知问题修复和性能优化",
|