Update Kiwix Android custom app compliation script so that content paths are relative to their respective json file
Custom apps are "special" Kiwix apps which are pre-packaged with a content. The multiple custom apps we propose are configured through dedicated JSON files, available in the "custom" directory.
The few paths available in the JSON files are relative to the script used to generate the custom apps: gen-custom-android-build.py. This is a problem, because we can not move these files and this makes their handling more complicated than needed.
We need to change them to be relative to the JSON file itself. For example "zim_file": "custom/phet/content.zim", in "custom/phet/info.json" should be "zim_file": "content.zim".
Steps to reproduce:
- Compile a custom app, for example "phet"
- Have a look to the corresponding JSON file at custom/phet/info.json
What you get:
- Paths (of content or icon) are custom/phet/...
What we want:
- "./content.zim" and "icon.png"
What to do:
- Edit the gen-custom-android-build.py script to deal with new paths (relative to the info.json)
- Update all current custom app scripts to reflect this change.
See also:
- Have a look to the README file to see how to compile custom apps.
How to step-in in development: http://wiki.kiwix.org/wiki/Google_Code-in