Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get collections from the latest release #152

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ ARCH_OPTIONS := $(foreach arch,$(ARCHES),--arch=$(arch))

OSNAME := $(shell uname -s)

COLLECTIONS_TARBALL_URL := $(shell curl -s https://api.github.com/repos/endlessm/endless-key-collections/releases/latest | jq '.tarball_url' --raw-output)

starnight marked this conversation as resolved.
Show resolved Hide resolved
ifeq ($(OSNAME), Darwin)
PLATFORM := macosx
else
Expand Down Expand Up @@ -139,18 +141,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:
wget -N ${COLLECTIONS_TARBALL_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
mkdir -p src/collections
tar -xz -f collections.tar.gz -C src/collections --overwrite '*/json/*.json' --strip-components=2

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