Installer motorhome-nwjs

files:
- gamezip: N/A:Select the Motorhome ZIP file
- nwjs: https://dl.nwjs.io/v0.48.4/nwjs-v0.48.4-linux-x64.tar.gz
game:
  exe: nw
  working_dir: $GAMEDIR
installer:
- execute:
    command: "set -e\nmkdir -p \"$CACHE/gamezip_out\"\nunzip -q -O shift-jis \"$gamezip\"\
      \ -d \"$CACHE/gamezip_out\"\n\n# The main dir is the one holding package.json!\n\
      src_dir=$(find \"$CACHE/gamezip_out\" -mindepth 2 -maxdepth 3 -name package.json\
      \ -printf '%h\\n' | head -n1)\nif [ -z \"$src_dir\" ]; then\n  echo \"Could\
      \ not find the game directory inside the ZIP\" >&2\n  exit 1\nfi\n\nmkdir -p\
      \ \"$GAMEDIR\"\ncp -a \"$src_dir\"/. \"$GAMEDIR\"/\n"
    description: Extracting the game files with Shift-JIS. This will take a while...
- extract:
    description: Extracting NW.js...
    dst: $CACHE/nwjs_out
    file: nwjs
- merge:
    dst: $GAMEDIR
    src: $CACHE/nwjs_out
- chmodx: $GAMEDIR/nw
require-binaries: unzip
description: Uses unzip -O shift-jis to extract the zip file, since it has filenames
  in Japanese
game_slug: motorhome
gogslug: ''
humblestoreid: ''
installer_slug: motorhome-nwjs
name: Motorhome
notes: The game will start in Japanese, but you can select English once you start
  a new game.
runner: linux
script:
  files:
  - gamezip: N/A:Select the Motorhome ZIP file
  - nwjs: https://dl.nwjs.io/v0.48.4/nwjs-v0.48.4-linux-x64.tar.gz
  game:
    exe: nw
    working_dir: $GAMEDIR
  installer:
  - execute:
      command: "set -e\nmkdir -p \"$CACHE/gamezip_out\"\nunzip -q -O shift-jis \"\
        $gamezip\" -d \"$CACHE/gamezip_out\"\n\n# The main dir is the one holding\
        \ package.json!\nsrc_dir=$(find \"$CACHE/gamezip_out\" -mindepth 2 -maxdepth\
        \ 3 -name package.json -printf '%h\\n' | head -n1)\nif [ -z \"$src_dir\" ];\
        \ then\n  echo \"Could not find the game directory inside the ZIP\" >&2\n\
        \  exit 1\nfi\n\nmkdir -p \"$GAMEDIR\"\ncp -a \"$src_dir\"/. \"$GAMEDIR\"\
        /\n"
      description: Extracting the game files with Shift-JIS. This will take a while...
  - extract:
      description: Extracting NW.js...
      dst: $CACHE/nwjs_out
      file: nwjs
  - merge:
      dst: $GAMEDIR
      src: $CACHE/nwjs_out
  - chmodx: $GAMEDIR/nw
  require-binaries: unzip
slug: motorhome-nwjs
steamid: null
version: NW.js
year: 2023
{
  "game_slug": "motorhome",
  "version": "NW.js",
  "description": "Uses unzip -O shift-jis to extract the zip file, since it has filenames in Japanese",
  "notes": "The game will start in Japanese, but you can select English once you start a new game.",
  "name": "Motorhome",
  "year": 2023,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "linux",
  "slug": "motorhome-nwjs",
  "installer_slug": "motorhome-nwjs",
  "script": {
    "files": [
      {
        "gamezip": "N/A:Select the Motorhome ZIP file"
      },
      {
        "nwjs": "https://dl.nwjs.io/v0.48.4/nwjs-v0.48.4-linux-x64.tar.gz"
      }
    ],
    "game": {
      "exe": "nw",
      "working_dir": "$GAMEDIR"
    },
    "installer": [
      {
        "execute": {
          "command": "set -e\nmkdir -p \"$CACHE/gamezip_out\"\nunzip -q -O shift-jis \"$gamezip\" -d \"$CACHE/gamezip_out\"\n\n# The main dir is the one holding package.json!\nsrc_dir=$(find \"$CACHE/gamezip_out\" -mindepth 2 -maxdepth 3 -name package.json -printf '%h\\n' | head -n1)\nif [ -z \"$src_dir\" ]; then\n  echo \"Could not find the game directory inside the ZIP\" >&2\n  exit 1\nfi\n\nmkdir -p \"$GAMEDIR\"\ncp -a \"$src_dir\"/. \"$GAMEDIR\"/\n",
          "description": "Extracting the game files with Shift-JIS. This will take a while..."
        }
      },
      {
        "extract": {
          "description": "Extracting NW.js...",
          "dst": "$CACHE/nwjs_out",
          "file": "nwjs"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/nwjs_out"
        }
      },
      {
        "chmodx": "$GAMEDIR/nw"
      }
    ],
    "require-binaries": "unzip"
  }
}
Back to game