summarylogtreecommitdiffstats
path: root/code-features.install
blob: 40a86670d92fd5ea8fb0b619a4743454cabfac21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_install() {
  /usr/share/code-features/patch.py code-features patch
  printf "==> [code-features] Use command /usr/bin/code-features-update to manually update the patch to keep up with the official vscode release so you don't have to wait for this package to be updated every time."
}

pre_upgrade() {
  /usr/share/code-features/patch.py code-features restore
}

post_upgrade() {
  /usr/share/code-features/patch.py code-features patch
  printf "==> [code-features] !!! Now there is a new command /usr/bin/code-features-update that can update the patch to keep up with the official vscode release. You can use this command to manually update the patch so you don't have to wait for this package to be updated every time."
}

pre_remove() {
  /usr/share/code-features/patch.py code-features restore
  /usr/bin/rm -f /usr/share/code-features/cache.json
}