@wisdomgarden/mobile-assets
v0.0.53
Published
host mobile assets
Downloads
25
Keywords
Readme
Update assets flow
Add version records before uploading to the market
~~HiPaCloud~~飞书多维表格 Create a new version record and improve the release notes, need edit it manually.
node scripts/add_market_apps_version.js
Batch increase market version records
Update version info
一、modify version info json
- update
version_update_android.json / version_update_ios.json
(optional)
node scripts/update_app_version_md.js
// release note use markdown syntax
{
"version": "2.0.8",
"update_type": 1, // 0 force update
"allow_lowest_version": "2.1.3", // if less than allow_lowest_version force update
"app_store_url": "https://play.google.com/store/apps/details?id=com.wisdomgarden.trpc",
"app_store_url_cn": "https://sj.qq.com/myapp/detail.htm?apkName=com.wisdomgarden.trpc", // only for android
"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",
"release_note_zh_hans": "- IOS安全区域调整\n- 修复作业描述不显示\n- 作业批改逻辑优化\n- 修复抢答结果页和评分页面不显示默认头像\n- 修复互动列表,学生点击抢答无响应\n- 互动教材播放提示信息优化\n- 二维码签到失败页面优化\n- UI优化",
"release_note_zh_hant": "- IOS安全區域調整\n- 修復作業描述不顯示問題\n- 作業批改邏輯優化\n- 修復搶答結果頁和評分頁面不顯示默認頭像問題\n- 修復互動列表,學生點擊搶答無反應問題\n- 互動教材播放提示文案優化\n- QR Code簽到失敗頁面優化\n- UI優化"
}
- update
version_aligner.json
(optional)
node scripts/update_version_aligner.cjs
// version_aligner.json use markdown syntax
// This json file records the correspondence between the mobile version and the web version
[
{
"mobileVersion": "xxx",
"serverVersion": "xxx"
}
]
二、upgrade package mobile-assets
version
- check for errors then git commit
git commit -m "update version file"
node scripts/upgrade_version.js
increase current project version number and add new taggit push && git push --tags
push to GitHub, and Github Action publish it to npm @wisdomgarden/mobile-assets
三、refresh cdn
- after about 10 minutes, check jsDeliver package data util latest tag is same as package.json.version then
bash scripts/refresh_cdn.sh
refresh json file cdn cache - preview release note. local use live server
./preview-release.html
or Online from GitHub Pages
if update other file, edit refresh_cdn.sh
, then run bash scripts/refresh_cdn.sh
refresh it.
update privacy policy
bash scripts/sync_privacy_files.sh
- goto [update version info] step 3
Upload zip file to Azure for TW
CMD: node ota/upload-to-azure.js qiniuZipUrl
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
paremeter qiniuZipUrl
: the latest ota zip file url on qiniu
Update tc-orgs-tool Ota Org Information
https://gitlab.tronclass.com.cn/lms/tc-orgs-tool
before
- Clone
git clone [email protected]:lms/tc-orgs-tool.git
- Edit
ota/.env.js
set project path & LeanCloud API authorization information - Make sure OTAVersion prod env information correctly.
- Run
node ota/update-orgs-server-json.js
- Goto
tc-orgs-tool
project, runpython update_orgs.py