Skip to content

Commit

Permalink
nightswatcher: add Android and PRSTUX to OTA models
Browse files Browse the repository at this point in the history
  • Loading branch information
Frenzie committed Oct 27, 2018
1 parent 3de3dc0 commit 9205a4b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nightswatcher/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.4.13
VERSION=0.4.14

all: build

Expand Down
9 changes: 6 additions & 3 deletions nightswatcher/nightswatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,12 @@ def get_artifact_metadata(artifact_zip):
'build_ubuntutouch': 'click',
}

ota_models = frozenset(['build_kindle', 'build_legacy_kindle',
# names come from GitLab, see https://gitlab.com/koreader/nightly-builds/blob/master/.gitlab-ci.yml
ota_models = frozenset(['build_android', 'build_android_x86',
'build_kindle', 'build_legacy_kindle',
'build_kindle5', 'build_kindlepw2',
'build_kobo', 'build_pocketbook'])
'build_kobo', 'build_pocketbook',
'build_sony_prstux'])


def extract_build(artifact_zip, build):
Expand Down Expand Up @@ -173,7 +176,7 @@ def extract_build(artifact_zip, build):

# build zsync metadata for kindle, kobo and pocketbook OTA
if build['name'] in ota_models:
# FIXME: check verion in latest-nightly and skip old versions
# FIXME: check version in latest-nightly and skip old versions
zsync_file = OTA_DIR + ('koreader-%s-latest-nightly.zsync' % platform)
shutil.move(tmp_targz_path, OTA_DIR)
run_cmd(['zsyncmake', OTA_DIR + artifact['targz'],
Expand Down

0 comments on commit 9205a4b

Please sign in to comment.