11#! /usr/bin/env bash
2- # set -x
3-
4- echo -e " \e[1;34mInsight (git-commit 93ab4f7)\e[0m, Tcl/Tk GUI for GDB Debugger."
2+ COMMIT=" 5afb39f"
3+ echo -e " \e[1;34mInsight (git-commit $COMMIT )\e[0m, Tcl/Tk GUI for GDB Debugger."
54echo -e " Copyright (C) Redhat, GNU General Public License v2."
65echo -e " AppImage Packaged by Antony J.R <antonyjr@pm.me>."
76echo " "
@@ -10,7 +9,7 @@ mkdir -p ~/Insight
109rm -rf ~ /Insight/insight
1110echo -e " Downloading Latest Insight..."
1211echo -n -e " \e[1;32m"
13- wget -q --show-progress --progress=bar:force -O ~ /Insight/insight https://github.com/antony-jr/insight/releases/download/93ab4f7 /Insight-x86_64-pc-linux-gnu-93ab4f7 -x86_64.AppImage 2>&1
12+ wget -q --show-progress --progress=bar:force -O ~ /Insight/insight https://github.com/antony-jr/insight/releases/download/$COMMIT /Insight-x86_64-pc-linux-gnu-$COMMIT -x86_64.AppImage 2>&1
1413echo -e " \e[0m"
1514
1615chmod a+x ~ /Insight/insight
@@ -26,7 +25,7 @@ rm -rf squashfs-root
2625
2726mv squashfs-root/insight-icon.png .icons/insight.png
2827
29- sed -i ' s+Name=Insight+Name=Insight GDB Debugger (git-93ab4f7 )+g' squashfs-root/Insight.desktop
28+ sed -i ' s+Name=Insight+Name=Insight GDB Debugger (git-' $COMMIT ' )+g' squashfs-root/Insight.desktop
3029sed -i ' s+Exec=insight-wrapper+Exec=' $HOME ' \/Insight\/insight+g' squashfs-root/Insight.desktop
3130sed -i ' s+Icon=insight-icon+Icon=' $HOME ' \/Insight\/.icons\/insight.png+g' squashfs-root/Insight.desktop
3231
@@ -37,4 +36,4 @@ rm -rf squashfs-root
3736
3837echo " Updated ~/.bashrc, Restart your Console/Terminal."
3938echo -e " \e[1;34mStart Insight from your Application Menu.\e[0m"
40- echo -e " \e[42mInstalled Insight Stable (git-commit 93ab4f7 ) (Target CPU: x86_64).\e[0m"
39+ echo -e " \e[42mInstalled Insight Stable (git-commit $COMMIT ) (Target CPU: x86_64).\e[0m"
0 commit comments