summarylogtreecommitdiffstats
path: root/openasar-remove.sh
blob: 5e61267f2c3fc2e586ab08cfa68f572b225d4050 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
canary="/opt/discord-canary/resources"
development="/opt/discord-development/resources"
stable="/opt/discord/resources"
canary_electron="/usr/lib/discord-canary"
ptb="/opt/discord-ptb/resources"

removeOA () {
rm -f $1/app.asar
mv $1/app.asar.old $1/app.asar
}

if test -f "$stable/app.asar"; then
 removeOA $stable
 fi

if test -f "$canary/app.asar"; then
 removeOA $canary
 fi

if test -f "$development/app.asar"; then
 removeOA $development
 fi

if test -f "$canary_electron/app.asar"; then
 removeOA $canary_electron
 fi

if test -f "$ptb/app.asar"; then
 removeOA $ptb
 fi