summarylogtreecommitdiffstats
path: root/vcmi-git.install
blob: 1dcb73e9292f0246edd03c2226ee6fa6992299db (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
post_install() {
  update-desktop-database -q
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor

  echo ">>>"
  echo ">>> Vcmi is a game engine and it doesn't contain data files. Therefore you have to have"
  echo ">>> an original copy of Heroes of Might and Magic 3 Shadow of Death or Complete edition."
  echo ">>> You can prepare the data files by using a vcmibuilder script (which is the easiest"
  echo ">>> and recommended method) or you can make this manually."
  echo ">>>"
  echo ">>> The following step describe how to prepare data files by using the vcmibuilder script:"
  echo ">>>   1. Execute as normal user the vcmibuilder script with appropriate options and paths"
  echo ">>>      (depending on what kind of HOMM3 copy you have). It will automatically create"
  echo ">>>      a directory ~/.local/share/vcmi where will be prepared the data files:"
  echo ">>>        a. if you have HOMM3 with one or two CD's run the following command"
  echo ">>>           (vcmibuilder will require unshield and unzip tools):"
  echo ">>>              vcmibuilder --cd1 /path/to/iso/or/cd --cd2 /path/to/second/cd"
  echo ">>>        b. or if you have HOMM3 installer from gog.com run the following command"
  echo ">>>           (vcmibuilder will require innoextract and unzip tools):"
  echo ">>>              vcmibuilder --gog /path/to/gog.com/installer"
  echo ">>>        c. or if you have HOMM3 that is already installed run the following command"
  echo ">>>           (vcmibuilder will require unzip tool):"
  echo ">>>              vcmibuilder --data /path/to/h3/data"
  echo ">>>"
  echo ">>> Now you can run vcmi as a normal user by running vcmiclient command. Please also check"
  echo ">>> vcmilauncher (mod manager) which can automatically download and manage available mods."
  echo ">>>"
  echo ">>> Vcmi will read data files from ~/.local/share/vcmi directory. Temporary files including"
  echo ">>> logs will be located in ~/.cache/vcmi directory and configuration files will be located"
  echo ">>> in ~/.config/vcmi directory."
  echo ">>>"
  echo ">>> More information about vcmi linux installation can be found on this website:"
  echo ">>> http://wiki.vcmi.eu/index.php?title=Installation_on_Linux"
  echo ">>>"
  echo ">>> Please keep in mind that this is the git version of vcmi, so each new git commit"
  echo ">>> may introduce new errors in vcmi."
  echo ">>>"
  echo ">>> Below is included a bunch of useful links about vcmi:"
  echo ">>> - (vcmi wiki): http://wiki.vcmi.eu/index.php?title=Main_Page"
  echo ">>> - (vcmi forum): http://forum.vcmi.eu/"
  echo ">>> - (vcmi bug tracker): http://bugs.vcmi.eu/my_view_page.php"
  echo ">>> - (how to report a bug): http://wiki.vcmi.eu/index.php?title=Bug_reporting_guidelines"
  echo ">>> - (the git timeline): https://github.com/vcmi/vcmi/commits/develop"
  echo ">>>"
}

post_upgrade() {
  update-desktop-database -q
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}

post_remove() {
  update-desktop-database -q
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor

  echo ">>>"
  echo ">>> In order to completely remove vcmi you will need to manually remove"
  echo ">>> ~/.local/share/vcmi, ~/.cache/vcmi and ~/.config/vcmi directories."
  echo ">>>"
}