Linux: Add install script

This commit is contained in:
themitosan 2024-04-12 15:33:13 -03:00
parent 0c92ad070a
commit 3b20d34062
6 changed files with 77 additions and 4 deletions

View file

@ -17,14 +17,14 @@ Created by TheMitoSan _(Previously known as TemmieHeartz)_, This is a simple lau
- Download latest release _(you can get it [here](https://github.com/themitosan/fpPS4-Temmie-s-Launcher/releases))_
- Extract all files on your desired location
- Run `Launcher.exe`
- Run `launcher.exe`
#### Latest Features (recommended)
- [Download / Clone this repo](https://github.com/themitosan/fpPS4-Temmie-s-Launcher/archive/refs/heads/main.zip)
- Download [nw.js](https://dl.nwjs.io/v0.70.1/nwjs-sdk-v0.70.1-win-x64.zip) version `0.70.1`
- Extract all files from `nw` on `Nwjs` folder
- Run `Launcher.bat`
- Run `launcher.bat`
If you want to update launcher and have `git` installed, run these commands below:
@ -39,11 +39,21 @@ git pull origin main
[Click here to know how to install Wine](https://wiki.winehq.org/Download)
### Simple Method
- [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`
### Manual Installation
- [Download / Clone this repo](https://github.com/themitosan/fpPS4-Temmie-s-Launcher/archive/refs/heads/main.zip)
- Download [nw.js](https://dl.nwjs.io/v0.70.1/nwjs-sdk-v0.70.1-linux-x64.tar.gz) version `0.70.1`
- Extract all files from `nw` on `Nwjs` folder
- Open terminal on main project path and run `chmod +x ./Launcher.sh`
- To start, run `./Launcher.sh`
- Open terminal on main project path and run `chmod +x ./launcher.sh`
In order to start, run `./launcher.sh`
**TIP**: You can add `launcher.sh` as a *non-steam game* in your Steam!
### How to import your dumps
You can see all required procedures on main [fpPS4 discord server](https://discord.gg/up9qatpX7M).

63
install.sh Executable file
View file

@ -0,0 +1,63 @@
clear
echo
echo "#===========================================================#"
echo
echo " fpPS4 Temmie's Launcher - Install Script"
echo " Written by @themitosan"
echo
echo " IMPORTANT: This script requires curl and tar to work!"
echo
echo "#===========================================================#"
echo
echo "=== Removing previous files"
rm nwjs.tar.gz
rm -rf nwjs-sdk-v0.86.0-linux-x64
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
echo Done!
echo
echo "=== Extracting nwjs"
tar -xvzf nwjs.tar.gz
echo Done!
echo
echo "=== Prepare nwjs folder"
cd Nwjs
rm -rf *
echo "" >> .gitkeep
cd ..
echo Done!
echo
echo "=== Moving files"
mv -f nwjs-sdk-v0.86.0-linux-x64/* Nwjs/
echo Done!
echo
echo "=== Removing leftover files"
rm nwjs.tar.gz
rm -rf nwjs-sdk-v0.86.0-linux-x64
echo Done!
echo
echo "=== Updating permissions for running / updating launcher (chmod)"
chmod +x launcher.sh
chmod +x update.sh
echo Done!
echo
echo "==== Process Complete! ===="
echo '---> In order to start fpPS4 Temmie's Launcher, run "./launcher.sh" (without quotes)'
echo '---> To update, run "./update.sh" (without quotes)'
echo
echo 'TIP: You can add "launcher.sh" as a non-steam game on your Steam!'
echo
echo Also - You will need wine to run fpPS4 on non-windows systems!
echo The installation process may change depending of which distro you are running.
echo
read -p "Press [ENTER] to exit"

0
Update.sh → update.sh Normal file → Executable file
View file