summarylogtreecommitdiffstats
path: root/openasar-git.install
blob: 83a9655c79cb51302d5a0548385ebb805c4c3229 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_install() {
    _pkgname='openasar'
    pkgname="${_pkgname}-git"
    mv "${pkgdir}/opt/discord/resources/app.asar" "${pkgdir}/opt/discord/resources/app.asar.backup"
    mv "/opt/${pkgname}/app.asar" "/opt/discord/resources/app.asar"
}

pre_upgrade() {
    rm "/opt/discord/resources/app.asar"
}

post_upgrade() {
    _pkgname='openasar'
    pkgname="${_pkgname}-git"
    mv "/opt/${pkgname}/app.asar" "/opt/discord/resources/app.asar"
}

post_remove() {
    rm "/opt/discord/resources/app.asar"
    mv "/opt/discord/resources/app.asar.backup" "/opt/discord/resources/app.asar"
}