[Scripts] Add basic install script for testing
This commit is contained in:
parent
a02a6aabeb
commit
8260f1ca9b
1 changed files with 18 additions and 0 deletions
18
scripts/install.sh
Executable file
18
scripts/install.sh
Executable 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"
|
Loading…
Add table
Add a link
Reference in a new issue