Skip to content

Commit

Permalink
Add warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed May 8, 2024
1 parent 00b873d commit 28cad7f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
9 changes: 6 additions & 3 deletions codexctl/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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}"
Expand Down
8 changes: 5 additions & 3 deletions data/version-ids.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -266,4 +268,4 @@
"last-updated": 1714393567,
"toltec": "2.15.1.1189",
"latest": "3.11.2.5"
}
}

0 comments on commit 28cad7f

Please sign in to comment.