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
4de10a9b3a
commit
f4c37eaab4
2 changed files with 20 additions and 4 deletions
20
install.sh
20
install.sh
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
installpath=$(dirname "$0")
|
||||
version='1.0.3'
|
||||
version='1.0.5'
|
||||
if ! [ -d "$installpath/nwjs" ]; then
|
||||
echo "Can't find nwjs folder"
|
||||
exit 1;
|
||||
|
@ -13,7 +13,7 @@ localapplicationsfd="$HOME/.local/share/applications/"
|
|||
localbin="$HOME/.local/bin"
|
||||
|
||||
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@armv7l@pie executable, ARM,@g' -e 's@armhf@pie executable, ARM,@g')
|
||||
archcheckmessage=$(echo "$arch" | sed -e 's@x86_64@, x86-64, version@g' -e 's@aarch64@, ARM aarch64,@g' -e 's@i686@, Intel 80386,@g' -e 's@i386@, Intel 80386,@g' -e 's@armv7l@, ARM,@g' -e 's@armhf@, ARM,@g')
|
||||
|
||||
rm -rf "$mainfd"
|
||||
|
||||
|
@ -64,9 +64,9 @@ cp -r "$installpath/nwjs/" "$mainfd"
|
|||
# echo "Making a desktop file"
|
||||
echo "[Desktop Entry]
|
||||
Name=RPG Maker MV/MZ (cicpoffs mount)
|
||||
Exec=env gamef='%u' $mainfd/nwjs/packagefiles/nwjsstart-cicpoffs.sh --chooselatestnwjs
|
||||
Exec=env gamef=\"%u\" $mainfd/nwjs/packagefiles/nwjsstart-cicpoffs.sh --chooselatestnwjs
|
||||
Type=Application
|
||||
Categories=Game
|
||||
Categories=Games
|
||||
StartupNotify=true
|
||||
MimeType=application/x-ms-dos-executable;application/x-wine-extension-msp;
|
||||
Icon=$mainfd/nwjs/packagefiles/nwjs128.png
|
||||
|
@ -74,6 +74,18 @@ Terminal=true
|
|||
NoDisplay=true" > "$localapplicationsfd/nwjstest.desktop"
|
||||
chmod +x "$localapplicationsfd/nwjstest.desktop"
|
||||
|
||||
echo "[Desktop Entry]
|
||||
Name=RPG Maker MV/MZ Options
|
||||
Exec=env gamef=\"%u\" $mainfd/nwjs/packagefiles/nwjsstart-cicpoffs.sh --gui
|
||||
Type=Application
|
||||
Categories=Games
|
||||
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"
|
||||
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"
|
||||
|
|
4
uninstall.sh
Normal file
4
uninstall.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
rm -rf "$HOME/desktopapps/nwjs" && rm "$HOME/.local/share/applications/nwjstest.desktop" && rm "$HOME/.local/bin/rpgmaker-linux"
|
Loading…
Add table
Reference in a new issue