mirror of
https://github.com/bakustarver/rpgmakermlinux-cicpoffs.git
synced 2025-03-28 14:56:21 +01:00
Add files via upload
This commit is contained in:
parent
24bb712e48
commit
3fae4bf356
1 changed files with 94 additions and 43 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
version='1.1.4'
|
version='1.1.5'
|
||||||
export mainfd="$HOME/desktopapps"
|
export mainfd="$HOME/desktopapps"
|
||||||
export nwjsfm="$mainfd/nwjs/nwjs"
|
export nwjsfm="$mainfd/nwjs/nwjs"
|
||||||
export LD_LIBRARY_PATH="$mainfd/nwjs/nwjs/packagefiles/:$LD_LIBRARY_PATH"
|
export LD_LIBRARY_PATH="$mainfd/nwjs/nwjs/packagefiles/:$LD_LIBRARY_PATH"
|
||||||
|
@ -208,7 +208,7 @@ https://www.buymeacoffee.com/rpgmakerlinux"
|
||||||
}
|
}
|
||||||
|
|
||||||
incompletefeaturefunc() {
|
incompletefeaturefunc() {
|
||||||
echo "$arg" in development, wait for it on this site.
|
echo "$arg" in development, wait for it.
|
||||||
echo "https://github.com/bakustarver/rpgmakermlinux-cicpoffs"
|
echo "https://github.com/bakustarver/rpgmakermlinux-cicpoffs"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -248,8 +248,10 @@ ln -fs "$npath/data" "$mainfd/nwjs/nwjs/packagefiles/tyranobuilder/tyranoeng"
|
||||||
|
|
||||||
mkxpzdownload() {
|
mkxpzdownload() {
|
||||||
|
|
||||||
# mkxpzarch=$(echo "$arch" )
|
if [ "$arch" = "i686" ]; then
|
||||||
|
echo For this release, i686 not supported
|
||||||
|
exit;
|
||||||
|
fi
|
||||||
if [ -n "$REINSTALLMKXPZ" ]; then
|
if [ -n "$REINSTALLMKXPZ" ]; then
|
||||||
echo Reinstalling mkxpz
|
echo Reinstalling mkxpz
|
||||||
rm -rf "$mkxpzp"
|
rm -rf "$mkxpzp"
|
||||||
|
@ -260,9 +262,6 @@ wget -O /tmp/mkxp-z.zip "$link"
|
||||||
unzip -d "$mkxpzp" /tmp/mkxp-z.zip
|
unzip -d "$mkxpzp" /tmp/mkxp-z.zip
|
||||||
sed -e "s@\"RGSS@\"$mkxpzp/RGSS@g" -e "s@\"Kawariki-patches@\"$mkxpzp/Kawariki-patches@g" -i "$mkxpzp/mkxp.json"
|
sed -e "s@\"RGSS@\"$mkxpzp/RGSS@g" -e "s@\"Kawariki-patches@\"$mkxpzp/Kawariki-patches@g" -i "$mkxpzp/mkxp.json"
|
||||||
rm /tmp/mkxp-z.zip
|
rm /tmp/mkxp-z.zip
|
||||||
# else
|
|
||||||
# echo For this release, supported x86_64 only
|
|
||||||
# fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mkxpzdialog() {
|
mkxpzdialog() {
|
||||||
|
@ -348,6 +347,9 @@ fi
|
||||||
}
|
}
|
||||||
|
|
||||||
godotdownloadsdk() {
|
godotdownloadsdk() {
|
||||||
|
if ! timeout 15s wget -q --spider "https://downloads.tuxfamily.org/godotengine/"; then
|
||||||
|
echo "Cannot connect to the godot server"
|
||||||
|
fi
|
||||||
if [ -z "$execpath" ]; then
|
if [ -z "$execpath" ]; then
|
||||||
exen=$(ls -p "$npath" | grep -v "/$" | grep "\.exe$" )
|
exen=$(ls -p "$npath" | grep -v "/$" | grep "\.exe$" )
|
||||||
fi
|
fi
|
||||||
|
@ -356,7 +358,6 @@ fi
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
godotold=""
|
godotold=""
|
||||||
exenn=$(echo "$line" | sed "s@.exe@@g" )
|
exenn=$(echo "$line" | sed "s@.exe@@g" )
|
||||||
# echo hhh
|
|
||||||
strgodotexe=$(strings "$npath/$line")
|
strgodotexe=$(strings "$npath/$line")
|
||||||
versiongodot=$(echo "$strgodotexe" | grep -m 1 'Godot Engine v' | sed -e 's@.* v@@g' -e 's@.official@@g' )
|
versiongodot=$(echo "$strgodotexe" | grep -m 1 'Godot Engine v' | sed -e 's@.* v@@g' -e 's@.official@@g' )
|
||||||
if [ -z "$versiongodot" ]; then
|
if [ -z "$versiongodot" ]; then
|
||||||
|
@ -390,7 +391,7 @@ elif [[ $retgodotcustom -eq 1 ]]; then
|
||||||
exit;
|
exit;
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
echo $versiongodot
|
||||||
# https://downloads.tuxfamily.org/godotengine/3.5.2/
|
# https://downloads.tuxfamily.org/godotengine/3.5.2/
|
||||||
if [ "$godotold" = "true" ]; then
|
if [ "$godotold" = "true" ]; then
|
||||||
# echo "ccc $garch"
|
# echo "ccc $garch"
|
||||||
|
@ -415,7 +416,14 @@ fi
|
||||||
archivngodot=$(basename "$godotsdklink")
|
archivngodot=$(basename "$godotsdklink")
|
||||||
binname=$(echo "$archivngodot" | sed -e 's@.zip@@g')
|
binname=$(echo "$archivngodot" | sed -e 's@.zip@@g')
|
||||||
if ! [ -f "$npath/$exenn.$garch" ]; then
|
if ! [ -f "$npath/$exenn.$garch" ]; then
|
||||||
|
if wget -q --spider "$godotsdklink"; then
|
||||||
|
echo "$godotsdklink"
|
||||||
wget -c "$godotsdklink" -P "$npath"
|
wget -c "$godotsdklink" -P "$npath"
|
||||||
|
else
|
||||||
|
echo "Can't connect to the godot server"
|
||||||
|
exit;
|
||||||
|
fi
|
||||||
|
|
||||||
unzip -d "$npath" "$npath/$archivngodot";
|
unzip -d "$npath" "$npath/$archivngodot";
|
||||||
mv "$npath/$binname" "$npath/$exenn.$garch";
|
mv "$npath/$binname" "$npath/$exenn.$garch";
|
||||||
rm "$npath/$archivngodot";
|
rm "$npath/$archivngodot";
|
||||||
|
@ -444,14 +452,16 @@ usetyranoelectron=true
|
||||||
|
|
||||||
searchforpackedexe() {
|
searchforpackedexe() {
|
||||||
# echo fffvvvv
|
# echo fffvvvv
|
||||||
local gfexe=$(ls -p "$1" | grep -v "/$" | grep "\.exe$")
|
local gfexe=$(ls -p "$1" | grep -v "/$" | grep "\.exe$" | head -n 6)
|
||||||
# echo "$gfexe"
|
# echo "$gfexe"
|
||||||
npath="$1"
|
npath="$1"
|
||||||
if [ -n "$gfexe" ]; then
|
if [ -n "$gfexe" ]; then
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
# check=$()
|
# check=$()
|
||||||
allstrings=$(strings "$npath/$line")
|
# echo "$npath/$line"
|
||||||
if echo "$allstrings" | grep -m 1 -q "\!CreatePipe(\&pipe\[0\]" && echo "$allstrings" | grep -m 1 -q "Godot Engine"; then
|
#check 1 kb of the binary
|
||||||
|
allstrings=$(head -c 5120 "$npath/$line" | strings)
|
||||||
|
if echo "$allstrings" | grep -q "8MZu" && echo "$allstrings" | grep -q "pck"; then
|
||||||
# echo vvv
|
# echo vvv
|
||||||
# "$pckextract" "$npath/$line"
|
# "$pckextract" "$npath/$line"
|
||||||
linenoexe=$(echo "$line.pck" | sed "s@\.exe@@g")
|
linenoexe=$(echo "$line.pck" | sed "s@\.exe@@g")
|
||||||
|
@ -460,6 +470,7 @@ if ! [ -f "$linenoexe" ]; then
|
||||||
cp "$line" "$linenoexe"
|
cp "$line" "$linenoexe"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
# echo "jjj"
|
||||||
# !CreatePipe(&pipe[0]
|
# !CreatePipe(&pipe[0]
|
||||||
if ! [ -d "$npath/$line-extracted" ]; then
|
if ! [ -d "$npath/$line-extracted" ]; then
|
||||||
# echo hmmm
|
# echo hmmm
|
||||||
|
@ -816,7 +827,6 @@ do
|
||||||
;;
|
;;
|
||||||
--updatescripts)
|
--updatescripts)
|
||||||
updatescriptsgithub=true
|
updatescriptsgithub=true
|
||||||
incompletefeaturefunc
|
|
||||||
;;
|
;;
|
||||||
--makeshortcut)
|
--makeshortcut)
|
||||||
case "$arg2" in
|
case "$arg2" in
|
||||||
|
@ -1052,18 +1062,49 @@ if [ -n "$newupdate" ]; then
|
||||||
echo "$newupdate" > "$path" ;
|
echo "$newupdate" > "$path" ;
|
||||||
chmod +x "$path"
|
chmod +x "$path"
|
||||||
else
|
else
|
||||||
echo "Can't update the steamwrapper"
|
echo "Can't update" $basenfile
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$updatescriptsgithub" = "true" ]; then
|
if [ "$updatescriptsgithub" = "true" ]; then
|
||||||
|
|
||||||
updatescript "https://raw.githubusercontent.com/bakustarver/rpgmakermlinux-cicpoffs/main/nwjs/packagefiles/rpgmaker-linux-steam-wrapper/rpgmaker-linux-cicpoffs-wrapper.sh" "$HOME/.steam/steam/compatibilitytools.d/rpgmaker-linux-steam-wrapper/rpgmaker-linux-cicpoffs-wrapper.sh"
|
updatescript "https://raw.githubusercontent.com/bakustarver/rpgmakermlinux-cicpoffs/main/nwjs/packagefiles/rpgmaker-linux-steam-wrapper/rpgmaker-linux-cicpoffs-wrapper.sh" "$HOME/.steam/steam/compatibilitytools.d/rpgmaker-linux-steam-wrapper/rpgmaker-linux-cicpoffs-wrapper.sh"
|
||||||
updatescript "https://raw.githubusercontent.com/bakustarver/rpgmakermlinux-cicpoffs/main/nwjs/packagefiles/nwjsstart-cicpoffs.sh" "$mainfd/nwjs/nwjs/packagefiles/nwjsstart-cicpoffs.sh"
|
|
||||||
updatescript "https://raw.githubusercontent.com/bakustarver/rpgmakermlinux-cicpoffs/main/nwjs/dwnwjs.sh" "$mainfd/nwjs/nwjs/dwnwjs.sh"
|
updatescript "https://raw.githubusercontent.com/bakustarver/rpgmakermlinux-cicpoffs/main/nwjs/dwnwjs.sh" "$mainfd/nwjs/nwjs/dwnwjs.sh"
|
||||||
|
updatescript "https://raw.githubusercontent.com/bakustarver/rpgmakermlinux-cicpoffs/main/nwjs/packagefiles/nwjsstart-cicpoffs.sh" "$mainfd/nwjs/nwjs/packagefiles/nwjsstart-cicpoffs.sh"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
exclude_list=(
|
||||||
|
"credits.html"
|
||||||
|
"www"
|
||||||
|
"icudtl.dat"
|
||||||
|
"notification_helper.exe"
|
||||||
|
"package.json"
|
||||||
|
"d3dcompiler_47.dll"
|
||||||
|
"libegl.dll"
|
||||||
|
"nw_100_percent.pak"
|
||||||
|
"resources.pak"
|
||||||
|
"debug.log"
|
||||||
|
"libglesv2.dll"
|
||||||
|
"nw_200_percent.pak"
|
||||||
|
"ffmpeg.dll"
|
||||||
|
"locales"
|
||||||
|
"nw.dll"
|
||||||
|
"swiftshader"
|
||||||
|
"game.exe"
|
||||||
|
"game_en.exe"
|
||||||
|
"node.dll"
|
||||||
|
"nw_elf.dll"
|
||||||
|
"v8_context_snapshot.bin"
|
||||||
|
"patch-config.txt"
|
||||||
|
"dazed"
|
||||||
|
"ffmpegsumo.dll"
|
||||||
|
"installscript.vdf"
|
||||||
|
"snapshot_blob.bin"
|
||||||
|
"nw.pak"
|
||||||
|
)
|
||||||
|
|
||||||
yaddata() {
|
yaddata() {
|
||||||
updatenwjsvar=$(echo "$@" | awk '{print $1}')
|
updatenwjsvar=$(echo "$@" | awk '{print $1}')
|
||||||
pixiupdatevar=$(echo "$@" | awk '{print $2}')
|
pixiupdatevar=$(echo "$@" | awk '{print $2}')
|
||||||
|
@ -1078,6 +1119,8 @@ sdkvar=$(echo "$@" | awk '{print $9}')
|
||||||
# kdialog --msgbox "$updatenwjsvar $pixiupdate $localshortcut $texthookerset dc $desktopshortcut $addtomenuvar $sdkvar $nwjsguivar hh $fivehundredsaveslotspluginvar"
|
# kdialog --msgbox "$updatenwjsvar $pixiupdate $localshortcut $texthookerset dc $desktopshortcut $addtomenuvar $sdkvar $nwjsguivar hh $fivehundredsaveslotspluginvar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
guirpgmakermfn() {
|
guirpgmakermfn() {
|
||||||
if [ -d "$HOME/.config" ]; then
|
if [ -d "$HOME/.config" ]; then
|
||||||
configgp="$HOME/.config/rpgmaker-guiconfig.txt"
|
configgp="$HOME/.config/rpgmaker-guiconfig.txt"
|
||||||
|
@ -1106,6 +1149,7 @@ yaddata "$guim"
|
||||||
# echo "$guim"
|
# echo "$guim"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# exit;
|
# exit;
|
||||||
if [ "$fivehundredsaveslotspluginvar" = "TRUE" ]; then
|
if [ "$fivehundredsaveslotspluginvar" = "TRUE" ]; then
|
||||||
# export LANG="ja_JP.utf8"
|
# export LANG="ja_JP.utf8"
|
||||||
|
@ -1345,6 +1389,7 @@ elif [ "$engine" = "construct-nwjs" ]; then
|
||||||
export engine=construct-nwjs
|
export engine=construct-nwjs
|
||||||
fi
|
fi
|
||||||
if [ -n "$found" ] || [ -n "$engine" ]; then
|
if [ -n "$found" ] || [ -n "$engine" ]; then
|
||||||
|
# python "/home/pasha/Desktop/Паша/Scripts/python/hardware-info/Script2.py"
|
||||||
"$nwjsfm/packagefiles/bugreporter"
|
"$nwjsfm/packagefiles/bugreporter"
|
||||||
else
|
else
|
||||||
echo "Cannot find any game"
|
echo "Cannot find any game"
|
||||||
|
@ -1371,32 +1416,7 @@ cp "$nwjsfm/packagefiles/libulockmgr.so.1" "$theexpgamep/lib"
|
||||||
cp "$mainfd/nwjs/nwjs/packagefiles/package.json" "$theexpgamep"
|
cp "$mainfd/nwjs/nwjs/packagefiles/package.json" "$theexpgamep"
|
||||||
cp "$nwjsfm/packagefiles/filestoexport/start_your_game.sh" "$theexpgamep"
|
cp "$nwjsfm/packagefiles/filestoexport/start_your_game.sh" "$theexpgamep"
|
||||||
cp -r "$mountpath" "$theexpgamep/www-case"
|
cp -r "$mountpath" "$theexpgamep/www-case"
|
||||||
exclude_list=(
|
|
||||||
"credits.html"
|
|
||||||
"www"
|
|
||||||
"icudtl.dat"
|
|
||||||
"notification_helper.exe"
|
|
||||||
"package.json"
|
|
||||||
"d3dcompiler_47.dll"
|
|
||||||
"libegl.dll"
|
|
||||||
"nw_100_percent.pak"
|
|
||||||
"resources.pak"
|
|
||||||
"debug.log"
|
|
||||||
"libglesv2.dll"
|
|
||||||
"nw_200_percent.pak"
|
|
||||||
"ffmpeg.dll"
|
|
||||||
"locales"
|
|
||||||
"nw.dll"
|
|
||||||
"swiftshader"
|
|
||||||
"game.exe"
|
|
||||||
"game_en.exe"
|
|
||||||
"node.dll"
|
|
||||||
"nw_elf.dll"
|
|
||||||
"v8_context_snapshot.bin"
|
|
||||||
"update-patch.bat"
|
|
||||||
"patch-config.txt"
|
|
||||||
"dazed"
|
|
||||||
)
|
|
||||||
# Loop through files and folders in the game directory
|
# Loop through files and folders in the game directory
|
||||||
for item in "$mountpath"/*; do
|
for item in "$mountpath"/*; do
|
||||||
# Get the basename of the item and convert it to lowercase
|
# Get the basename of the item and convert it to lowercase
|
||||||
|
@ -1418,11 +1438,13 @@ fi
|
||||||
|
|
||||||
|
|
||||||
startnw() {
|
startnw() {
|
||||||
|
# cd "$gamef" &
|
||||||
if [ -n "$armsys" ]; then
|
if [ -n "$armsys" ]; then
|
||||||
"$nwjstestpath/nw" --ozone-platform=x11
|
"$nwjstestpath/nw" --ozone-platform=x11
|
||||||
else
|
else
|
||||||
if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
|
if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
|
||||||
echo "wayland detected"
|
echo "wayland detected"
|
||||||
|
# firejail --protocol=unix,inet,inet6,netlink
|
||||||
"$nwjstestpath/nw" --ozone-platform=wayland
|
"$nwjstestpath/nw" --ozone-platform=wayland
|
||||||
else
|
else
|
||||||
echo "wayland not detected, starting in x11"
|
echo "wayland not detected, starting in x11"
|
||||||
|
@ -1484,6 +1506,32 @@ Total time: $SECONDS seconds"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
checkreaddirSynfunc() {
|
||||||
|
for file in "$nwjstestpath"/*; do
|
||||||
|
if [ -L "$file" ]; then
|
||||||
|
rm -f "$file"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if grep -q -r "readdirSyn" "$mountpath/js/plugins/"; then
|
||||||
|
|
||||||
|
# echo hhh;
|
||||||
|
for file in "$npath"/*; do
|
||||||
|
|
||||||
|
base0=$(basename "$file" )
|
||||||
|
base=$(echo "$base0" | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
|
if ! [[ " ${exclude_list[@]} " =~ " ${base} " ]]; then
|
||||||
|
|
||||||
|
ln -s "$file" "$nwjstestpath"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
plugins-autoinstall() {
|
plugins-autoinstall() {
|
||||||
cpfd="$nwjsfm/plugins-autoinstall"
|
cpfd="$nwjsfm/plugins-autoinstall"
|
||||||
pluginslistfile="$mountpath/js/plugins.js"
|
pluginslistfile="$mountpath/js/plugins.js"
|
||||||
|
@ -1549,7 +1597,11 @@ fi
|
||||||
ln -s "$npath/package.nw" "$nwjstestpath"
|
ln -s "$npath/package.nw" "$nwjstestpath"
|
||||||
startnw
|
startnw
|
||||||
elif [ "$found" = "true" ]; then
|
elif [ "$found" = "true" ]; then
|
||||||
# rmsymlinks
|
checkreaddirSynfunc
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
mountwww
|
mountwww
|
||||||
plugins-autoinstall
|
plugins-autoinstall
|
||||||
if [ -n "$MAKELOCALSHORTCUT" ]; then
|
if [ -n "$MAKELOCALSHORTCUT" ]; then
|
||||||
|
@ -1571,4 +1623,3 @@ if [ -n "$notfound" ]; then
|
||||||
echo "Can't find any game in $npath"
|
echo "Can't find any game in $npath"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
# sleep 6666
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue