Skip to content

Commit

Permalink
Get collections from the latest release
Browse files Browse the repository at this point in the history
Instead of downloading collections from the newest commit, use the most
recent release from endless-key-collections.
  • Loading branch information
dylanmccall committed Jun 15, 2023
1 parent 438e18f commit e9e96f1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,18 +139,16 @@ clean-apps-bundle:
src/apps-bundle: clean-apps-bundle apps-bundle.zip
unzip -qo apps-bundle.zip -d src/apps-bundle

.PHONY: collections.zip
collections.zip:
wget -N https://github.com/endlessm/endless-key-collections/archive/refs/heads/main.zip
mv main.zip collections.zip
.PHONY: collections.tar.gz
collections.tar.gz:
zipball_url=$(curl -s https://api.github.com/repos/endlessm/endless-key-collections/releases/latest | jq '.tarball_url' --raw-output)
wget -N ${zipball_url} -O collections.tar.gz

clean-collections:
- rm -rf src/collections

src/collections: clean-collections collections.zip
unzip -qo collections.zip
mv endless-key-collections-main/json/ src/collections
rm -rf endless-key-collections-main
src/collections: clean-collections collections.tar.gz
tar -xz -f collections.tar.gz -C src/collections --overwrite '*/json/*' --strip-components=2

clean-local-kolibri-explore-plugin:
# The * is to also remove the VERSION.dist-info directory:
Expand Down

0 comments on commit e9e96f1

Please sign in to comment.