Merge pull request #3 from bayazidbh/main

fix parsing of echo .desktop files during install process
This commit is contained in:
bakustarver 2024-05-15 00:06:35 +03:00 committed by GitHub
commit 1e714bd2dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

11
install.sh Normal file → Executable file
View file

@ -9,7 +9,7 @@ fi
echo "Installing rpgmaker-linux v$version"
mainfd="$HOME/desktopapps/nwjs"
localapplicationsfd="$HOME/.local/share/applications/"
localapplicationsfd="$HOME/.local/share/applications"
localbin="$HOME/.local/bin"
arch=$(uname -m)
@ -59,10 +59,10 @@ createfd "$localbin"
checkthebinaryarch "$installpath/nwjs/cicpoffs"
cp "$installpath/install.sh" "$mainfd"
cp -r "$installpath/nwjs/" "$mainfd"
cp -r "$installpath/nwjs" "$mainfd"
# echo "Making a desktop file"
echo "[Desktop Entry]
echo -e "[Desktop Entry]
Name=RPG Maker MV/MZ (cicpoffs mount)
Exec=env gamef=\"%u\" $mainfd/nwjs/packagefiles/nwjsstart-cicpoffs.sh --chooselatestnwjs
Type=Application
@ -74,7 +74,7 @@ Terminal=true
NoDisplay=true" > "$localapplicationsfd/nwjstest.desktop"
chmod +x "$localapplicationsfd/nwjstest.desktop"
echo "[Desktop Entry]
echo -e "[Desktop Entry]
Name=RPG Maker MV/MZ Options
Exec=env gamef=\"%u\" $mainfd/nwjs/packagefiles/nwjsstart-cicpoffs.sh --gui
Type=Application
@ -83,12 +83,13 @@ StartupNotify=true
MimeType=application/x-ms-dos-executable;application/x-wine-extension-msp;
Icon=$mainfd/nwjs/packagefiles/nwjs128.png
Terminal=true
NoDisplay=true" > "$localapplicationsfd/nwjstoptions.desktop"
NoDisplay=true" > "$localapplicationsfd/nwjsoptions.desktop"
chmod +x "$localapplicationsfd/nwjsoptions.desktop"
# Exec=bash -c "/home/pasha/desktopapps/nwjs/nwjs/packagefiles/nwjsstart-cicpoffs.sh --latestnwjs --gamepath '$(pwd)'";#
lnnew "$mainfd/nwjs/packagefiles/nwjsstart-cicpoffs.sh" "$localbin/rpgmaker-linux"
chmod +x "$localbin/rpgmaker-linux"
update-desktop-database -q ~/.local/share/applications
echo "Installation Done"