kiwix / kiwix-xulrunner

[ARCHIVED] Legacy Kiwix desktop solution for Windows/macOS/Linux
https://download.kiwix.org/release/kiwix-xulrunner/
GNU General Public License v3.0
112 stars 28 forks source link

Automatically download missing ZIM files when compiling Kiwix custom Android apps #387

Closed kelson42 closed 7 years ago

kelson42 commented 7 years ago

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. In each JSON file, there is a property "zim_file" which is a path to the ZIM content file on the local file system.

We want to be able to put here a HTTP URL to avoid the burden of downloading/syncing the file each time manually.

The script who deal with thie JSON file is "gen-custom-android-build.py" and should behaves like following:

Remark: The download can be done in Python or using a third part tool (curl or wget). In both case, we need a way to follow the downloading progress. If an external tool is used, please add a check to secure its presence on the system.