Compare commits

...

2 commits

Author SHA1 Message Date
TheMitoSan 920b8ac36d
Update linux installer info 2024-04-25 22:10:10 -03:00
themitosan c283152667 Install: update data 2024-04-25 22:03:01 -03:00
2 changed files with 44 additions and 9 deletions

View file

@ -40,6 +40,7 @@ Created by [TheMitoSan](https://github.com/themitosan) <sup>_(Previously known a
### Installer Method
**IMPORTANT**: Make sure to have `curl`, `tar` and `unzip` packages installed on your system!
- [Download / Clone this repo](https://github.com/themitosan/fpPS4-Temmie-s-Launcher/archive/refs/heads/main.zip)
- To run installer script, run `chmod +x install.sh && ./install.sh`

View file

@ -1,24 +1,42 @@
#########################################################################
### === Variables ===
### In order to update this file with more ease, just update those
### variables below
### nw.js version
NWJS_VER="0.87.0"
#########################################################################
clear
echo
echo " #===========================================================#"
echo " #=============================================================#"
echo
echo " fpPS4 Temmie's Launcher - Install Script"
echo " Written by @themitosan"
echo
echo " IMPORTANT: This script requires internet connection and"
echo " curl / tar packages installed to work!"
echo " curl, tar and unzip packages installed to work!"
echo
echo " #===========================================================#"
echo " #=============================================================#"
echo
echo "=== Removing previous files"
rm nwjs.tar.gz
rm -rf nwjs-sdk-v0.86.0-linux-x64
rm sdl2.zip
rm -rf "nwjs-sdk-v$NWJS_VER-linux-x64"
rm -rf sdl2
echo Done!
echo
echo "=== Downloading nwjs"
curl https://dl.nwjs.io/v0.86.0/nwjs-sdk-v0.86.0-linux-x64.tar.gz -o nwjs.tar.gz
curl https://dl.nwjs.io/v$NWJS_VER/nwjs-sdk-v$NWJS_VER-linux-x64.tar.gz -o nwjs.tar.gz
echo Done!
echo
echo "=== Downloading SDL2"
curl -L https://github.com/libsdl-org/SDL/releases/download/release-2.30.2/SDL2-2.30.2-win32-x64.zip -o sdl2.zip
echo Done!
echo
@ -26,6 +44,11 @@ echo "=== Extracting nwjs"
tar -xvzf nwjs.tar.gz
echo Done!
echo
echo "=== Extracting SDL2"
unzip -d sdl2 sdl2.zip
echo Done!
echo
echo "=== Prepare nwjs folder"
cd Nwjs
@ -35,14 +58,25 @@ cd ..
echo Done!
echo
echo "=== Moving files"
mv -f nwjs-sdk-v0.86.0-linux-x64/* Nwjs/
echo "=== Checking if Emu folder exists"
if ! [ -d Emu ]; then
echo "Creating Emu dir..."
mkdir Emu
fi
echo Done!
echo
echo "=== Removing leftover files"
echo "=== Moving files"
mv -f nwjs-sdk-v$NWJS_VER-linux-x64/* Nwjs/
mv -f sdl2/SDL2.dll Emu/
echo Done!
echo
echo "=== Removing leftover files / folders"
rm nwjs.tar.gz
rm -rf nwjs-sdk-v0.86.0-linux-x64
rm sdl2.zip
rm -rf nwjs-sdk-v$NWJS_VER-linux-x64
rm -rf sdl2
echo Done!
echo