From 28cad7f13dedbad1d500797fff5183117345ce3d Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Tue, 7 May 2024 21:06:28 -0600 Subject: [PATCH] Add warning message --- README.md | 4 ++-- codexctl/updates.py | 9 ++++++--- data/version-ids.json | 8 +++++--- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index f95b6af..1b370ac 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ python codexctl.py --help ### Running on a remote device -This requires python 3.8 or newer. +This requires python 3.11 or newer. ``` git clone https://github.com/Jayy001/codexctl.git @@ -40,7 +40,7 @@ python codexctl.py --help ## Building executables from source -This requires python 3.8 or newer, python-venv, pip. Linux also requires libfuse-dev. +This requires python 3.11 or newer, python-venv, pip. Linux also requires libfuse-dev. ``` make executable diff --git a/codexctl/updates.py b/codexctl/updates.py index 693ca82..85fc3be 100644 --- a/codexctl/updates.py +++ b/codexctl/updates.py @@ -33,7 +33,7 @@ def __init__(self, device_version=None, logger=None): self.id_lookups_rm2 = versions["remarkable2"] self.latest_toltec_version = versions["toltec"] - self.latest_version = "3.7.0.1930" + self.latest_version = versions["latest"] def update_version_ids(self, location): with open(location, "w") as f: @@ -119,8 +119,11 @@ def get_version(self, device=2, version=None, download_folder=None): else: BASE_URL = BASE_URL_V3 - id = f"-{versionDict[version][0]}" - checksum = versionDict[version][1] + data = versionDict[version] + id = f"-{data[0]}" + checksum = data[1] + if len(data) > 2: + print(f"Warning for {version}: {data[2]}") file_name = f"{version}_reMarkable{'2' if device == 2 else ''}{id}.signed" file_url = f"{BASE_URL}/{version}/{file_name}" diff --git a/data/version-ids.json b/data/version-ids.json index befd475..2474a4c 100644 --- a/data/version-ids.json +++ b/data/version-ids.json @@ -2,7 +2,8 @@ "remarkable1": { "3.11.2.5": [ "ShunAN3V1W", - "2ad14c56caca60f4db19b55297519f1507a36b042c6aad3fb31fde41ba15ffb8" + "2ad14c56caca60f4db19b55297519f1507a36b042c6aad3fb31fde41ba15ffb8", + "This version changes the update mechanism, which codexctl currently does not support. If you install this version, you will not be able to downgrade using codexctl." ], "3.10.2.2063": [ "NXiSL3XohA", @@ -128,7 +129,8 @@ "remarkable2": { "3.11.2.5": [ "qLFGoqPtPL", - "a86afd842c6f1e5b33f4bbc10ec8360ce1789ab1c6caef75324619e0ab859cdb" + "a86afd842c6f1e5b33f4bbc10ec8360ce1789ab1c6caef75324619e0ab859cdb", + "This version changes the update mechanism, which codexctl currently does not support. If you install this version, you will not be able to downgrade using codexctl." ], "3.10.2.2063": [ "zKnOgdh8c5", @@ -266,4 +268,4 @@ "last-updated": 1714393567, "toltec": "2.15.1.1189", "latest": "3.11.2.5" -} \ No newline at end of file +}