https://github.com/openblockcc/openblock-resource-cli
Cli tools for resource translation and pre-process before release.
https://github.com/openblockcc/openblock-resource-cli
Last synced: about 1 year ago
JSON representation
Cli tools for resource translation and pre-process before release.
- Host: GitHub
- URL: https://github.com/openblockcc/openblock-resource-cli
- Owner: openblockcc
- License: mit
- Created: 2022-01-14T15:26:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-04T05:08:48.000Z (about 4 years ago)
- Last Synced: 2025-03-29T06:11:24.704Z (about 1 year ago)
- Language: JavaScript
- Size: 217 KB
- Stars: 0
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# openblock-resource-cli
[](https://github.com/openblockcc/openblock-resource-cli/actions/workflows/publish.yml)

Provide some cli tools for resource translation and pre-process before release.
## Instructions
- Pre-process tools for release
- **opt-size** used to delete useless files to reduce the expansion size
- **gen-config** used to rewrite the configuration file that records the update parameters and folder hash
eg: `gen-config --version=v0.0.1`
- Translation tools
- **i18n-extract** used to extract all i18n content within resources identified as community official extensions
- **i18n-push** used to push the extracted i18n content to transifex
- **i18n-update** used to pull the translation content on transifex, generate and update the local translation file
- Release tools
- **upload-file** used to upload a file to digital ocean spaces. Used in updates in China.
eg: `upload-file --filePath=test.zip --endPoint=https://sgp1.digitaloceanspaces.com --bucket=openblock`
- **upload-releaseInfo** used to fetch latest release info and upload it to digital ocean spaces. Used in updates in China.
eg: `upload-releaseInfo --repo=openblockcc/external-resources-v2 --endPoint=https://sgp1.digitaloceanspaces.com --bucket=openblock`