summarylogtreecommitdiffstats
path: root/openrct2.install
blob: 140c7063386cb1c52bc7c09283234e81b188016c (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
_update_caches() {
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
  update-desktop-database -q
}

post_install() {
  _update_caches
  cat <<EOF
For OpenRCT2 to run you must install the assets from a retail copy of
RollerCoaster Tycoon 2. See the following page for more information on
installing a retail copy of the game on Linux:

  https://github.com/OpenRCT2/OpenRCT2/wiki/Installation-on-Linux

Once installed, set the game_path directive in the [general] section of
\$HOME/OpenRCT2/config.ini to point to the location of the retail installation.
For example:

  [general]
  game_path = "/path/to/RCT2"
EOF
}

post_upgrade () {
  _update_caches
}

post_remove() {
  _update_caches
}