Installer ascension-wow-linux-launcher

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:
- starter:
    filename: ascension-launcher.AppImage
    url: https://api.ascension.gg/api/bootstrap/launcher/latest?unix
game:
  exe: $GAMEDIR/updateAndRun.sh
  working_dir: $GAMEDIR
installer:
- execute:
    command: rm -R $HOME/.config/projectascension
    description: Delete old symlink to game folder
- execute:
    command: ln -s $GAMEDIR $HOME/.config/projectascension
    description: Create symlink to game folder
- move:
    description: Copy game launcher to game folder
    dst: $GAMEDIR/ascension-launcher.AppImage
    src: starter
- chmodx: $GAMEDIR/ascension-launcher.AppImage
- write_file:
    content: '#!/bin/bash

      source currentLauncherVersion

      newVersion=$(curl https://api.ascension.gg/api/bootstrap/launcher | grep -oP
      ''"version":"\K.+?(?=")'' || echo "NO_CONNECTION")

      if [[ -z "$version" || ($version != $newVersion && "NO_CONNECTION" != $newVersion)
      ]];

      then

      echo "version=$newVersion" > currentLauncherVersion

      rm ascension-launcher.AppImage_old

      mv ascension-launcher.AppImage ascension-launcher.AppImage_old

      wget -O ascension-launcher.AppImage --progress=dot "https://api.ascension.gg/api/bootstrap/launcher/latest?unix"
      2>&1 | sed ''s/^.*\s\+\(.\+\)%\s\+\(.\+\)\s\+\(.\+\)\s*$/\1\n# Downloading at
      \2\/s ETA \3/'' | zenity --title="Update Launcher" --width=300 --progress --percentage=0
      --no-cancel --auto-close

      chmod u+x ascension-launcher.AppImage

      fi

      ./ascension-launcher.AppImage'
    description: Create update launcher script
    file: $GAMEDIR/updateAndRun.sh
- chmodx: $GAMEDIR/updateAndRun.sh
- execute:
    command: echo "version=$(curl https://api.ascension.gg/api/bootstrap/launcher
      | grep -oP '"version":"\K.+?(?=")')" > $GAMEDIR/currentLauncherVersion
    description: Fetch current launcher version
- task:
    arch: win32
    description: Create 32bit Wine prefix
    name: wine.create_prefix
    prefix: $GAMEDIR/WoW
- task:
    app: remove_mono
    arch: win32
    description: Remove preinstalled mono in Wine prefix
    name: wine.winetricks
    prefix: $GAMEDIR/WoW
- execute:
    command: curl -s https://api.github.com/repos/madewokherd/wine-mono/releases/latest
      | grep -oP '"browser_download_url":\s"\K(.*?\.msi)' | xargs wget -P $GAMEDIR
    description: Download latest wine mono installer
- execute:
    command: mv $GAMEDIR/wine-mono-*.msi $GAMEDIR/wine-mono-x86.msi
    description: Download latest wine mono installer
- task:
    arch: win32
    description: Install wine mono
    executable: $GAMEDIR/wine-mono-x86.msi
    name: wine.wineexec
    prefix: $GAMEDIR/WoW
- task:
    app: -f win10 ie8 corefonts dotnet48 vcrun2015
    arch: win32
    description: Install win10, ie8, corefonts, dotnet48 und vcrun2015 with winetricks
    name: wine.winetricks
    prefix: $GAMEDIR/WoW
- input_menu:
    description: Do you want to install DXVK?
    id: dxvk
    options:
    - dxvk: 'Yes'
    - good: 'No'
    preselect: good
- task:
    app: $INPUT_dxvk
    arch: win32
    description: Install DXVK with winetricks
    name: wine.winetricks
    prefix: $GAMEDIR/WoW
require-binaries: wine, winetricks, grep, wget, zenity, mono | mono-complete
{
  "files": [
    {
      "starter": {
        "filename": "ascension-launcher.AppImage",
        "url": "https://api.ascension.gg/api/bootstrap/launcher/latest?unix"
      }
    }
  ],
  "game": {
    "exe": "$GAMEDIR/updateAndRun.sh",
    "working_dir": "$GAMEDIR"
  },
  "installer": [
    {
      "execute": {
        "command": "rm -R $HOME/.config/projectascension",
        "description": "Delete old symlink to game folder"
      }
    },
    {
      "execute": {
        "command": "ln -s $GAMEDIR $HOME/.config/projectascension",
        "description": "Create symlink to game folder"
      }
    },
    {
      "move": {
        "description": "Copy game launcher to game folder",
        "dst": "$GAMEDIR/ascension-launcher.AppImage",
        "src": "starter"
      }
    },
    {
      "chmodx": "$GAMEDIR/ascension-launcher.AppImage"
    },
    {
      "write_file": {
        "content": "#!/bin/bash\nsource currentLauncherVersion\nnewVersion=$(curl https://api.ascension.gg/api/bootstrap/launcher | grep -oP '\"version\":\"\\K.+?(?=\")' || echo \"NO_CONNECTION\")\nif [[ -z \"$version\" || ($version != $newVersion && \"NO_CONNECTION\" != $newVersion) ]];\nthen\necho \"version=$newVersion\" > currentLauncherVersion\nrm ascension-launcher.AppImage_old\nmv ascension-launcher.AppImage ascension-launcher.AppImage_old\nwget -O ascension-launcher.AppImage --progress=dot \"https://api.ascension.gg/api/bootstrap/launcher/latest?unix\" 2>&1 | sed 's/^.*\\s\\+\\(.\\+\\)%\\s\\+\\(.\\+\\)\\s\\+\\(.\\+\\)\\s*$/\\1\\n# Downloading at \\2\\/s ETA \\3/' | zenity --title=\"Update Launcher\" --width=300 --progress --percentage=0 --no-cancel --auto-close\nchmod u+x ascension-launcher.AppImage\nfi\n./ascension-launcher.AppImage",
        "description": "Create update launcher script",
        "file": "$GAMEDIR/updateAndRun.sh"
      }
    },
    {
      "chmodx": "$GAMEDIR/updateAndRun.sh"
    },
    {
      "execute": {
        "command": "echo \"version=$(curl https://api.ascension.gg/api/bootstrap/launcher | grep -oP '\"version\":\"\\K.+?(?=\")')\" > $GAMEDIR/currentLauncherVersion",
        "description": "Fetch current launcher version"
      }
    },
    {
      "task": {
        "arch": "win32",
        "description": "Create 32bit Wine prefix",
        "name": "wine.create_prefix",
        "prefix": "$GAMEDIR/WoW"
      }
    },
    {
      "task": {
        "app": "remove_mono",
        "arch": "win32",
        "description": "Remove preinstalled mono in Wine prefix",
        "name": "wine.winetricks",
        "prefix": "$GAMEDIR/WoW"
      }
    },
    {
      "execute": {
        "command": "curl -s https://api.github.com/repos/madewokherd/wine-mono/releases/latest | grep -oP '\"browser_download_url\":\\s\"\\K(.*?\\.msi)' | xargs wget -P $GAMEDIR",
        "description": "Download latest wine mono installer"
      }
    },
    {
      "execute": {
        "command": "mv $GAMEDIR/wine-mono-*.msi $GAMEDIR/wine-mono-x86.msi",
        "description": "Download latest wine mono installer"
      }
    },
    {
      "task": {
        "arch": "win32",
        "description": "Install wine mono",
        "executable": "$GAMEDIR/wine-mono-x86.msi",
        "name": "wine.wineexec",
        "prefix": "$GAMEDIR/WoW"
      }
    },
    {
      "task": {
        "app": "-f win10 ie8 corefonts dotnet48 vcrun2015",
        "arch": "win32",
        "description": "Install win10, ie8, corefonts, dotnet48 und vcrun2015 with winetricks",
        "name": "wine.winetricks",
        "prefix": "$GAMEDIR/WoW"
      }
    },
    {
      "input_menu": {
        "description": "Do you want to install DXVK?",
        "id": "dxvk",
        "options": [
          {
            "dxvk": "Yes"
          },
          {
            "good": "No"
          }
        ],
        "preselect": "good"
      }
    },
    {
      "task": {
        "app": "$INPUT_dxvk",
        "arch": "win32",
        "description": "Install DXVK with winetricks",
        "name": "wine.winetricks",
        "prefix": "$GAMEDIR/WoW"
      }
    }
  ],
  "require-binaries": "wine, winetricks, grep, wget, zenity, mono | mono-complete"
}
Back to game