[Scripts] Add basic install script for testing

This commit is contained in:
Ducko 2021-12-19 10:49:14 +00:00
parent a02a6aabeb
commit 8260f1ca9b
1 changed files with 18 additions and 0 deletions

18
scripts/install.sh Executable file
View File

@ -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"