mirror of
https://github.com/bakustarver/rpgmakermlinux-cicpoffs.git
synced 2025-04-29 19:44:52 +02:00
Add files via upload
This commit is contained in:
parent
8815b25e96
commit
05e550b74e
1 changed files with 67 additions and 15 deletions
|
@ -12,11 +12,23 @@ nwjsfm="$HOME/desktopapps/nwjs/nwjs"
|
||||||
|
|
||||||
defp="$nwjsfm/nwjs"
|
defp="$nwjsfm/nwjs"
|
||||||
|
|
||||||
|
nwjslist=$(ls -p "$defp" | grep / | sort -V)
|
||||||
|
if [ -z "$nwjslist" ]; then
|
||||||
|
echo "the nwjs is not installed, please use $ rpgmaker-linux --installnwjs"
|
||||||
|
fi
|
||||||
|
if echo "$nwjslist" | grep -q "\-sdk"; then
|
||||||
|
# sdkinstalled=true
|
||||||
|
nwjsonlylist=$(echo "$nwjslist" | grep -v "sdk")
|
||||||
|
nwjssdkonlylist=$(echo "$nwjslist" | grep "sdk")
|
||||||
|
latestinstallednwjsfd=$(echo "$nwjssdkonlylist" | sort -V | uniq | tail -n 1)
|
||||||
|
else
|
||||||
|
latestinstallednwjsfd=$(echo "$nwjslist" | tail -n 1)
|
||||||
|
fi
|
||||||
|
echo "$latestinstallednwjsfd"
|
||||||
|
# exit
|
||||||
|
githubscriptwget=$(timeout 7s 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 )
|
||||||
|
|
||||||
latestinstallednwjsfd=$(ls -p "$defp" | grep / | sort -V | tail -n 1 )
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ -n "$githubscriptwget" ]; then
|
if [ -n "$githubscriptwget" ]; then
|
||||||
|
@ -34,6 +46,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@armv7l@pie executable, ARM,@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')
|
||||||
|
|
||||||
|
@ -62,6 +75,22 @@ checkthebinariesarch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
pixi5install() {
|
||||||
|
echo "Installing pixi5"
|
||||||
|
newjsfd="$nwjsfm/packagefiles/rpgmaker-mv-pixi5/js"
|
||||||
|
curjs="$mountpath/js"
|
||||||
|
if grep "pixi.js - v5." "$curjs/libs/pixi.js"; then
|
||||||
|
echo "The pixi5 lib is already installed"
|
||||||
|
else
|
||||||
|
mv "$curjs" "$mountpath/js-backup"
|
||||||
|
cp -r "$newjsfd" "$mountpath"
|
||||||
|
cp -r "$mountpath/js-backup/plugins" "$curjs"
|
||||||
|
cat "$mountpath/js-backup/plugins.js" > "$curjs/plugins.js"
|
||||||
|
echo "pixi5 was installed"
|
||||||
|
fi
|
||||||
|
#pixi func
|
||||||
|
}
|
||||||
|
|
||||||
sourcelinks() {
|
sourcelinks() {
|
||||||
|
|
||||||
echo "Github page
|
echo "Github page
|
||||||
|
@ -87,8 +116,14 @@ echo "$githubscriptwget" | bash
|
||||||
|
|
||||||
|
|
||||||
updatenwjs() {
|
updatenwjs() {
|
||||||
|
if [ -f "$nwjsfm/packagefiles/usesdk.txt" ]; then
|
||||||
|
export latestlocal=$(echo "$nwjssdkonlylist" | tail -n 1 | sed -e 's@nwjs-sdk-@@g' -e 's@-linux.*@@g' )
|
||||||
|
|
||||||
|
"$nwjsfm/dwnwjs.sh"
|
||||||
|
else
|
||||||
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"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
nwjsversionfunc() {
|
nwjsversionfunc() {
|
||||||
|
@ -105,14 +140,14 @@ fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pchange() {
|
pchange() {
|
||||||
if [ -f "$1" ]; then
|
if echo "$1" | grep ".exe"; then
|
||||||
dirname "$1"
|
dirname "$1" | sed -e "s@^'@@g"
|
||||||
elif [ -d "$1" ]; then
|
|
||||||
echo "$1"
|
|
||||||
else
|
else
|
||||||
echo "Use "$arg' "/path/rpggame/"'
|
echo "$1"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
# echo "Use "$arg' "/path/rpggame/"'
|
||||||
|
# exit 1
|
||||||
|
# fi
|
||||||
}
|
}
|
||||||
|
|
||||||
checkgamefilesfd() {
|
checkgamefilesfd() {
|
||||||
|
@ -221,9 +256,21 @@ do
|
||||||
info=true
|
info=true
|
||||||
incompletefeaturefunc
|
incompletefeaturefunc
|
||||||
;;
|
;;
|
||||||
|
--usestandart)
|
||||||
|
# export SDKNWJS=true
|
||||||
|
if [ -e "$nwjsfm/packagefiles/usesdk.txt" ]; then
|
||||||
|
rm "$nwjsfm/packagefiles/usesdk.txt"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
--pixi5install)
|
||||||
|
INSTALLPIXI5=true
|
||||||
|
;;
|
||||||
--usesdk)
|
--usesdk)
|
||||||
export SDKNWJS=true
|
# export SDKNWJS=true
|
||||||
incompletefeaturefunc
|
touch "$nwjsfm/packagefiles/usesdk.txt"
|
||||||
|
if [ -z "$nwjssdkonlylist" ]; then
|
||||||
|
updatenwjs
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
--checkbetaupdates)
|
--checkbetaupdates)
|
||||||
info=true
|
info=true
|
||||||
|
@ -385,7 +432,8 @@ https://github.com/bakustarver/rpgmakermlinux-cicpoffs
|
||||||
--updatescripts
|
--updatescripts
|
||||||
--fullupdate
|
--fullupdate
|
||||||
--sourcelinks
|
--sourcelinks
|
||||||
--usesdk"
|
--usesdk
|
||||||
|
--pixi5install"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -471,10 +519,10 @@ fi
|
||||||
startnw() {
|
startnw() {
|
||||||
if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
|
if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
|
||||||
echo "wayland detected"
|
echo "wayland detected"
|
||||||
"$nwjstestpath/nw" --remote-debugging-port=9222 --ozone-platform=wayland
|
"$nwjstestpath/nw" --ozone-platform=wayland
|
||||||
else
|
else
|
||||||
echo "wayland not detected, starting in x11"
|
echo "wayland not detected, starting in x11"
|
||||||
"$nwjstestpath/nw" --remote-debugging-port=9222 --ozone-platform=x11
|
"$nwjstestpath/nw" --ozone-platform=x11
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -516,6 +564,10 @@ Total time: $SECONDS seconds"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ "$INSTALLPIXI5" = "true" ]; then
|
||||||
|
pixi5install
|
||||||
|
fi
|
||||||
|
|
||||||
checkandunmount
|
checkandunmount
|
||||||
checkthebinaryarch "$cicpoffs"
|
checkthebinaryarch "$cicpoffs"
|
||||||
checkthebinaryarch "$nwjstestpath/nw"
|
checkthebinaryarch "$nwjstestpath/nw"
|
||||||
|
|
Loading…
Add table
Reference in a new issue