Installer torchlight-humble

This script is for reference only and can't be directly used to install the game in the Lutris client. To install the game, download the full script.

files:
- game: 'N/A: Please select the .sh install file downloaded from humblebundle.com'
game:
  exe: $GAMEDIR/start.sh
installer:
- execute:
    args: -u -r -l -d $GAMEDIR -b $GAMEDIR --nox11
    file: $game
- execute:
    args: --tar xvf -C $CACHE
    file: $game
- execute:
    command: "if (uname -m | grep \"64\"); then\n arch=\"x86_64\";\nelse\n arch=\"\
      x86\";\nfi;\n\"$CACHE/bin/linux/$arch/libc.so.6/lzma\" d \"$CACHE/subarch\"\
      \ - | tar xvf - -C \"$CACHE/\" &&\n\"$CACHE/bin/linux/$arch/libc.so.6/lzma\"\
      \ d \"$CACHE/deps/SDL2/SDL2_files_linux_$arch\" - | tar xvf - -C \"$GAMEDIR/Torchlight/\"\
      \n"
- write_file:
    content: "#!/bin/sh\nif (uname -m | grep \"64\"); then\n arch=\"x86_64\";\nelse\n\
      \ arch=\"x86\";\nfi;\n./Torchlight/Torchlight.bin.$arch\n"
    file: $GAMEDIR/start.sh
- chmodx: $GAMEDIR/start.sh
{
  "files": [
    {
      "game": "N/A: Please select the .sh install file downloaded from humblebundle.com"
    }
  ],
  "game": {
    "exe": "$GAMEDIR/start.sh"
  },
  "installer": [
    {
      "execute": {
        "args": "-u -r -l -d $GAMEDIR -b $GAMEDIR --nox11",
        "file": "$game"
      }
    },
    {
      "execute": {
        "args": "--tar xvf -C $CACHE",
        "file": "$game"
      }
    },
    {
      "execute": {
        "command": "if (uname -m | grep \"64\"); then\n arch=\"x86_64\";\nelse\n arch=\"x86\";\nfi;\n\"$CACHE/bin/linux/$arch/libc.so.6/lzma\" d \"$CACHE/subarch\" - | tar xvf - -C \"$CACHE/\" &&\n\"$CACHE/bin/linux/$arch/libc.so.6/lzma\" d \"$CACHE/deps/SDL2/SDL2_files_linux_$arch\" - | tar xvf - -C \"$GAMEDIR/Torchlight/\"\n"
      }
    },
    {
      "write_file": {
        "content": "#!/bin/sh\nif (uname -m | grep \"64\"); then\n arch=\"x86_64\";\nelse\n arch=\"x86\";\nfi;\n./Torchlight/Torchlight.bin.$arch\n",
        "file": "$GAMEDIR/start.sh"
      }
    },
    {
      "chmodx": "$GAMEDIR/start.sh"
    }
  ]
}
Back to game