From 8260f1ca9bdc8c0aa3489e6bca4ec674d831f514 Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 19 Dec 2021 10:49:14 +0000 Subject: [PATCH] [Scripts] Add basic install script for testing --- scripts/install.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/install.sh diff --git a/scripts/install.sh b/scripts/install.sh new file mode 100755 index 0000000..79a5b5b --- /dev/null +++ b/scripts/install.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +channel=$1 +echo $channel + +path="" +if [[ $channel == "stable" ]]; then + path="/opt/discord" +else + path="/opt/discord-$channel" +fi + +path+="/resources/app.asar" + +echo $path + +mv "$path" "$path.backup" +wget https://github.com/GooseMod/OpenAsar/releases/download/nightly/app.asar -O "$path" \ No newline at end of file