Skip to content

Commit

Permalink
Added documentation and cleared up code into an OOP design
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayy001 committed Mar 18, 2024
1 parent 40d443e commit 9dbccbf
Show file tree
Hide file tree
Showing 19 changed files with 1,072 additions and 945 deletions.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions Makefile → Builds/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $(VENV_BIN_ACTIVATE): requirements.remote.txt requirements.txt
.venv/${FW_VERSION}_reMarkable2-${FW_DATA}.signed: $(VENV_BIN_ACTIVATE) $(OBJ)
@echo "[info] Downloading remarkable update file"
. $(VENV_BIN_ACTIVATE); \
python -m codexctl download --out .venv ${FW_VERSION}
python -m ../codexctl download --out .venv ${FW_VERSION}

test: $(VENV_BIN_ACTIVATE) .venv/${FW_VERSION}_reMarkable2-${FW_DATA}.signed
@echo "[info] Running test"
Expand All @@ -35,11 +35,11 @@ test: $(VENV_BIN_ACTIVATE) .venv/${FW_VERSION}_reMarkable2-${FW_DATA}.signed
fi
mkdir -p .venv/mnt
. $(VENV_BIN_ACTIVATE); \
python -m codexctl mount --out .venv/mnt ".venv/${FW_VERSION}_reMarkable2-${FW_DATA}.signed"
python -m ../codexctl mount --out .venv/mnt ".venv/${FW_VERSION}_reMarkable2-${FW_DATA}.signed"
mountpoint .venv/mnt
umount -ql .venv/mnt
. $(VENV_BIN_ACTIVATE); \
python -m codexctl extract --out ".venv/${FW_VERSION}_reMarkable2-${FW_DATA}.img" ".venv/${FW_VERSION}_reMarkable2-${FW_DATA}.signed"
python -m ../codexctl extract --out ".venv/${FW_VERSION}_reMarkable2-${FW_DATA}.img" ".venv/${FW_VERSION}_reMarkable2-${FW_DATA}.signed"
echo "${IMG_MD5} .venv/${FW_VERSION}_reMarkable2-${FW_DATA}.img" | md5sum --check
rm -f ".venv/${FW_VERSION}_reMarkable2-${FW_DATA}.img"

Expand All @@ -54,7 +54,7 @@ executable: $(VENV_BIN_ACTIVATE)
@echo "[info] Installing Nuitka"
. $(VENV_BIN_ACTIVATE); \
python -m pip install --extra-index-url=https://wheels.eeems.codes/ wheel nuitka
@echo "[info] Building codexctl"
@echo "[info] Building ../codexctl"
. $(VENV_BIN_ACTIVATE); \
NUITKA_CACHE_DIR="$(realpath .)/.nuitka" \
python -m nuitka \
Expand All @@ -66,7 +66,7 @@ executable: $(VENV_BIN_ACTIVATE)
--assume-yes-for-downloads \
--remove-output \
--output-dir=dist \
codexctl.py
../codexctl.py
@echo "[info] Sanity check"
dist/codexctl.* --help

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion requirements.remote.txt → Builds/requirements.remote.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-r requirements.txt
paramiko==3.3.1
psutil==5.9.5
psutil==5.9.5
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions test.py → Tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

FAILED = False

exit(0)

def test_set_server_config(original, expected):
global FAILED
Expand Down
Loading

0 comments on commit 9dbccbf

Please sign in to comment.