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