Skip to content

Commit

Permalink
Updated console build
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Oct 6, 2024
1 parent 3fe5aff commit ffb9511
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions Console/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import shutil

packages = {
"rns": "rns-0.8.1-py3-none-any.whl",
"nomadnet": "nomadnet-0.5.3-py3-none-any.whl",
"lxmf": "lxmf-0.5.4-py3-none-any.whl",
"rns": "rns-0.8.2-py3-none-any.whl",
"nomadnet": "nomadnet-0.5.4-py3-none-any.whl",
"lxmf": "lxmf-0.5.5-py3-none-any.whl",
"rnsh": "rnsh-0.1.4-py3-none-any.whl",
}

Expand Down Expand Up @@ -174,15 +174,21 @@ def generate_html(f, root_path):
mf.close()

def optimise_manual(path):
pm = 100
pm = 60
scale_imgs = [
("_images/board_rnodev2.png", pm),
("_images/board_rnode.png", pm),
("_images/board_heltec32.png", pm),
("_images/board_heltec32v20.png", pm),
("_images/board_heltec32v30.png", pm),
("_images/board_t3v21.png", pm),
("_images/board_t3v20.png", pm),
("_images/sideband_devices.webp", pm),
("_images/board_t3v10.png", pm),
("_images/board_t3s3.png", pm),
("_images/board_tbeam.png", pm),
("_images/board_tdeck.png", pm),
("_images/board_rak4631.png", pm),
("_images/board_tbeam_supreme.png", pm),
("_images/sideband_devices.webp", pm),
("_images/nomadnet_3.png", pm),
("_images/meshchat_1.webp", pm),
("_images/radio_is5ac.png", pm),
Expand All @@ -195,7 +201,7 @@ def optimise_manual(path):
import shlex
for i,s in scale_imgs:
fp = path+"/"+i
resize = "convert "+fp+" -resize "+str(s)+" "+fp
resize = "convert "+fp+" -quality 25 -resize "+str(s)+" "+fp
print(resize)
subprocess.call(shlex.split(resize), stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)

Expand Down
Binary file modified Release/console_image.bin
Binary file not shown.

0 comments on commit ffb9511

Please sign in to comment.