blob: b7d0d23bf7f981a5b6bcaa48292d4ea39383c566 (
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
32
33
|
ALL_OFF="$(tput sgr0)"
BOLD="$(tput bold)"
BLUE="${BOLD}$(tput setaf 4)"
YELLOW="${BOLD}$(tput setaf 3)"
msg_blue()
{
printf "${BLUE}==>${ALL_OFF}${BOLD}ยท$1${ALL_OFF}\n"
}
# Colored makepkg-like functions
note()
{
printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n"
}
post_install()
{
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
note "npm run rebuild #see https://github.com/electron/electron/issues/5851"
}
post_upgrade()
{
post_install
}
post_remove()
{
post_install
}
|