From 704e374ce2b23ea1f54aff8ebcbe68b0a6381e67 Mon Sep 17 00:00:00 2001 From: bakustarver <66978329+bakustarver@users.noreply.github.com> Date: Tue, 9 Apr 2024 05:59:48 +0300 Subject: [PATCH] Add files via upload --- nwjs/packagefiles/nwjsstart-cicpoffs.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nwjs/packagefiles/nwjsstart-cicpoffs.sh b/nwjs/packagefiles/nwjsstart-cicpoffs.sh index d1f5578..1eef5ea 100644 --- a/nwjs/packagefiles/nwjsstart-cicpoffs.sh +++ b/nwjs/packagefiles/nwjsstart-cicpoffs.sh @@ -6,7 +6,7 @@ export LD_LIBRARY_PATH="$HOME/desktopapps/nwjs/nwjs/packagefiles/:$LD_LIBRARY_PA # curdesktop=$(echo "$XDG_CURRENT_DESKTOP") # defp="$HOME/deskappbin/nwjs/nwjs/" -version='1.0.3' +version='1.0.4' nwjsfm="$HOME/desktopapps/nwjs/nwjs" @@ -116,8 +116,12 @@ fi } checkgamefilesfd() { +if echo "$1" | grep ".exe"; then npath=$(dirname "$1" | sed -e "s@^'@@g"); -zenity --title "$gamef" --warning --text="$npath" +else +npath="$1" +fi +# 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