From 934b9aa85dfc2fbd5b97b942799a833d744537c2 Mon Sep 17 00:00:00 2001 From: kevadesu Date: Mon, 12 May 2025 02:30:41 +0200 Subject: [PATCH] I'm done for the night. --- FE2TY-CLI | 10 ++++++++++ FE2TY-KDIALOG | 19 +++++++++++++++++-- FE2TY-ZENITY | 22 ++++++++++++++++------ 3 files changed, 43 insertions(+), 8 deletions(-) mode change 100644 => 100755 FE2TY-CLI mode change 100644 => 100755 FE2TY-KDIALOG mode change 100644 => 100755 FE2TY-ZENITY diff --git a/FE2TY-CLI b/FE2TY-CLI old mode 100644 new mode 100755 index 090c4ce..c86d915 --- a/FE2TY-CLI +++ b/FE2TY-CLI @@ -4,6 +4,16 @@ if [ "$EUID" -ne 0 ] exit fi +if [ ! -f /bin/git ] + then echo "install git before running." + exit +fi + +if [ ! -f /bin/jq ] + then echo "install jq before running." + exit +fi + # By RSCC ## Unlicense diff --git a/FE2TY-KDIALOG b/FE2TY-KDIALOG old mode 100644 new mode 100755 index 7e7b305..4a11e1c --- a/FE2TY-KDIALOG +++ b/FE2TY-KDIALOG @@ -9,6 +9,21 @@ if [ ! -f /bin/kdialog ] exit fi +if [ ! -f /bin/git ] + then echo "install git before running." + exit +fi + +if [ ! -f /bin/jq ] + then echo "install jq before running." + exit +fi + +if [ ! -f /bin/qdbus-qt6 ] + then echo "install qdbus-qt6 before running." + exit +fi + # By RSCC ## Unlicense @@ -16,12 +31,12 @@ main() { case "$(kdialog --combobox "Choose an option:" "Install TyrianOS" "Revert TyrianOS installation")" in "Install TyrianOS") ty.install ;; "Revert TyrianOS installation") ty.revert ;; - *) printf "usage:\nFE2TY i - install TyrianOS\nFE2TY r - uninstall TyrianOS and revert to old deployment\n" ;; + *) echo "OK!" ;; esac } ty.install() { - kdialog --title "FE2TY - Installing TyrianOS" --warningcontinuecancel "by pressing enter, you agree that this tool is not considered an official tool to install TyrianOS and should only be used as a last resort from an existing Fedora installation. therefore, the creators of this script have absolutely no responsibility in the case of something happening, as it is very experimental. press [ENTER] to agree, spam [CTRL] + [C] to quit." + kdialog --title "FE2TY - Installing TyrianOS" --warningcontinuecancel "By pressing enter, you agree that this tool is not considered an official tool to install TyrianOS and should only be used as a last resort from an existing Fedora installation. Therefore, the creators of this script have absolutely no responsibility in the case of something happening, as it is very experimental. Do you wish to continue?" || exit 1 dbusRef=`kdialog --progressbar "Initializing" 100` limsg s 1 i "Getting current deployment origin ref and backing up..." qdbus-qt6 $dbusRef Set "" value 1 diff --git a/FE2TY-ZENITY b/FE2TY-ZENITY old mode 100644 new mode 100755 index e726591..18d34b9 --- a/FE2TY-ZENITY +++ b/FE2TY-ZENITY @@ -4,6 +4,16 @@ if [ "$EUID" -ne 0 ] exit fi +if [ ! -f /bin/git ] + then echo "install git before running." + exit +fi + +if [ ! -f /bin/jq ] + then echo "install jq before running." + exit +fi + if [ ! -f /bin/zenity ] then echo "install Zenity before running." exit @@ -14,19 +24,19 @@ fi main() { OPT=$(zenity --list \ - --title="Choose an option" - --column="option" - "Install TyrianOS"\ + --title="Choose an option" \ + --column="option" \ + "Install TyrianOS" \ "Revert TyrianOS installation") case "$OPT" in "Install TyrianOS") ty.install ;; "Revert TyrianOS installation") ty.revert ;; - *) printf "usage:\nFE2TY i - install TyrianOS\nFE2TY r - uninstall TyrianOS and revert to old deployment\n" ;; + *) echo "OK!" ;; esac } ty.install() { - zenity --question --text="by pressing enter, you agree that this tool is not considered an official tool to install TyrianOS and should only be used as a last resort from an existing Fedora installation. therefore, the creators of this script have absolutely no responsibility in the case of something happening, as it is very experimental. do you really wish to proceed?" || exit 1 + zenity --question --text="By pressing enter, you agree that this tool is not considered an official tool to install TyrianOS and should only be used as a last resort from an existing Fedora installation. Therefore, the creators of this script have absolutely no responsibility in the case of something happening, as it is very experimental. Do you really wish to proceed?" || exit 1 ( limsg s 1 i "Getting current deployment origin ref and backing up..." echo "0" @@ -70,7 +80,7 @@ zenity --progress \ } ty.revert() { - zenity --question --text="you are about to revert to the OS base installed before TyrianOS. do you really wish to proceed?" || exit 1 + zenity --question --text="You are about to revert to the OS base installed before TyrianOS. Do you really wish to proceed?" || exit 1 ( limsg s 1 i "Looking for backed up remote reference file..." echo "33"