Installer genshin-impact-340

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:
- patch: https://github.com/zeroday0619/MyLittleLutrisScripts/raw/master/OBSOLETE%20NO%20MORE%20MAINTAINED/Genshin%20Impact/gi_patch_340.zip
- giclient:
    filename: GenshinImpact_install_mihoyo.exe
    url: https://ys-api-os.mihoyo.com/event/download_porter/link/ys_global/genshinimpactpc/default
- menubat: https://github.com/zeroday0619/MyLittleLutrisScripts/raw/master/OBSOLETE%20NO%20MORE%20MAINTAINED/Genshin%20Impact/gi_menu.bat
- menush: https://github.com/zeroday0619/MyLittleLutrisScripts/raw/master/OBSOLETE%20NO%20MORE%20MAINTAINED/Genshin%20Impact/gi_patch.sh
- bmp: https://github.com/zeroday0619/MyLittleLutrisScripts/raw/master/OBSOLETE%20NO%20MORE%20MAINTAINED/Genshin%20Impact/gi.bmp
game:
  args: c:\\gi_menu.bat
  exe: drive_c/windows/syswow64/wineconsole.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    install_gecko: false
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: vcrun2019 corefonts
    name: winetricks
    prefix: $GAMEDIR
- task:
    args: /desktop=GI,1280x900 $giclient
    description: Installing Genshin Impact...Close Geshin Impact client once finished
      download, do not execute the game yet.
    executable: $GAMEDIR/drive_c/windows/explorer.exe
    name: wineexec
- copy:
    dst: $GAMEDIR/drive_c
    src: menubat
- chmodx: menush
- copy:
    dst: $GAMEDIR/drive_c
    src: menush
- copy:
    dst: $GAMEDIR/drive_c
    src: bmp
- task:
    arch: win64
    key: background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- task:
    arch: win64
    key: wallpaper
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Desktop\
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\gi.bmp
- extract:
    dst: $GAMEDIR/drive_c/gi_patch
    file: patch
    format: zip
- chmodx: $GAMEDIR/drive_c/gi_patch/ex_apatch.sh
- chmodx: $GAMEDIR/drive_c/gi_patch/ex_rpatch.sh
require-binaries: xdelta3, xterm, zenity
system:
  manual_command: $GAMEDIR/drive_c/gi_patch.sh
wine:
  Desktop: true
{
  "files": [
    {
      "patch": "https://github.com/zeroday0619/MyLittleLutrisScripts/raw/master/OBSOLETE%20NO%20MORE%20MAINTAINED/Genshin%20Impact/gi_patch_340.zip"
    },
    {
      "giclient": {
        "filename": "GenshinImpact_install_mihoyo.exe",
        "url": "https://ys-api-os.mihoyo.com/event/download_porter/link/ys_global/genshinimpactpc/default"
      }
    },
    {
      "menubat": "https://github.com/zeroday0619/MyLittleLutrisScripts/raw/master/OBSOLETE%20NO%20MORE%20MAINTAINED/Genshin%20Impact/gi_menu.bat"
    },
    {
      "menush": "https://github.com/zeroday0619/MyLittleLutrisScripts/raw/master/OBSOLETE%20NO%20MORE%20MAINTAINED/Genshin%20Impact/gi_patch.sh"
    },
    {
      "bmp": "https://github.com/zeroday0619/MyLittleLutrisScripts/raw/master/OBSOLETE%20NO%20MORE%20MAINTAINED/Genshin%20Impact/gi.bmp"
    }
  ],
  "game": {
    "args": "c:\\\\gi_menu.bat",
    "exe": "drive_c/windows/syswow64/wineconsole.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "arch": "win64",
        "install_gecko": false,
        "install_mono": false,
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "app": "vcrun2019 corefonts",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "args": "/desktop=GI,1280x900 $giclient",
        "description": "Installing Genshin Impact...Close Geshin Impact client once finished download, do not execute the game yet.",
        "executable": "$GAMEDIR/drive_c/windows/explorer.exe",
        "name": "wineexec"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c",
        "src": "menubat"
      }
    },
    {
      "chmodx": "menush"
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c",
        "src": "menush"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c",
        "src": "bmp"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "background",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0 0 0"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "wallpaper",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Desktop\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\gi.bmp"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/gi_patch",
        "file": "patch",
        "format": "zip"
      }
    },
    {
      "chmodx": "$GAMEDIR/drive_c/gi_patch/ex_apatch.sh"
    },
    {
      "chmodx": "$GAMEDIR/drive_c/gi_patch/ex_rpatch.sh"
    }
  ],
  "require-binaries": "xdelta3, xterm, zenity",
  "system": {
    "manual_command": "$GAMEDIR/drive_c/gi_patch.sh"
  },
  "wine": {
    "Desktop": true
  }
}
Back to game