diff --git a/pybitmessage-appimage.sh b/pybitmessage-appimage.sh new file mode 100644 index 0000000..23914af --- /dev/null +++ b/pybitmessage-appimage.sh @@ -0,0 +1,29 @@ +#/bin/bash +### For testing +SECDIR=/home/tb/Security +PLAT=Linuxmint +### For Testing + +function bitmessage_appimage_install() { + + +BMAIRELDATE=$(curl -s https://appimage.bitmessage.org/releases/ | tail -n 3 | grep -o [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] | tail -n 1) +BMAIFILE=$(curl -s https://appimage.bitmessage.org/releases/20221018/ | grep .AppImage | awk -F '"' '{print $2}') + +if [[ $PLAT = Linuxmint ]]; then + +cd $SECDIR && wget -N https://appimage.bitmessage.org/releases/${BMAIRELDATE}/${BMAIFILE} || +{ ERRCODE = "Failed to Download PyBitmessage AppImage."; errors; return; } + +chmod a+x $SECDIR/$BMAIFILE || +{ ERRCODE = "Failed to set execute permissions on PyBitmessage AppImage."; errors; return; } + + +#sudo ln -sf /etc/xdg/menus/{gnome-applications,debian-menu}.menu || +#{ ERRCODE = "Failed to create symlink required to run PyBitmessage."; errors; return; } + +fi + +} + +bitmessage_appimage_install