summarylogtreecommitdiffstats
path: root/musescore.install
blob: 86542354d8296519615e4dafff7f33a464eb5d6b (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
post_install() {
  msg() {
    ALL_OFF="\e[1;0m"
    BOLD="\e[1;1m"
    GREEN="${BOLD}\e[1;32m"
    local mesg=$1; shift
    printf "
    ${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
  }

  gtk-update-icon-cache -fqt /usr/share/icons/hicolor
  update-desktop-database -q
  update-mime-database /usr/share/mime
  msg "This is NOT A STABLE RELEASE!
        Scores created with this dev-build may be incompatible with other releases of MuseScore!"
  msg "It's possible to install this dev-version alongside a stable release."
  msg "to execute git version use command: 'musescore-git'
  "
}

post_upgrade() {
  post_install
}

post_remove() {
  gtk-update-icon-cache -fqt /usr/share/icons/hicolor
  update-desktop-database -q
  update-mime-database /usr/share/mime
}