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:
If the value does not start with "http" then behaves like now, otherwise...
Check if the online version (pointed by the given url) has a different size than the local version (same file name). If different, erase local version, otherwise just continue with the local version.
Be carreful, the given URL might be a HTTP redirection, in that case, please keep the filename of the redirect and not of the target.
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.
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.