added new source code packing script, added internet update code

This commit is contained in:
dekunukem
2022-04-03 00:06:04 +01:00
parent 293bc437f0
commit 0b69bd3e27
6 changed files with 143 additions and 9 deletions

View File

@@ -1,3 +1,15 @@
import os
this_app_dir_path = "/home/pi/usb4vc/rpi_app"
config_dir_path = "/home/pi/usb4vc/config"
firmware_dir_path = "/home/pi/usb4vc/firmware"
temp_dir_path = "/home/pi/usb4vc/temp"
def ensure_dir(dir_path):
print('ensure_dir', dir_path)
if not os.path.exists(dir_path):
os.makedirs(dir_path)
RPI_APP_VERSION_TUPLE = (0, 0, 8)
code_name_to_value_lookup = {