mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
et-user-app Initial installer script for the et-user GUI
This commit is contained in:
Executable
+48
@@ -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}
|
||||
+4
-1
@@ -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
|
||||
|
||||
Executable
+7
@@ -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 $?
|
||||
Reference in New Issue
Block a user