From efa0466218e0c050a6050ee70b71a008f864a249 Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Sat, 8 Aug 2026 20:50:51 -0700 Subject: [PATCH] et-user-app Initial installer script for the et-user GUI --- scripts/install-et-user-app.sh | 48 ++++++++++++++++++++++++++++++++++ scripts/install.sh | 5 +++- tests/test-et-user-app.sh | 7 +++++ 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100755 scripts/install-et-user-app.sh create mode 100755 tests/test-et-user-app.sh diff --git a/scripts/install-et-user-app.sh b/scripts/install-et-user-app.sh new file mode 100755 index 0000000..93635d5 --- /dev/null +++ b/scripts/install-et-user-app.sh @@ -0,0 +1,48 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 8 August 2026 +# Purpose : Builds and installs et-user-app +set -e +trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG +trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR + +. ./env.sh + +APP="et-user-app" +VERSION="1.0.0" +APP_AND_VERSION="${APP}-${VERSION}" +GIT_TAG="${VERSION}" +GIT_URL="https://github.com/thetechprepper/et-user-app.git" +GIT_WORKSPACE="${APP}" +INSTALL_DIR="/opt/${APP_AND_VERSION}" +BIN_DIR="${INSTALL_DIR}/bin" +LINK_PATH="/opt/${APP}" + +et-log "Installing ${APP} ${VERSION}" + +et-log "Installing build dependencies..." +apt install \ + libgtk-3-dev \ + libgtk-3-doc \ + libjson-glib-dev \ + -y + +CWD_DIR=`pwd` + +cd ${ET_SRC_DIR} +[[ ! -e ${GIT_WORKSPACE} ]] && git clone ${GIT_URL} ${GIT_WORKSPACE} + +cd ${GIT_WORKSPACE} +git checkout ${GIT_TAG} + +make + +mkdir -v -p "${BIN_DIR}" +cp ${APP} ${BIN_DIR} + +[[ -e ${LINK_PATH} ]] && rm ${LINK_PATH} +ln -v -s ${INSTALL_DIR} ${LINK_PATH} + +stow -v -d /opt ${APP} -t /usr/local + +cd ${CWD} diff --git a/scripts/install.sh b/scripts/install.sh index 95a0841..5d6aa31 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 16 March 2024 -# Updated : 16 July 2026 +# Updated : 8 August 2026 # Purpose : Main installer for EmComm Tools Community (ETC) . ./env.sh @@ -130,3 +130,6 @@ exitIfNotRoot # Email ./install-thunderbird.sh + +## EmComm Tools PnP GUI apps +./install-et-user-app.sh diff --git a/tests/test-et-user-app.sh b/tests/test-et-user-app.sh new file mode 100755 index 0000000..1c41277 --- /dev/null +++ b/tests/test-et-user-app.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 8 August 2026 +# Purpose : Test et-user-app installation + +OUT=$(which et-user-app) +exit $?