Skip to content

Commit 38521b9

Browse files
committed
Add endless-key-kolibri-home to build output
The Makefile requires that `kolibri` is installed, and uses it to generate a Kolibri home with content from a provided content manifest.
1 parent 601a04d commit 38521b9

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ CLEAN_DEPS = \
5757
clean-kolibri \
5858
clean-apps-bundle \
5959
clean-collections \
60+
clean-endless-key-kolibri-home \
6061
clean-local-kolibri-explore-plugin \
6162
clean-loadingScreen
6263
CLEAN_FILES = \
@@ -145,6 +146,15 @@ clean-apps-bundle:
145146
src/apps-bundle: clean-apps-bundle apps-bundle.zip
146147
unzip -qo apps-bundle.zip -d src/apps-bundle
147148

149+
clean-endless-key-kolibri-home:
150+
- rm -rf src/endless-key-kolibri-home
151+
152+
src/endless-key-kolibri-home: src/collections
153+
export KOLIBRI_HOME=src/endless-key-kolibri-home
154+
cat src/collections/artist-0001.json | jq '.channels[] | .id' | xargs -n1 echo kolibri manage importchannel network
155+
cat src/collections/artist-0001.json | jq '.channels[] | .id' | xargs -n1 echo kolibri manage importcontent --manifest=src/collections/artist-0001.json network
156+
kolibri manage deprovision
157+
148158
.PHONY: collections.zip
149159
collections.zip:
150160
wget -N https://github.com/endlessm/endless-key-collections/releases/latest/download/collections.zip
@@ -193,6 +203,7 @@ DIST_DEPS = \
193203
src/kolibri \
194204
src/apps-bundle \
195205
src/collections \
206+
src/endless-key-kolibri-home \
196207
assets/loadingScreen \
197208
needs-version \
198209
dist/version.json

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
cython~=0.29
22
virtualenv
33
git+https://github.com/endlessm/python-for-android@v2022.09.04-endless10#egg=python-for-android
4+
kolibri

0 commit comments

Comments
 (0)