#!/bin/sh #Debug script to experimentally (re)install DeltaTouch on Mobian or Droidian #Will warn before overwriting old install #Follows https://codeberg.org/lk108/deltatouch/wiki/Installation-on-Mobian-and-Droidian-%28manual%2C-experimental%29 and must be placed in the same directory as the three required files there. set -e echo "Debug script to experimentally (re)install DeltaTouch on Mobian or Droidian. Required files:" ls dt.sh deltatouch.desktop deltatouch.lotharketterer_1.10.2_$(dpkg --print-architecture).click eval sed -i 's/droidian/$(uname -n)/g' ./dt.sh ./deltatouch.desktop sudo apt satisfy qml-module-lomiri-components qml-module-qtwebengine qml-module-qtmultimedia libqt5multimedia5-plugins qml-module-qtquick-dialogs qml-module-qtquick-controls qml-module-qtquick-controls2 qml-module-qt-labs-platform qml-module-qt-labs-settings qml-module-qtwebchannel binpath=/home/${SUDO_USER}/bin/deltatouch #echo $binpath [ -e $binpath ] && rm -ri $binpath mkdir -p $binpath dpkg -x ./deltatouch.lotharketterer_1.10.2_$(dpkg --print-architecture).click $binpath sudo cp ./deltatouch.desktop /usr/share/applications/ sudo chown root:root /usr/share/applications/deltatouch.desktop sudo chmod 644 /usr/share/applications/deltatouch.desktop #sudo chmod 777 /usr/share/applications/deltatouch.desktop sudo cp ./dt.sh /usr/local/bin/ sudo chown root:root /usr/local/bin/dt.sh sudo chmod 655 /usr/local/bin/dt.sh #sudo chmod 777 /usr/local/bin/dt.sh sudo update-desktop-database echo "Successfully installed"