[Linux] Install your GOG Windows version on Debian/Ubuntu

vv222vv222 Posts: 10
Hello fellow Debian users, Ubuntu lovers and Mint freaks!

Here you’ll find a script allowing you to turn your GOG-provided .exe installer of Torchlight into a .deb package, allowing to install it through DPKG and remove it through any APT front-end (apt-get, aptitude, synaptic, etc.).

First thing first, here you can download the script:
GOG release 2.0.0.12: http://www.dotslashplay.it/scripts/play ... .0.0.12.sh
(updated on 2015-08-07)

usage instructions

1. Download the script, and put in a same directory the script and the GOG installer (setup_torchlight_2.0.0.12.exe);

2. Check the script dependencies. To run, this script needs the following packages to be installed on your system:
fakeroot, innoextract, icoutils

3. Open a terminal in the directory containing the script, then run the script via the following command:
sh ./play-torchlight_gog-2.0.0.12.sh

That’s it! The script will take a couple minutes to work its magic, and end by giving you the command to launch as root to install the freshly built .deb package.


advanced usage


Any return, be it a bug report, a suggestion, a request, a demand for clarification, an insult or a simple "thank you" is welcome in this thread.

I hope you’ll enjoy the comfort provided by this script as much as I enjoyed writing and tweaking it ;)
Have fun, and see you in the Orden Mines!

Comments

  • vv222vv222 Posts: 10
    edited August 2015
    If you renamed your GOG installer, the script will not find it automatically, you’ll have to give it the path to the installer as an argument. This can allow you to run the script without the need to copy the installer around.
    Here is an example:
    sh ./play-torchlight_gog-2.0.0.12.sh ~/Downloads/setup_torchlight_2.0.0.12.exe
    

    You can set different options while running this script to define some of its behaviours. Here comes the list of these options, with the default option in bold characters.

    --checksum=md5,none
    By default, the script will check the installer integrity through md5sum before processing it. If you want to bypass this check for any reason, set this option to 'none' while launching the script:
    sh ./play-torchlight_gog-2.0.0.12.sh --checksum=none
    

    --compression=none,gzip,xz
    By default, the final .deb package is built without compression to speed up the process. You can use gzip or xz compression by setting this option to the adequate value:
    sh ./play-torchlight_gog-2.0.0.12.sh --compression=xz
    

    --prefix=/usr/local,any absolute path
    By default, the .deb package will install the game data under /usr/local. If you want to install it under another path, you can by setting this option to the relevant path. Only an absolute path can be set this way.
    sh ./play-torchlight_gog-2.0.0.12.sh --prefix=/opt/torchlight
    
  • keithabrownkeithabrown Posts: 162
    It would be nice if Runic would provide the native version to somewhere other than the Ubuntu Software Center already. Especially now that some versions of Ubuntu are removing the Software Center. It is stupid that users are forced to use wine when native versions exist.
  • vv222vv222 Posts: 10
    Script updated with a more intuitive way to set options.
    Run the following command to get a list of them:
    sh ./play-torchlight_gog-2.0.0.12.sh --help
    
Sign In or Register to comment.