@wisdomgarden/mobile-assets 0.0.78 → 0.0.80
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 +56 -17
- package/assets-list.md +44 -0
- package/package.json +1 -1
- package/version_aligner.json +8 -40
- package/version_update_android.json +3 -3
- package/version_update_ios.json +2 -2
package/README.md
CHANGED
|
@@ -1,34 +1,73 @@
|
|
|
1
|
-
#
|
|
1
|
+
# mobile-assets
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Static assets hosted for the TronClass mobile apps: app version-update configs
|
|
4
|
+
(`version_update_*.json`, `version_aligner.json`, `toggle.json`), the privacy
|
|
5
|
+
policy / user agreement documents (root + `app-legal/`), the mhesi version files
|
|
6
|
+
and login-proxy pages, plus a few standalone HTML tools.
|
|
7
|
+
|
|
8
|
+
Everything is published to npm as [@wisdomgarden/mobile-assets](https://www.npmjs.com/package/@wisdomgarden/mobile-assets)
|
|
9
|
+
and served to the apps through two CDNs:
|
|
10
|
+
|
|
11
|
+
- **jsDelivr** — served straight from the npm package (`cdn.jsdelivr.net/npm/@wisdomgarden/mobile-assets@latest/...`).
|
|
12
|
+
- **qiniu** — files are uploaded to the `lms-mobile` bucket and served from `https://mobile-download.tronclass.com.cn/...`.
|
|
13
|
+
|
|
14
|
+
So updating an asset is: edit the file → publish a new version → refresh the CDN
|
|
15
|
+
caches. The two common tasks (update version info / update privacy policy) both
|
|
16
|
+
follow that flow; the shared steps are documented first.
|
|
17
|
+
|
|
18
|
+
## Publish and add tag
|
|
4
19
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
20
|
+
1. use `git diff` to check the changed files
|
|
21
|
+
2. commit all files, e.g. `git commit -m "update version file"`
|
|
22
|
+
3. `node scripts/upgrade_version.js` — bumps the project version number and adds a new git tag
|
|
23
|
+
4. `git push && git push --tags` — pushes to GitHub; the GitHub Action then publishes to npm
|
|
9
24
|
|
|
25
|
+
## Refresh CDN
|
|
10
26
|
|
|
11
|
-
|
|
27
|
+
Publishing to npm does **not** refresh the CDN caches — you must purge/re-upload
|
|
28
|
+
after the new version is live.
|
|
12
29
|
|
|
13
|
-
1.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
30
|
+
1. Wait ~10 minutes, then check [jsDelivr package data](https://data.jsdelivr.com/v1/package/npm/@wisdomgarden/mobile-assets)
|
|
31
|
+
until the latest tag matches `package.json.version`.
|
|
32
|
+
2. Run the refresh command **for the scope you changed** — each scope only touches
|
|
33
|
+
its own files / CDNs, so updating the version no longer re-uploads the legal
|
|
34
|
+
docs and vice versa:
|
|
17
35
|
|
|
18
|
-
|
|
36
|
+
```bash
|
|
37
|
+
bash scripts/refresh_cdn.sh version # version_update_*.json / version_aligner.json / toggle.json
|
|
38
|
+
bash scripts/refresh_cdn.sh legal # privacy-policy / user-agreement / children / summary (root + app-legal/)
|
|
39
|
+
bash scripts/refresh_cdn.sh mhesi # mhesi/version/*.json + mhesi/third-party-login-proxy/
|
|
40
|
+
bash scripts/refresh_cdn.sh identity # identity-web-login-proxy/ directory
|
|
41
|
+
bash scripts/refresh_cdn.sh all # everything (default when no scope given)
|
|
42
|
+
```
|
|
19
43
|
|
|
20
|
-
|
|
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)
|
|
44
|
+
Notes:
|
|
22
45
|
|
|
23
|
-
|
|
46
|
+
- Requires `qshell` configured for the `lms-mobile` bucket (used for the qiniu
|
|
47
|
+
upload + refresh; jsDelivr only needs `curl`).
|
|
48
|
+
- The file list for each scope is maintained in **one place** inside
|
|
49
|
+
`scripts/refresh_cdn.sh` — jsDelivr purge, qiniu upload and qiniu refresh are all
|
|
50
|
+
derived from it. If you add a new file, add it to the matching group array there.
|
|
51
|
+
|
|
52
|
+
## Update version info
|
|
53
|
+
|
|
54
|
+
1. Sync version files from [mobile-assistant](https://gitlab.tronclass.com.cn/lms/mobile-assistant):
|
|
55
|
+
`bash ./scripts/sync_version_files.sh [path-to-mobile-assistant]` (defaults to `../mobile-assistant`).
|
|
56
|
+
2. [Publish and add tag](#publish-and-add-tag).
|
|
57
|
+
3. [Refresh CDN](#refresh-cdn): `bash scripts/refresh_cdn.sh version`.
|
|
58
|
+
4. Preview the release note: local live server `./preview-release.html`, or
|
|
59
|
+
[online from GitHub Pages](https://wisdomgardeninc.github.io/mobile-assets/preview-release.html).
|
|
24
60
|
|
|
25
61
|
## Update privacy policy
|
|
26
62
|
|
|
27
|
-
Privacy-policy / user-agreement files live in `app-legal/`.
|
|
28
|
-
publish via [II](#II-upgrade-package-mobile-assets-version). Keep the whole set in
|
|
63
|
+
Privacy-policy / user-agreement files live in `app-legal/`. Keep the whole set in
|
|
29
64
|
that folder — pages load `policy-common.*` / `marked-4.0.1.min.js` and fetch their
|
|
30
65
|
`*-info.json` / `*-<lang>.md` by relative path.
|
|
31
66
|
|
|
67
|
+
1. Edit the files under `app-legal/`.
|
|
68
|
+
2. [Publish and add tag](#publish-and-add-tag).
|
|
69
|
+
3. [Refresh CDN](#refresh-cdn): `bash scripts/refresh_cdn.sh legal`.
|
|
70
|
+
|
|
32
71
|
- Root-level copies are legacy duplicates for already-released apps still using the
|
|
33
72
|
root URLs; edit them in sync, and delete once those app versions are retired.
|
|
34
73
|
- China app-market review snapshots: see `app-legal/store-review/`.
|
package/assets-list.md
CHANGED
|
@@ -29,6 +29,28 @@ https://mobile-download.tronclass.com.cn/children-privacy-policy-zh-CN.md
|
|
|
29
29
|
https://mobile-download.tronclass.com.cn/summary-privacy-policy.html
|
|
30
30
|
https://mobile-download.tronclass.com.cn/summary-privacy-policy-zh-CN.md
|
|
31
31
|
|
|
32
|
+
// app-legal/ — used by new app versions
|
|
33
|
+
https://mobile-download.tronclass.com.cn/app-legal/policy-jump.html
|
|
34
|
+
https://mobile-download.tronclass.com.cn/app-legal/marked-4.0.1.min.js
|
|
35
|
+
https://mobile-download.tronclass.com.cn/app-legal/policy-common.js
|
|
36
|
+
https://mobile-download.tronclass.com.cn/app-legal/policy-common.css
|
|
37
|
+
https://mobile-download.tronclass.com.cn/app-legal/privacy-policy.html
|
|
38
|
+
https://mobile-download.tronclass.com.cn/app-legal/privacy-policy-info.json
|
|
39
|
+
https://mobile-download.tronclass.com.cn/app-legal/privacy-policy-zh-CN.md
|
|
40
|
+
https://mobile-download.tronclass.com.cn/app-legal/privacy-policy-en.md
|
|
41
|
+
https://mobile-download.tronclass.com.cn/app-legal/privacy-policy-zh-TW.md
|
|
42
|
+
https://mobile-download.tronclass.com.cn/app-legal/user-agreement.html
|
|
43
|
+
https://mobile-download.tronclass.com.cn/app-legal/user-agreement-info.json
|
|
44
|
+
https://mobile-download.tronclass.com.cn/app-legal/user-agreement-zh-CN.md
|
|
45
|
+
https://mobile-download.tronclass.com.cn/app-legal/user-agreement-zh-TW.md
|
|
46
|
+
https://mobile-download.tronclass.com.cn/app-legal/user-agreement-en.md
|
|
47
|
+
https://mobile-download.tronclass.com.cn/app-legal/children-privacy-policy.html
|
|
48
|
+
https://mobile-download.tronclass.com.cn/app-legal/children-privacy-policy-info.json
|
|
49
|
+
https://mobile-download.tronclass.com.cn/app-legal/children-privacy-policy-zh-CN.md
|
|
50
|
+
https://mobile-download.tronclass.com.cn/app-legal/summary-privacy-policy.html
|
|
51
|
+
https://mobile-download.tronclass.com.cn/app-legal/summary-privacy-policy-zh-CN.md
|
|
52
|
+
https://mobile-download.tronclass.com.cn/app-legal/privacy_policy_google_play.html
|
|
53
|
+
|
|
32
54
|
// identity-web-login-proxy
|
|
33
55
|
https://mobile-download.tronclass.com.cn/identity-web-login-proxy/favicon.ico
|
|
34
56
|
https://mobile-download.tronclass.com.cn/identity-web-login-proxy/identity-web-login-proxy-callback.html
|
|
@@ -67,6 +89,28 @@ https://wisdomgardeninc.github.io/mobile-assets/children-privacy-policy-zh-CN.md
|
|
|
67
89
|
https://wisdomgardeninc.github.io/mobile-assets/summary-privacy-policy.html
|
|
68
90
|
https://wisdomgardeninc.github.io/mobile-assets/summary-privacy-policy-zh-CN.md
|
|
69
91
|
|
|
92
|
+
// app-legal/ — used by new app versions
|
|
93
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/policy-jump.html
|
|
94
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/marked-4.0.1.min.js
|
|
95
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/policy-common.js
|
|
96
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/policy-common.css
|
|
97
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/privacy-policy.html
|
|
98
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/privacy-policy-info.json
|
|
99
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/privacy-policy-zh-CN.md
|
|
100
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/privacy-policy-en.md
|
|
101
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/privacy-policy-zh-TW.md
|
|
102
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/user-agreement.html
|
|
103
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/user-agreement-info.json
|
|
104
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/user-agreement-zh-CN.md
|
|
105
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/user-agreement-zh-TW.md
|
|
106
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/user-agreement-en.md
|
|
107
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/children-privacy-policy.html
|
|
108
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/children-privacy-policy-info.json
|
|
109
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/children-privacy-policy-zh-CN.md
|
|
110
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/summary-privacy-policy.html
|
|
111
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/summary-privacy-policy-zh-CN.md
|
|
112
|
+
https://wisdomgardeninc.github.io/mobile-assets/app-legal/privacy_policy_google_play.html
|
|
113
|
+
|
|
70
114
|
// identity-web-login-proxy
|
|
71
115
|
https://wisdomgardeninc.github.io/mobile-assets/identity-web-login-proxy/favicon.ico
|
|
72
116
|
https://wisdomgardeninc.github.io/mobile-assets/identity-web-login-proxy/identity-web-login-proxy-callback.html
|
package/package.json
CHANGED
package/version_aligner.json
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"mobileVersion": "2.16.0",
|
|
4
|
+
"serverVersion": "1.77"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"mobileVersion": "2.15.1",
|
|
8
|
+
"serverVersion": "1.76"
|
|
9
|
+
},
|
|
2
10
|
{
|
|
3
11
|
"mobileVersion": "2.15.0",
|
|
4
12
|
"serverVersion": "1.76"
|
|
@@ -58,45 +66,5 @@
|
|
|
58
66
|
{
|
|
59
67
|
"mobileVersion": "2.10.0",
|
|
60
68
|
"serverVersion": "1.72"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"mobileVersion": "2.9.1",
|
|
64
|
-
"serverVersion": "1.71"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"mobileVersion": "2.8.1",
|
|
68
|
-
"serverVersion": "1.70-1.72"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"mobileVersion": "2.8.0",
|
|
72
|
-
"serverVersion": "1.70-1.72"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"mobileVersion": "2.7.0",
|
|
76
|
-
"serverVersion": "1.69-1.71"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"mobileVersion": "2.6.2",
|
|
80
|
-
"serverVersion": "1.68-1.70"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"mobileVersion": "2.6.1",
|
|
84
|
-
"serverVersion": "1.68-1.70"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"mobileVersion": "2.6.0",
|
|
88
|
-
"serverVersion": "1.68-1.70"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"mobileVersion": "2.5.2",
|
|
92
|
-
"serverVersion": "1.67-1.69"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"mobileVersion": "2.5.1",
|
|
96
|
-
"serverVersion": "1.67-1.69"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"mobileVersion": "2.5.0",
|
|
100
|
-
"serverVersion": "1.67-1.69"
|
|
101
69
|
}
|
|
102
70
|
]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.
|
|
3
|
-
"update_type":
|
|
2
|
+
"version": "2.16.0",
|
|
3
|
+
"update_type": 1,
|
|
4
4
|
"allow_lowest_version": "2.14.5",
|
|
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.16.0.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