Installer crazy-machines-iso

files:
- iso: N/A:Select the game's ISO image file
game:
  exe: drive_c/Program Files (x86)/Crazy Machines/CrazyMachines.exe
  prefix: $GAMEDIR
installer:
- execute:
    command: mkdir -p $CACHE/disc && if command -v flatpak-spawn > /dev/null 2>&1;
      then flatpak-spawn --host pkexec mount -t iso9660 "$iso" $CACHE/disc; else pkexec
      mount -t iso9660 "$iso" $CACHE/disc; fi
- task:
    executable: $CACHE/disc/setup.exe
    name: wineexec
    prefix: $GAMEDIR
- execute:
    command: if command -v flatpak-spawn > /dev/null 2>&1; then flatpak-spawn --host
      pkexec umount $CACHE/disc; else pkexec umount $CACHE/disc; fi
description: ''
game_slug: crazy-machines
gogslug: ''
humblestoreid: ''
installer_slug: crazy-machines-iso
name: Crazy Machines
notes: The disc for this game is a hybrid Windows/macOS CD. Linux mounts the macOS
  partition by default, so this installer asks for the ISO, mounts the Windows partition
  and starts the installation from there.
runner: wine
script:
  files:
  - iso: N/A:Select the game's ISO image file
  game:
    exe: drive_c/Program Files (x86)/Crazy Machines/CrazyMachines.exe
    prefix: $GAMEDIR
  installer:
  - execute:
      command: mkdir -p $CACHE/disc && if command -v flatpak-spawn > /dev/null 2>&1;
        then flatpak-spawn --host pkexec mount -t iso9660 "$iso" $CACHE/disc; else
        pkexec mount -t iso9660 "$iso" $CACHE/disc; fi
  - task:
      executable: $CACHE/disc/setup.exe
      name: wineexec
      prefix: $GAMEDIR
  - execute:
      command: if command -v flatpak-spawn > /dev/null 2>&1; then flatpak-spawn --host
        pkexec umount $CACHE/disc; else pkexec umount $CACHE/disc; fi
slug: crazy-machines-iso
steamid: 18420
version: ISO
year: 2005
{
  "game_slug": "crazy-machines",
  "version": "ISO",
  "description": "",
  "notes": "The disc for this game is a hybrid Windows/macOS CD. Linux mounts the macOS partition by default, so this installer asks for the ISO, mounts the Windows partition and starts the installation from there.",
  "name": "Crazy Machines",
  "year": 2005,
  "steamid": 18420,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "crazy-machines-iso",
  "installer_slug": "crazy-machines-iso",
  "script": {
    "files": [
      {
        "iso": "N/A:Select the game's ISO image file"
      }
    ],
    "game": {
      "exe": "drive_c/Program Files (x86)/Crazy Machines/CrazyMachines.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "execute": {
          "command": "mkdir -p $CACHE/disc && if command -v flatpak-spawn > /dev/null 2>&1; then flatpak-spawn --host pkexec mount -t iso9660 \"$iso\" $CACHE/disc; else pkexec mount -t iso9660 \"$iso\" $CACHE/disc; fi"
        }
      },
      {
        "task": {
          "executable": "$CACHE/disc/setup.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "execute": {
          "command": "if command -v flatpak-spawn > /dev/null 2>&1; then flatpak-spawn --host pkexec umount $CACHE/disc; else pkexec umount $CACHE/disc; fi"
        }
      }
    ]
  }
}
Back to game