Installer anvil-of-dawn-windows-gog-v2

files:
- game: N/A:Select GOG installer
- inno: https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz
- GUS: https://raw.githubusercontent.com/appoloin/WfW/master/GUS_external_files.zip
game:
  main_file: $GAMEDIR/anvil.conf
installer:
- write_file:
    content: '#!/bin/bash

      src=$1

      dst=$2

      find "$src" -maxdepth 1  -type f \( -iname "*.dat" -o -iname "*.exe" -o -iname
      "*.bat" -o -iname "*.BNK" -o -iname "*.COM" -o -iname "*.386" -o -iname "*.CFG"
      -o -iname "PATCH*" -o -iname "README.*" -o -iname "*.INI" -o -iname "TEST.*"  \)
      -exec cp {} "$dst" \;'
    file: $CACHE/selectcopy.sh
- chmodx: $CACHE/selectcopy.sh
- extract:
    dst: $CACHE
    file: $inno
- execute:
    args: -I app -d "$CACHE" "$game"
    file: $CACHE/innoextract
- extract:
    dst: $GAMEDIR/ULTRASND
    file: $GUS
- execute:
    args: $GAMEDIR/anvil
    file: mkdir
- copy:
    dst: $GAMEDIR
    src: $CACHE/app/Anvil of Dawn - Manual.pdf
- copy:
    dst: $GAMEDIR/anvil/DATA
    src: $CACHE/app/DATA
- execute:
    args: $CACHE/app $GAMEDIR/anvil
    file: $CACHE/selectcopy.sh
- write_file:
    content: '[gus]

      gus      = true

      ultradir = C:\ULTRASND

      [cpu]

      core=dynamic

      cputype=dynamic

      cycles=35000

      [sdl]

      sensitivity=10

      fullresolution=desktop

      windowresolution=original

      fullscreen=true

      output=opengl

      [render]

      aspect=true

      scaler=normal2x



      [autoexec]

      mount C "$GAMEDIR" -t dir

      imgmount D "$GAMEDIR/anvil/Anvil.dat" -t iso -fs iso

      C:

      cd anvil

      cls

      ECHO OFF

      goto launcher

      :launcher

      cls

      ECHO  -----------------------------------------------------

      ECHO                      Anvil of Dawn

      ECHO  -----------------------------------------------------

      ECHO   1) Play Game

      ECHO   2) Play Game with Gravis Ultrasound

      ECHO   3) Setup

      ECHO  -----------------------------------------------------

      ECHO   4) Exit Program

      ECHO  -----------------------------------------------------

      choice /c1234 /s Which program do you want to run? [1-4]: /n

      if errorlevel 4 goto exit

      if errorlevel 3 goto setup

      if errorlevel 2 goto gravis

      if errorlevel 1 goto game


      :game

      cls

      anvil

      goto exit


      :gravis

      cls

      GRAVIS.BAT

      goto exit


      :setup

      cls

      setup.exe

      goto launcher


      :exit

      exit'
    file: $GAMEDIR/anvil.conf
description: null
game_slug: anvil-of-dawn
gogslug: anvil_of_dawn
humblestoreid: ''
installer_slug: anvil-of-dawn-windows-gog-v2
name: Anvil of Dawn
notes: ''
runner: dosbox
script:
  files:
  - game: N/A:Select GOG installer
  - inno: https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz
  - GUS: https://raw.githubusercontent.com/appoloin/WfW/master/GUS_external_files.zip
  game:
    main_file: $GAMEDIR/anvil.conf
  installer:
  - write_file:
      content: '#!/bin/bash

        src=$1

        dst=$2

        find "$src" -maxdepth 1  -type f \( -iname "*.dat" -o -iname "*.exe" -o -iname
        "*.bat" -o -iname "*.BNK" -o -iname "*.COM" -o -iname "*.386" -o -iname "*.CFG"
        -o -iname "PATCH*" -o -iname "README.*" -o -iname "*.INI" -o -iname "TEST.*"  \)
        -exec cp {} "$dst" \;'
      file: $CACHE/selectcopy.sh
  - chmodx: $CACHE/selectcopy.sh
  - extract:
      dst: $CACHE
      file: $inno
  - execute:
      args: -I app -d "$CACHE" "$game"
      file: $CACHE/innoextract
  - extract:
      dst: $GAMEDIR/ULTRASND
      file: $GUS
  - execute:
      args: $GAMEDIR/anvil
      file: mkdir
  - copy:
      dst: $GAMEDIR
      src: $CACHE/app/Anvil of Dawn - Manual.pdf
  - copy:
      dst: $GAMEDIR/anvil/DATA
      src: $CACHE/app/DATA
  - execute:
      args: $CACHE/app $GAMEDIR/anvil
      file: $CACHE/selectcopy.sh
  - write_file:
      content: '[gus]

        gus      = true

        ultradir = C:\ULTRASND

        [cpu]

        core=dynamic

        cputype=dynamic

        cycles=35000

        [sdl]

        sensitivity=10

        fullresolution=desktop

        windowresolution=original

        fullscreen=true

        output=opengl

        [render]

        aspect=true

        scaler=normal2x



        [autoexec]

        mount C "$GAMEDIR" -t dir

        imgmount D "$GAMEDIR/anvil/Anvil.dat" -t iso -fs iso

        C:

        cd anvil

        cls

        ECHO OFF

        goto launcher

        :launcher

        cls

        ECHO  -----------------------------------------------------

        ECHO                      Anvil of Dawn

        ECHO  -----------------------------------------------------

        ECHO   1) Play Game

        ECHO   2) Play Game with Gravis Ultrasound

        ECHO   3) Setup

        ECHO  -----------------------------------------------------

        ECHO   4) Exit Program

        ECHO  -----------------------------------------------------

        choice /c1234 /s Which program do you want to run? [1-4]: /n

        if errorlevel 4 goto exit

        if errorlevel 3 goto setup

        if errorlevel 2 goto gravis

        if errorlevel 1 goto game


        :game

        cls

        anvil

        goto exit


        :gravis

        cls

        GRAVIS.BAT

        goto exit


        :setup

        cls

        setup.exe

        goto launcher


        :exit

        exit'
      file: $GAMEDIR/anvil.conf
slug: anvil-of-dawn-windows-gog-v2
steamid: null
version: Windows GOG v2
year: 1995
{
  "game_slug": "anvil-of-dawn",
  "version": "Windows GOG v2",
  "description": null,
  "notes": "",
  "name": "Anvil of Dawn",
  "year": 1995,
  "steamid": null,
  "gogslug": "anvil_of_dawn",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "anvil-of-dawn-windows-gog-v2",
  "installer_slug": "anvil-of-dawn-windows-gog-v2",
  "script": {
    "files": [
      {
        "game": "N/A:Select GOG installer"
      },
      {
        "inno": "https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz"
      },
      {
        "GUS": "https://raw.githubusercontent.com/appoloin/WfW/master/GUS_external_files.zip"
      }
    ],
    "game": {
      "main_file": "$GAMEDIR/anvil.conf"
    },
    "installer": [
      {
        "write_file": {
          "content": "#!/bin/bash\nsrc=$1\ndst=$2\nfind \"$src\" -maxdepth 1  -type f \\( -iname \"*.dat\" -o -iname \"*.exe\" -o -iname \"*.bat\" -o -iname \"*.BNK\" -o -iname \"*.COM\" -o -iname \"*.386\" -o -iname \"*.CFG\" -o -iname \"PATCH*\" -o -iname \"README.*\" -o -iname \"*.INI\" -o -iname \"TEST.*\"  \\) -exec cp {} \"$dst\" \\;",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "chmodx": "$CACHE/selectcopy.sh"
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "$inno"
        }
      },
      {
        "execute": {
          "args": "-I app -d \"$CACHE\" \"$game\"",
          "file": "$CACHE/innoextract"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/ULTRASND",
          "file": "$GUS"
        }
      },
      {
        "execute": {
          "args": "$GAMEDIR/anvil",
          "file": "mkdir"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/app/Anvil of Dawn - Manual.pdf"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/anvil/DATA",
          "src": "$CACHE/app/DATA"
        }
      },
      {
        "execute": {
          "args": "$CACHE/app $GAMEDIR/anvil",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "write_file": {
          "content": "[gus]\ngus      = true\nultradir = C:\\ULTRASND\n[cpu]\ncore=dynamic\ncputype=dynamic\ncycles=35000\n[sdl]\nsensitivity=10\nfullresolution=desktop\nwindowresolution=original\nfullscreen=true\noutput=opengl\n[render]\naspect=true\nscaler=normal2x\n\n\n[autoexec]\nmount C \"$GAMEDIR\" -t dir\nimgmount D \"$GAMEDIR/anvil/Anvil.dat\" -t iso -fs iso\nC:\ncd anvil\ncls\nECHO OFF\ngoto launcher\n:launcher\ncls\nECHO  -----------------------------------------------------\nECHO                      Anvil of Dawn\nECHO  -----------------------------------------------------\nECHO   1) Play Game\nECHO   2) Play Game with Gravis Ultrasound\nECHO   3) Setup\nECHO  -----------------------------------------------------\nECHO   4) Exit Program\nECHO  -----------------------------------------------------\nchoice /c1234 /s Which program do you want to run? [1-4]: /n\nif errorlevel 4 goto exit\nif errorlevel 3 goto setup\nif errorlevel 2 goto gravis\nif errorlevel 1 goto game\n\n:game\ncls\nanvil\ngoto exit\n\n:gravis\ncls\nGRAVIS.BAT\ngoto exit\n\n:setup\ncls\nsetup.exe\ngoto launcher\n\n:exit\nexit",
          "file": "$GAMEDIR/anvil.conf"
        }
      }
    ]
  }
}
Back to game