...
 
Commits (6)
......@@ -3,7 +3,7 @@
#
# ROME - [ROM] [E]xtractor
#
# Copyright (C): 2018, steadfasterX <steadfasterX [AT] gmail [DOT] com>
# Copyright (C): 2018-2019, steadfasterX <steadfasterX [AT] gmail [DOT] com>
#
# Main program
#
......@@ -38,13 +38,15 @@ F_LOG "yad: $(yad --version)"
F_LOG "summary:\n $(hostnamectl status |grep -v ID)\n"
# check base
if [ ! -d "$SDATPATH" ];then
F_ELOG "First start? Expected sdat2img here: $SDATPATH"
DLSDAT=$(F_MSG 400 "\n First start?\n\n Expected <b><u>sdat2img</u></b> here:\n ${SDATPATH}\n\n but it is missing..\n\n Should I download it for you now?" "--button=Yes:0 --button=Abort:1")
if [ "$DLSDAT" -eq 0 ];then
$GIT clone --progress $SDATGIT $SDATPATH 2>&1 | $FYAD --title="$YTITLE - UPDATING" --text="\n <b>Installing sdat2img ...</b>\n" --width=700 --height=600 --text-info --listen --tail --button=Close
else
F_LOG "sdat2imgsupdate $DLSDAT Without this ROME will not fully work"
if [ ! -f "$SDATBIN" ];then
if [ ! -f "$ALTSDATBIN" ];then
F_ELOG "First start? Expected sdat2img here: $SDATPATH or $ALTSDATPATH"
DLSDAT=$(F_MSG 400 "\n First start?\n\n Expected <b><u>sdat2img</u></b> here:\n ${SDATPATH}\nor\ $ALTSDATPATH\n\n but it is missing..\n\n Should I install it for you now?" "--button=Yes:0 --button=Abort:1")
if [ "$DLSDAT" -eq 0 ];then
$GIT clone --progress $SDATGIT $SDATPATH 2>&1 | $FYAD --title="$YTITLE - UPDATING" --text="\n <b>Installing sdat2img ...</b>\n" --width=700 --height=600 --text-info --listen --tail --button=Close
else
F_LOG "sdat2imgsupdate $DLSDAT Without this ROME will not fully work"
fi
fi
fi
......
......@@ -2,8 +2,8 @@
## @file rome.func
## @brief The heart of ROME - all global functions
## @author steadfasterX <steadfasterX -AT- gmail -DOT- com>
## @date 2018
## @copyright LGPL v3
## @date 2018-2019
## @copyright LGPL v2.1
## @details ROME - [ROM] [E]xtractor
##
## global functions
......
......@@ -2,7 +2,7 @@
#
# ROME - [ROM] [E]xtractor
#
# Copyright (C): 2018, steadfasterX <steadfasterX | gmail [DOT] com>
# Copyright (C): 2018-2019, steadfasterX <steadfasterX | gmail [DOT] com>
#
# global variables
#
......@@ -28,7 +28,7 @@ export PWREXEC="/usr/bin/pkexec"
## basic stuff
export LC_ALL=C
export VDIG="1.0-1"
export VDIG="1.1-0"
export TNAME="ROME"
export TFULLNAME="$TNAME - [ROM] [E]xtractor"
export PYTHONUNBUFFERED=1
......@@ -51,10 +51,14 @@ fi
## paths
export MYPATH="${0%/*}"
export FOREIGNPATH="$MYPATH/foreign"
export WPASTE="$FOREIGNPATH/usr/bin/wgetpaste"
export SICONS="$MYPATH/icons"
export SDATPATH="$HOME/programs/sdat2img"
export ALTSDATPATH="/usr/bin"
export SDATBIN="$SDATPATH/sdat2img.py"
export ALTSDATBIN="$ALTSDATPATH/sdat2img.py"
export SDATGIT="https://github.com/xpirt/sdat2img.git"
export LOG="$REALHOME/rome.log"
## misc
......