This a set of tools that helps me (and hopefully you) to manage Sugar bundles updates.
- Provide Sugar bundles updates, with minimal requirements.
- Upload bundles to the server.
- Update microformat file.
-
Get latest bundletools bits.
git clone https://github.com/tchx84/bundletools.git cd bundletools
-
Create or download your configuration recipe.
cp etc/bundles.json.example etc/bundles.json vim etc/bundles.json
or
cp ~/Downloads/bundles.json etc/bundles.json
-
Update one or more bundles, to a specific bundles repository.
./update.sh arm-addons Letters-25.xo
It will automatically upload the bundle to the corresponding directory in the server and it will also re-generate the microformat file.
-
Remove bundles specifying an expression.
./remove.sh arm-addons Letters*
It will list all the bundles that matches the expression, and will remove the bundles from the corresponding bundles directory, after confirmation.
-
Make an inventory of all activities provided:
./helpers/inventory.py --path /path/to/bundles/
It will output, in CVS format, the list of activities. This includes the activity bundle_id and name.