Skip to content

Commit

Permalink
Added install.sh and uninstall.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Sussy-OS committed Mar 16, 2022
1 parent cd2e48a commit b160c5e
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# IMPORTANT
This is source code for Pi-Apps, to install on Linux, either build it yourself, or download Pi-Apps below!
This is source code for Pi-Apps, to install on Linux, either build it yourself, ,run the install command below, or download Pi-Apps below!


[![badge](https://github.com/Botspot/pi-apps/blob/master/icons/badge.png?raw=true)](https://github.com/Botspot/pi-apps)
Expand All @@ -10,9 +10,10 @@ Line Rider Advanced: Community Edition, abbreviated as LRA:CE, is a fork of http
This project's goal is to unify the best features from several existing forks of the original Line Rider Advanced all into one version. Once this version is caught up with all others, we, the contributors, will aim to continue development of new features in this repo as opposed to branching off into new forks again.

## Linux
You will need to run ```sudo apt install apt-transport-https dirmngr gnupg ffmpeg mono-devel -y``` or install it from Pi-Apps:
You will need to run ```wget -qO- https://raw.githubusercontent.com/Sussy-OS/LRA-Communtiy-Edition/linux/install.sh | bash``` or install it from Pi-Apps:
[![badge](https://github.com/Botspot/pi-apps/blob/master/icons/badge.png?raw=true)](https://github.com/Botspot/pi-apps)

To uninstall, run ```wget -qO- https://raw.githubusercontent.com/Sussy-OS/LRA-Communtiy-Edition/linux/uninstall.sh | bash```

# LRA:CE Features
* Discord activity support (Aka little stats when you click your user)
Expand Down
31 changes: 31 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

version=2022.3.18
# Version

sudo apt install apt-transport-https dirmngr gnupg ffmpeg mono-devel -y || exit 1

mkdir -p ~/LineRider
cd ~/LineRider || error "Could not move to folder"

#Download LRA-Community-Edition build from repo
wget -O linerider.zip https://github.com/Sussy-OS/LRA-Community-Edition/releases/download/${version}/LineRider.game.auto-release.${version}-LR.zip || error "Could not download linerider"

#Install
unzip linerider.zip || error "Could not unzip the files"
rm linerider.zip

#Add system ffmpeg to expected location
mkdir -p ~/Documents/LRA/ffmpeg/linux
cp $(command -v ffmpeg) ~/Documents/LRA/ffmpeg/linux/ffmpeg

#Menu shortcut
echo "[Desktop Entry]
Name=LineRider
Comment=An Open Source spiritual successor to the flash game Line Rider
Icon=$(dirname "$0")/icon-64.png
Exec=mono $HOME/LineRider/linerider.exe
Path=$HOME/LineRider/
Type=Application
Terminal=false
Categories=Game;" > ~/.local/share/applications/LineRider.desktop
2 changes: 1 addition & 1 deletion src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static class Program
#endif
public static string BinariesFolder = "bin";
public readonly static CultureInfo Culture = new CultureInfo("en-US");
public static string Version = "2022.3.17";
public static string Version = "2022.3.18";
public static string TestVersion = "";
public static string NewVersion = null;
public static readonly string WindowTitle = "Line Rider Advanced: Community Edition " + Version + TestVersion;
Expand Down
4 changes: 4 additions & 0 deletions uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

purge_packages || exit 1
rm -rf ~/LineRider/ ~/.local/share/applications/LineRider.desktop
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022.3.17
2022.3.18

0 comments on commit b160c5e

Please sign in to comment.