Update install.sh

This commit is contained in:
bakustarver 2024-11-18 19:01:08 +02:00 committed by GitHub
parent 5e36432cc5
commit 025dd20a25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,7 @@
#!/bin/bash
installpath=$(dirname "$0")
version='1.1.0'
version='1.1.4'
if ! [ -d "$installpath/nwjs" ]; then
echo "Can't find nwjs folder"
exit 1;
@ -125,6 +125,12 @@ xdg-mime default nwjsoptions.desktop x-scheme-handler/rpgmakermp
echo "Installation Done"
if [ ! -f "$HOME/.profile" ]; then
if [ ! -f "$HOME/.bash_profile" ] || ! cat "$HOME/.bash_profile" | grep -q ".local/bin"; then
echo 'if [ -d "$HOME/.local/bin" ]; then export PATH="$PATH:$HOME/.local/bin" ; fi' >> ~/.bash_profile
fi
fi
if [ -d "$HOME/.steam/" ]; then
steamcompatibilitytoolinstaller "$compatibilitytoolsfddef"