Installer vortex-mod-manager-2-windows-version

该脚本仅供阅读,不能直接用来在Wine游戏助手中安装游戏。
要通过命令安装游戏,请下载完整脚本
安装命令:/opt/apps/net.winegame.client/files/bin/winegame -i ./xxx.json

files:
- setup: https://file.winegame.net/games/vortex-mod-manager/vortex-setup-1.4.15.exe
- symlinks_setup: https://file.winegame.net/games/vortex-mod-manager/vortex-symlinks.sh
- downloads_handler: https://file.winegame.net/games/vortex-mod-manager/vortex-downloads-handler.desktop
game:
  arch: win64
  exe: drive_c/Program Files/Black Tree Gaming Ltd/Vortex/Vortex.exe
  prefix: $GAMEDIR
installer:
- copy:
    dst: $GAMEDIR/config_scripts
    src: symlinks_setup
- chmodx: $GAMEDIR/config_scripts/vortex-symlinks.sh
- copy:
    dst: $HOME/.local/share/applications
    src: downloads_handler
- chmodx: $HOME/.local/share/applications/vortex-downloads-handler.desktop
- execute:
    file: $GAMEDIR/config_scripts/vortex-symlinks.sh
- task:
    app: win10 corefonts cjkfonts
    description: 安装字体
    name: winetricks
    prefix: $GAMEDIR
- execute:
    command: |
      export LANG=en_US.UTF-8
      export LANGUAGE=en_US
      export WINEPREFIX="$GAMEDIR"
      if [ "$WINE" = "" ]; then
          export WINE="$WINEBIN"
      fi
      if [ "$WINE" = "" ]; then
          export WINE="$HOME/.local/share/net.winegame.client/runners/wine/lutris-7.2-2-x86_64/bin/wine"
      fi
      if [ "$WINETRICKS" = "" ]; then
          export WINETRICKS="$HOME/.local/share/net.winegame.client/runtime/winetricks/winetricks"
      fi
      "$WINETRICKS" dotnet48
    description: 手动安装 .NET 4.8(需要手动点击下一步)
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Bethesda Softworks\Skyrim Special
      Edition
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\skyrim special edition
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Valve\Steam\Apps\489830
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\skyrim special edition
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Bethesda Softworks\Skyrim
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\skyrim
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Valve\Steam\Apps\72850
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\skyrim
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Bethesda Softworks\Oblivion
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\oblivion
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Valve\Steam\Apps\22330
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\oblivion
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Bethesda Softworks\Fallout 4
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\fallout 4
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Valve\Steam\Apps\377160
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\fallout 4
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Bethesda Softworks\Fallout 3 goty
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\Fallout 3 goty
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Valve\Steam\Apps\22370
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\Fallout 3 goty
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Bethesda Softworks\Fallout 3
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\Fallout 3
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Valve\Steam\Apps\22300
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\Fallout 3
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Bethesda Softworks\FalloutNV
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\Fallout New Vegas
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Valve\Steam\Apps\22380
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\Fallout New Vegas
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Bethesda Softworks\Morrowind
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\Morrowind
- task:
    key: Installed Path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Valve\Steam\Apps\22320
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\program files (x86)\\steam\\steamapps\\common\\Morrowind
- input_menu:
    description: "MANUAL STEPS REQUIRED:\n\n Vortex is tested and guaranteed to have\
      \ basic functionality working with the version supplied in this installer. Updates\
      \ have been shown to break things very often.\n\n In order to keep Vortex from\
      \ updating automatically, please follow these steps:\n 1. Disconnect from the\
      \ internet NOW to keep Vortex from updating on its first launch;\n 2. After\
      \ the first launch, go to 'Settings > Vortex > Update' and select the option\
      \ 'No automatic updates';\n 3. Close Vortex and reconnect to the internet; "
    options:
    - waiting: Click here after reading the instructions
    - proceed: I have disconnected, continue to the first launch
    preselect: waiting
- task:
    executable: setup
    name: wineexec
    prefix: $GAMEDIR
wine:
  dxvk: true
  version: lutris-7.2-2-x86_64
{
  "files": [
    {
      "setup": "https://file.winegame.net/games/vortex-mod-manager/vortex-setup-1.4.15.exe"
    },
    {
      "symlinks_setup": "https://file.winegame.net/games/vortex-mod-manager/vortex-symlinks.sh"
    },
    {
      "downloads_handler": "https://file.winegame.net/games/vortex-mod-manager/vortex-downloads-handler.desktop"
    }
  ],
  "game": {
    "arch": "win64",
    "exe": "drive_c/Program Files/Black Tree Gaming Ltd/Vortex/Vortex.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "copy": {
        "dst": "$GAMEDIR/config_scripts",
        "src": "symlinks_setup"
      }
    },
    {
      "chmodx": "$GAMEDIR/config_scripts/vortex-symlinks.sh"
    },
    {
      "copy": {
        "dst": "$HOME/.local/share/applications",
        "src": "downloads_handler"
      }
    },
    {
      "chmodx": "$HOME/.local/share/applications/vortex-downloads-handler.desktop"
    },
    {
      "execute": {
        "file": "$GAMEDIR/config_scripts/vortex-symlinks.sh"
      }
    },
    {
      "task": {
        "app": "win10 corefonts cjkfonts",
        "description": "\u5b89\u88c5\u5b57\u4f53",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "execute": {
        "command": "export LANG=en_US.UTF-8\nexport LANGUAGE=en_US\nexport WINEPREFIX=\"$GAMEDIR\"\nif [ \"$WINE\" = \"\" ]; then\n    export WINE=\"$WINEBIN\"\nfi\nif [ \"$WINE\" = \"\" ]; then\n    export WINE=\"$HOME/.local/share/net.winegame.client/runners/wine/lutris-7.2-2-x86_64/bin/wine\"\nfi\nif [ \"$WINETRICKS\" = \"\" ]; then\n    export WINETRICKS=\"$HOME/.local/share/net.winegame.client/runtime/winetricks/winetricks\"\nfi\n\"$WINETRICKS\" dotnet48\n",
        "description": "\u624b\u52a8\u5b89\u88c5 .NET 4.8\uff08\u9700\u8981\u624b\u52a8\u70b9\u51fb\u4e0b\u4e00\u6b65\uff09"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Bethesda Softworks\\Skyrim Special Edition",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\skyrim special edition"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Valve\\Steam\\Apps\\489830",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\skyrim special edition"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Bethesda Softworks\\Skyrim",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\skyrim"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Valve\\Steam\\Apps\\72850",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\skyrim"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Bethesda Softworks\\Oblivion",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\oblivion"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Valve\\Steam\\Apps\\22330",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\oblivion"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Bethesda Softworks\\Fallout 4",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\fallout 4"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Valve\\Steam\\Apps\\377160",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\fallout 4"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Bethesda Softworks\\Fallout 3 goty",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\Fallout 3 goty"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Valve\\Steam\\Apps\\22370",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\Fallout 3 goty"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Bethesda Softworks\\Fallout 3",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\Fallout 3"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Valve\\Steam\\Apps\\22300",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\Fallout 3"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Bethesda Softworks\\FalloutNV",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\Fallout New Vegas"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Valve\\Steam\\Apps\\22380",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\Fallout New Vegas"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Bethesda Softworks\\Morrowind",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\Morrowind"
      }
    },
    {
      "task": {
        "key": "Installed Path",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Valve\\Steam\\Apps\\22320",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\program files (x86)\\\\steam\\\\steamapps\\\\common\\\\Morrowind"
      }
    },
    {
      "input_menu": {
        "description": "MANUAL STEPS REQUIRED:\n\n Vortex is tested and guaranteed to have basic functionality working with the version supplied in this installer. Updates have been shown to break things very often.\n\n In order to keep Vortex from updating automatically, please follow these steps:\n 1. Disconnect from the internet NOW to keep Vortex from updating on its first launch;\n 2. After the first launch, go to 'Settings > Vortex > Update' and select the option 'No automatic updates';\n 3. Close Vortex and reconnect to the internet; ",
        "options": [
          {
            "waiting": "Click here after reading the instructions"
          },
          {
            "proceed": "I have disconnected, continue to the first launch"
          }
        ],
        "preselect": "waiting"
      }
    },
    {
      "task": {
        "executable": "setup",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    }
  ],
  "wine": {
    "dxvk": true,
    "version": "lutris-7.2-2-x86_64"
  }
}
返回游戏