summarylogtreecommitdiffstats
path: root/openrct2.install
blob: 56608b7998fcbb591b7b11861f166a6a9bd31eeb (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
_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
\$XDG_CONFIG_HOME/OpenRCT2/config.ini (typically ~/.config/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
}