-
-
Notifications
You must be signed in to change notification settings - Fork 408
Post‐Install Scripts
Most people won't need this.
If for some reason you're doing repeated installs of the same title (e.g. if you're doing a regression test), you can have Winetricks use a postinstall script to automatically execute a few commands after a game is installed.
Postinstall scripts live in the directory $WINETRICKS_POST
, which defaults to $HOME/.local/share/winetricks/postinstall
.
After winetricks installs title xyz
, it sources the file named $WINETRICKS_POST/xyz/xyz-postinstall.sh
(if it exists).
That script can refer to winetricks Variables and Functions like $WINETRICKS_POST
, $W_PROGRAMS_X86_UNIX
, w_ahk_do
, etc.
Example: in Zoo Tycoon 2, you might want to have the postinstall script transcode the .wma files into .mp3 so the game can play them without having to install Windows Media.