From 88235631b2929cf2152f42e7b04bf3128471d667 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Thu, 19 Sep 2024 22:31:04 +0800 Subject: [PATCH] Installer support script. --- support/install.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 support/install.sh diff --git a/support/install.sh b/support/install.sh new file mode 100644 index 0000000..a4ca4de --- /dev/null +++ b/support/install.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +if dpkg -l | grep -q "^ii\s*git"; then + echo "[+] Git is already installed." +else + echo "[-] Git is not installed." + echo "[*] Installing git..." + apt install git -y +fi + +git clone https://github.com/nthnn/zhivo.git --depth 1 +echo "[*] Building Zhivo..." + +cd zhivo && chmod +x ./build.sh && ./build.sh +echo "[+] Zhivo was successfully compiled!" + +cp dist/zhivo /bin/zhivo +echo "[+] Zhivo is now installed on your system!" + +cd .. && rm -rf zhivo +echo "[+] Build clean done"