From 87c6ea1126e0e132334fc6387e5e17d4e9b9ade5 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 9 Jul 2023 17:19:10 +0200 Subject: [PATCH] Updated console image build script --- Console/build.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Console/build.py b/Console/build.py index 0bd1972..2f8e587 100644 --- a/Console/build.py +++ b/Console/build.py @@ -4,7 +4,7 @@ import sys import shutil packages = { - "rns": "rns-0.5.5-py3-none-any.whl", + "rns": "rns-0.5.6-py3-none-any.whl", "nomadnet": "nomadnet-0.3.5-py3-none-any.whl", "lxmf": "lxmf-0.3.1-py3-none-any.whl", "rnsh": "rnsh-0.1.1-py3-none-any.whl", @@ -200,6 +200,7 @@ def optimise_manual(path): remove_files = [ "objects.inv", "Reticulum Manual.pdf", + "Reticulum Manual.epub", "_static/styles/furo.css.map", "_static/scripts/furo.js.map", "_static/jquery-3.6.0.js", @@ -211,7 +212,10 @@ def optimise_manual(path): for file in remove_files: fp = path+"/"+file print("Removing file: "+str(fp)) - os.unlink(fp) + try: + os.unlink(fp) + except Exception as e: + print("An error occurred while attempting to unlink "+str(fp)+": "+str(e)) remove_dirs = [ "_sources",