Index: build/build.sh =================================================================== diff -u -r8ede028caf2150848084fd77cb8a50975bdcaae8 -rb91cae47b5afc8d877e7326b8e3a7a32d8e547fc --- build/build.sh (.../build.sh) (revision 8ede028caf2150848084fd77cb8a50975bdcaae8) +++ build/build.sh (.../build.sh) (revision b91cae47b5afc8d877e7326b8e3a7a32d8e547fc) @@ -314,9 +314,11 @@ #return back to main folder cd .. + ./create_update_folder.sh + # Copy the required scripts to be able to launch the application remotely - cp -r "application/scripts" "$REMOTE_DIR" - cp -r "application/resources/settings" "$REMOTE_DIR" + #cp -r "application/scripts" "$REMOTE_DIR" + #cp -r "application/resources/settings" "$REMOTE_DIR" # Copy the build logs the remote address regardless of the build results LOG="Build_Logs" Index: build/create_update_folder.sh =================================================================== diff -u --- build/create_update_folder.sh (revision 0) +++ build/create_update_folder.sh (revision b91cae47b5afc8d877e7326b8e3a7a32d8e547fc) @@ -0,0 +1,65 @@ +#!/bin/sh +########################################################################### +# +# Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. +# +# THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN +# WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. +# +# @file create_update_usb.sh +# +# @author (last) Behrouz NematiPour +# @date (last) 01-Nov-2021 +# @author (original) Behrouz NematiPour +# @date (original) 01-Nov-2021 +# +############################################################################ + +# This script is collecting all the scripts and files and copy in a folder +# to be later used to update a newly flashed SoM +# Run example +# └$ /home/denali/Projects/application/scripts/create_update_usb.sh Projects/application/ /media/denali/usb-disk1/ + + +FOLDER_BIN=/home/denali/Projects/tmp/build/denali-Qt_5_12_5_iMX8-Release +FOLDER_SRC=/home/denali/Projects/application +FOLDER_DST=/home/denali/Desktop/update-folder + +DENALI_BIN=denali +FOLDER_SCR=scripts +FOLDER_FNT=resources/fonts +FOLDER_SET=resources/settings + +SCRIPT_SLF=create_update_folder.sh +SCRIPT_AUT=autostart +SCRIPT_RUN=run.sh +SCRIPT_SU1=start.sh +SCRIPT_SU2=setup.sh + +if [ ! -z "$1" ]; then + FOLDER_SRC="$1" +fi + +if [ ! -z "$2" ]; then + FOLDER_DST="$2" +fi + +#create the destination folder +mkdir -p "$FOLDER_DST" + +#copy the required folders +cp -r "$FOLDER_SRC"/"$FOLDER_SCR" "$FOLDER_DST" +cp -r "$FOLDER_SRC"/"$FOLDER_FNT" "$FOLDER_DST" +cp -r "$FOLDER_SRC"/"$FOLDER_SET" "$FOLDER_DST" + +#move the setup scrips to the root folder of the usb +mv "$FOLDER_DST"/"$FOLDER_SCR"/"$SCRIPT_SU1" "$FOLDER_DST" +mv "$FOLDER_DST"/"$FOLDER_SCR"/"$SCRIPT_SU2" "$FOLDER_DST" +mv "$FOLDER_DST"/"$FOLDER_SCR"/"$SCRIPT_RUN" "$FOLDER_DST" +mv "$FOLDER_DST"/"$FOLDER_SCR"/"$SCRIPT_AUT" "$FOLDER_DST" + +#copy the UI Software device binary to the root folder of the usb +cp "$FOLDER_BIN"/"$DENALI_BIN" "$FOLDER_DST" + +#removing this script to clean up the script folder +rm "$FOLDER_DST"/"$FOLDER_SCR"/"$SCRIPT_SLF" Index: build/update-folder.tree =================================================================== diff -u --- build/update-folder.tree (revision 0) +++ build/update-folder.tree (revision b91cae47b5afc8d877e7326b8e3a7a32d8e547fc) @@ -0,0 +1,92 @@ +update-folder +├── autostart +├── denali +├── fonts +│   ├── Barlow-BlackItalic.ttf +│   ├── Barlow-Black.ttf +│   ├── Barlow-BoldItalic.ttf +│   ├── Barlow-Bold.ttf +│   ├── Barlow-ExtraBoldItalic.ttf +│   ├── Barlow-ExtraBold.ttf +│   ├── Barlow-ExtraLightItalic.ttf +│   ├── Barlow-ExtraLight.ttf +│   ├── Barlow-Italic.ttf +│   ├── Barlow-LightItalic.ttf +│   ├── Barlow-Light.ttf +│   ├── Barlow-MediumItalic.ttf +│   ├── Barlow-Medium.ttf +│   ├── Barlow-Regular.ttf +│   ├── Barlow-SemiBoldItalic.ttf +│   ├── Barlow-SemiBold.ttf +│   ├── Barlow-ThinItalic.ttf +│   └── Barlow-Thin.ttf +├── run.sh +├── scripts +│   ├── bluetooth_remove_paired.sh +│   ├── brightness_get.sh +│   ├── brightness_set.sh +│   ├── date_time_set.sh +│   ├── wifi_disconnect_network.sh +│   ├── wifi_generate_wpa_supplicant.sh +│   ├── wifi_read_dns.sh +│   ├── wifi_read_gateway.sh +│   ├── wifi_read_ip_settings.sh +│   ├── wifi_request_auto_assigned_ip.sh +│   ├── wifi_reset_adapter.sh +│   ├── wifi_reset_interface.sh +│   ├── wifi_save_dhcp_interface.sh +│   ├── wifi_save_static_interface_assignments.sh +│   ├── wifi_scan_for_networks.sh +│   ├── wifi_set_auto_assigned_ip.sh +│   ├── wifi_set_dns.sh +│   ├── wifi_set_gateway.sh +│   ├── wifi_set_static_ip.sh +│   ├── wifi_set_subnetmask.sh +│   ├── wifi_start_wpa_supplicant.sh +│   └── wifi_test_internet.sh +├── settings +│   ├── Instructions +│   │   ├── alt connect fistula_72.png +│   │   ├── arterial to saline_v1.png +│   │   ├── cassette clamp lock v2-01.png +│   │   ├── cassette clamp release v1.png +│   │   ├── concentrate door open-v1.png +│   │   ├── connect acid line v2-01.png +│   │   ├── connect bicarb ine-v2-01.png +│   │   ├── Dialysate lines to DG Y v4-01.png +│   │   ├── door down v2.png +│   │   ├── door up v2.png +│   │   ├── filter connect_72.png +│   │   ├── filter load_72.png +│   │   ├── HD door open_v1.png +│   │   ├── insert cassette v2-01-01.png +│   │   ├── install lower cap v1-01.png +│   │   ├── install top cap v1-01.png +│   │   ├── Instructions.conf +│   │   ├── logo.png +│   │   ├── PBo connect_72.png +│   │   ├── pbo release v1.png +│   │   ├── pinch paient lines v2.png +│   │   ├── remove Acid_Bicab cap-v2.png +│   │   ├── Remove_patient connection temp.png +│   │   ├── remove top cap v2-01.png +│   │   ├── saline connect_72.png +│   │   ├── syringe connect_72.png +│   │   ├── syringe connected insert v2.png +│   │   ├── syringe removal v1.png +│   │   ├── temp_water_test.png +│   │   ├── Twist shunt_temp.png +│   │   ├── unclamp_patient_lines_temp.png +│   │   ├── untwist stunt_72.png +│   │   └── water sampling_v2.png +│   ├── Messages +│   │   └── Unhandled.conf +│   ├── readme.md +│   ├── Service.conf +│   └── TreatmentParameters +│   ├── DataList.conf +│   └── Formats.conf +├── setup.sh +└── start.sh + +6 directories, 83 files