Publish to Blocklet Store
- Register as a developer from the Blocklet Store
- Blocklet Store is a decentralized Blocklet
- Arcblock provides 2 official Store: blocklet store and blocklet store(dev)
- You can setup a self-hosted store refer to https://store.blocklet.dev/blocklets/z8ia29UsENBg6tLZUKi2HABj38Cw1LmHZocbQ
- You need to apply for a developer first, after the administrator has approved, you can proceed to the next step
- Create a new access key
- Use
blocklet connect <store-url>command to create and access key from store
- Use
- Bundle your blocklet
- Refer to Bundle your blocklet
- Upload your blocklet
- Use
blocklet uploadto upload your blocklet bundle to store
- Use
- Login to the uploaded Blocklet Store, you can see the uploaded Blocklet in the "My Blocklet" page in Admin Dashboard
- The uploaded Blocklet is still in the "draft" status, click the "publish" button to publish
Publish to multiple stores
- Use
blocklet connect <store-url> --profile <profile>to save access token of different stores - Use
blocklet upload --profile <profile>to upload your blocklet bundle to multiple stores
Caveats
If you need to publish your blocklet to multiple stores during the distribution workflow, and if your blocklet has dependency components, the recommended way to declare dependency is following:
- Development: Set
COMPONENT_STORE_URL="https://test.store.blocklet.dev"in your.env.local - Production: Set
COMPONENT_STORE_URLin your github action workflow.
Note
TODO: ## Host with github release
Note
TODO: ## Other hosting options