From b160c5e109e9596b81a568e1198cd29058878402 Mon Sep 17 00:00:00 2001 From: Sussy-OS Date: Wed, 16 Mar 2022 17:28:06 -0400 Subject: [PATCH] Added install.sh and uninstall.sh --- README.md | 5 +++-- install.sh | 31 +++++++++++++++++++++++++++++++ src/Program.cs | 2 +- uninstall.sh | 4 ++++ version | 2 +- 5 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 install.sh create mode 100644 uninstall.sh diff --git a/README.md b/README.md index e5984ba5..535065d2 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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) diff --git a/install.sh b/install.sh new file mode 100644 index 00000000..22ce2716 --- /dev/null +++ b/install.sh @@ -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 diff --git a/src/Program.cs b/src/Program.cs index 68c932c6..c7e3ff47 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -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; diff --git a/uninstall.sh b/uninstall.sh new file mode 100644 index 00000000..f9ae7b6a --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +purge_packages || exit 1 +rm -rf ~/LineRider/ ~/.local/share/applications/LineRider.desktop diff --git a/version b/version index 6a6418cb..95900059 100644 --- a/version +++ b/version @@ -1 +1 @@ -2022.3.17 +2022.3.18