summarylogtreecommitdiffstats
path: root/code-features.install
blob: 28844748e559f84a454705c4b82d12c85cdded40 (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 when this package is out of date or some extensions don't work after an update in extra/code."
}

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 when this package is out of date or some extensions don't work after an update in extra/code."
}

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