Installer ascension-wow-linux-launcher

files:
- launcher:
    filename: ascension-launcher.AppImage
    url: https://api.ascension.gg/api/bootstrap/launcher/latest?unix
- mono:
    filename: wine-mono.msi
    url: https://dl.winehq.org/wine/wine-mono/7.1.1/wine-mono-7.1.1-x86.msi
game:
  exe: $GAMEDIR/updateAndRun.sh
  working_dir: $GAMEDIR
installer:
- input_menu:
    description: If you installed Project Ascension before, please remove the folder
      or symlink ~/.config/projectascension.
    options:
    - waiting: Click here to continue
    - continue: I have removed previous installations, continue with the installation
    preselect: waiting
- 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: launcher
- 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
- task:
    arch: win32
    description: Install wine mono
    executable: mono
    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
description: Installer for the Linux Launcher of Project Ascension. The installer
  creates a small update/start script to automatically update the launcher if a new
  version is published.
game_slug: ascension-wow
gogslug: ''
humblestoreid: ''
installer_slug: ascension-wow-linux-launcher
name: Ascension WoW
notes: "**INSTALL THE DEPENDENCIES FIRST**\r\n1.) Update your system first.\r\n2.)\
  \ Install the dependencies: wine, winetricks, mono or mono-complete, grep, wget\
  \ and zenity\r\n3.) Optional: Instructions for Vulkan support: https://github.com/lutris/lutris/wiki/Installing-drivers\r\
  \n4.) If you have no Lutris wine version installed, please do so before you start\
  \ the installation. This is to prevent an error that Lutris can't find a wine executable\
  \ when the wine runner is only used indirectly in the installation script. Just\
  \ go to the \"Manage Versions\" dialog of the wine runner and install the latest\
  \ version.\r\n\r\n**CONFIGURE LUTRIS (RECOMMENDED)**\r\nTo minimize error sources\
  \ it is recommended to change some of the wine runner settings before installing\
  \ the game. After the installation you can revert these changes. To change some\
  \ of these settings you need to have enabled the \"show advanced options\" checkbox.\r\
  \n1.) Enable the setting \"use system winetricks\" to minimize winetricks errors\
  \ during the installation because your system version is most likely newer than\
  \ the Lutris version."
runner: linux
script:
  files:
  - launcher:
      filename: ascension-launcher.AppImage
      url: https://api.ascension.gg/api/bootstrap/launcher/latest?unix
  - mono:
      filename: wine-mono.msi
      url: https://dl.winehq.org/wine/wine-mono/7.1.1/wine-mono-7.1.1-x86.msi
  game:
    exe: $GAMEDIR/updateAndRun.sh
    working_dir: $GAMEDIR
  installer:
  - input_menu:
      description: If you installed Project Ascension before, please remove the folder
        or symlink ~/.config/projectascension.
      options:
      - waiting: Click here to continue
      - continue: I have removed previous installations, continue with the installation
      preselect: waiting
  - 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: launcher
  - 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
  - task:
      arch: win32
      description: Install wine mono
      executable: mono
      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
slug: ascension-wow-linux-launcher
steamid: null
version: Linux Launcher
year: 2004
{
  "game_slug": "ascension-wow",
  "version": "Linux Launcher",
  "description": "Installer for the Linux Launcher of Project Ascension. The installer creates a small update/start script to automatically update the launcher if a new version is published.",
  "notes": "**INSTALL THE DEPENDENCIES FIRST**\r\n1.) Update your system first.\r\n2.) Install the dependencies: wine, winetricks, mono or mono-complete, grep, wget and zenity\r\n3.) Optional: Instructions for Vulkan support: https://github.com/lutris/lutris/wiki/Installing-drivers\r\n4.) If you have no Lutris wine version installed, please do so before you start the installation. This is to prevent an error that Lutris can't find a wine executable when the wine runner is only used indirectly in the installation script. Just go to the \"Manage Versions\" dialog of the wine runner and install the latest version.\r\n\r\n**CONFIGURE LUTRIS (RECOMMENDED)**\r\nTo minimize error sources it is recommended to change some of the wine runner settings before installing the game. After the installation you can revert these changes. To change some of these settings you need to have enabled the \"show advanced options\" checkbox.\r\n1.) Enable the setting \"use system winetricks\" to minimize winetricks errors during the installation because your system version is most likely newer than the Lutris version.",
  "name": "Ascension WoW",
  "year": 2004,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "linux",
  "slug": "ascension-wow-linux-launcher",
  "installer_slug": "ascension-wow-linux-launcher",
  "script": {
    "files": [
      {
        "launcher": {
          "filename": "ascension-launcher.AppImage",
          "url": "https://api.ascension.gg/api/bootstrap/launcher/latest?unix"
        }
      },
      {
        "mono": {
          "filename": "wine-mono.msi",
          "url": "https://dl.winehq.org/wine/wine-mono/7.1.1/wine-mono-7.1.1-x86.msi"
        }
      }
    ],
    "game": {
      "exe": "$GAMEDIR/updateAndRun.sh",
      "working_dir": "$GAMEDIR"
    },
    "installer": [
      {
        "input_menu": {
          "description": "If you installed Project Ascension before, please remove the folder or symlink ~/.config/projectascension.",
          "options": [
            {
              "waiting": "Click here to continue"
            },
            {
              "continue": "I have removed previous installations, continue with the installation"
            }
          ],
          "preselect": "waiting"
        }
      },
      {
        "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": "launcher"
        }
      },
      {
        "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"
        }
      },
      {
        "task": {
          "arch": "win32",
          "description": "Install wine mono",
          "executable": "mono",
          "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