Add files via upload

This commit is contained in:
bakustarver 2024-04-08 12:45:02 +03:00 committed by GitHub
parent c4ab5c12ea
commit cb75c4a886
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,11 +1,12 @@
#!/bin/bash #!/bin/bash
export LD_LIBRARY_PATH="$HOME/desktopapps/nwjs/nwjs/packagefiles/:$LD_LIBRARY_PATH"
# kdialog --msgbox "$CPATH" # kdialog --msgbox "$CPATH"
# curdesktop=$(echo "$XDG_CURRENT_DESKTOP") # curdesktop=$(echo "$XDG_CURRENT_DESKTOP")
# defp="$HOME/deskappbin/nwjs/nwjs/" # defp="$HOME/deskappbin/nwjs/nwjs/"
version='1.0.2' version='1.0.3'
nwjsfm="$HOME/desktopapps/nwjs/nwjs" nwjsfm="$HOME/desktopapps/nwjs/nwjs"
@ -14,6 +15,7 @@ defp="$nwjsfm/nwjs"
githubscriptwget=$(timeout 5s wget -qO- "https://raw.githubusercontent.com/bakustarver/rpgmakermlinux-cicpoffs/main/installgithub.sh" ) githubscriptwget=$(timeout 5s wget -qO- "https://raw.githubusercontent.com/bakustarver/rpgmakermlinux-cicpoffs/main/installgithub.sh" )
latestinstallednwjsfd=$(ls -p "$defp" | grep / | sort -V | tail -n 1 )
@ -33,8 +35,7 @@ fi
arch=$(uname -m) arch=$(uname -m)
archcheckmessage=$(echo "$arch" | sed -e 's@x86_64@pie executable, x86-64,@g' -e 's@aarch64@pie executable, ARM aarch64,@g' -e 's@i686@pie executable, Intel 80386,@g' -e 's@i386@pie executable, Intel 80386,@g' -e 's@armhf@pie executable, ARM,@g') archcheckmessage=$(echo "$arch" | sed -e 's@x86_64@pie executable, x86-64,@g' -e 's@aarch64@pie executable, ARM aarch64,@g' -e 's@i686@pie executable, Intel 80386,@g' -e 's@i386@pie executable, Intel 80386,@g' -e 's@armv7l@pie executable, ARM,@g' -e 's@armhf@pie executable, ARM,@g')
latestinstallednwjsfd=$(ls -p "$defp" | grep / | sort -V | tail -n 1 )
checkthebinaryarch() { checkthebinaryarch() {
if ! [ -f "$1" ]; then if ! [ -f "$1" ]; then
@ -83,6 +84,8 @@ fullupdatereinstall() {
echo "$githubscriptwget" | bash echo "$githubscriptwget" | bash
} }
updatenwjs() { updatenwjs() {
export latestlocal=$(echo "$latestinstallednwjsfd" | sed -e 's@nwjs-@@g' -e 's@-linux.*@@g') export latestlocal=$(echo "$latestinstallednwjsfd" | sed -e 's@nwjs-@@g' -e 's@-linux.*@@g')
"$nwjsfm/dwnwjs.sh" "$nwjsfm/dwnwjs.sh"
@ -113,11 +116,13 @@ fi
} }
checkgamefilesfd() { checkgamefilesfd() {
if [ -d "$1/www" ] && [ -e "$1/package.json" ] && [ -e "$1/www/js/plugins.js" ]; then npath=$(dirname "$1" | sed -e "s@^'@@g");
mountpath="$1/www" zenity --title "$gamef" --warning --text="$npath"
if [ -d "$npath/www" ] && [ -e "$npath/package.json" ] && [ -e "$npath/www/js/plugins.js" ]; then
mountpath="$npath/www"
found=true found=true
gamepath=true gamepath=true
elif [ -d "$1/data" ] && [ -e "$1/package.json" ] && [ -e "$1/js/plugins.js" ]; then elif [ -d "$npath/data" ] && [ -e "$npath/package.json" ] && [ -e "$npath/js/plugins.js" ]; then
mountpath="$1" mountpath="$1"
gamepath=true gamepath=true
found=true found=true
@ -128,6 +133,7 @@ fi
} }
checkgamepath() { checkgamepath() {
# path="$1" # path="$1"
echo "$1" echo "$1"
@ -150,10 +156,10 @@ mountpath="$PWD"
found=true found=true
fi fi
fi fi
#
if [ -z "$found" ] && [ -n "$gamef" ] ; then # if [ -z "$found" ] && [ -n "$gamef" ] ; then
checkgamefilesfd "$gamef" # checkgamefilesfd "$gamef"
fi # fi
@ -211,6 +217,10 @@ do
info=true info=true
incompletefeaturefunc incompletefeaturefunc
;; ;;
--usesdk)
export SDKNWJS=true
incompletefeaturefunc
;;
--checkbetaupdates) --checkbetaupdates)
info=true info=true
incompletefeaturefunc incompletefeaturefunc
@ -370,7 +380,8 @@ https://github.com/bakustarver/rpgmakermlinux-cicpoffs
--checkbetaupdates --checkbetaupdates
--updatescripts --updatescripts
--fullupdate --fullupdate
--sourcelinks" --sourcelinks
--usesdk"
fi fi