Installer 14-ff14-1-wine-71

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

files:
- setup: N/A:选择安装包(如FFXIV_20200710all_setup.exe)
- wineinit: https://file.winegame.net/games/common/wineinit.sh
game:
  exe: drive_c/Program Files/SNDA/FFXIV/FFXIVBoot.exe
  prefix: $GAMEDIR
installer:
- execute:
    command: bash "$wineinit" win32
    description: 下载字体和运行库
- task:
    arch: win32
    description: 创建32位Wine前缀
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    description: 解压CMD字体
    dst: $GAMEDIR/drive_c/windows/Fonts
    file: $HOME/.cache/wine/fonts/MicrosoftYaHeiMono.tar.gz
- task:
    description: 安装CMD字体
    filename: $GAMEDIR/drive_c/windows/Fonts/MicrosoftYaHeiMono.reg
    name: set_regedit_file
- execute:
    command: rm -f "$GAMEDIR/dosdevices/m::"; ln -sf "$HOME" "$GAMEDIR/dosdevices/m:"
    description: 添加主目录($HOME)为M盘
- task:
    app: arial cjkfonts
    arch: win32
    description: 安装字体...
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    app: xact xinput d3dx9 directx9 devenum quartz hosts win7 ie8 ole32 videomemorysize=default
    arch: win32
    description: |-
      安装运行库...
      如果卡住了请取消安装并重试。
      该阶段安装ie组件时可能会随机卡住。
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    arch: win32
    description: |-
      启动游戏安装程序
      ------------------------------
      请在安装程序中完成安装。
      注意,一定要安装到默认路径,不要安装到任何其他位置,否则程序会认为安装失败!
      如果弹出更新器界面,请直接关闭,不要点击“开始更新”,否则安装可能无法顺利结束。
    exclude_processes: ffxiv.exe ffxiv_dx11.exe FFXIVBoot.exe FFXIVRepair.exe uninst.exe
      LauncherUpdater.exe CrashSender.exe Launcher.exe SdoLoginComServer.exe sdologin.exe
      sdolplugin.exe unload.exe update.exe wkeplugin.exe
    executable: setup
    name: wineexec
    prefix: $GAMEDIR
- task:
    name: winekill
    prefix: $GAMEDIR
- execute:
    command: mkdir -p "$GAMEDIR/drive_c/Program Files/SNDA/FFXIV/game/My Games/FINAL
      FANTASY XIV - A Realm Reborn"
- execute:
    command: echo -e "<FINAL FANTASY XIV Config File>\n\n<Cutscene Settings>\nCutsceneMovieOpening
      1" > "$GAMEDIR/drive_c/Program Files/SNDA/FFXIV/game/My Games/FINAL FANTASY
      XIV - A Realm Reborn/FFXIV.cfg"
- execute:
    command: echo -e "<FINAL FANTASY XIV Boot Config File>\n\n<Version>\nBrowser 1"
      > "$GAMEDIR/drive_c/Program Files/SNDA/FFXIV/game/My Games/FINAL FANTASY XIV
      - A Realm Reborn/FFXIV_BOOT.cfg"
- task:
    arch: win32
    key: HideWineExports
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine
    prefix: $GAMEDIR
    type: REG_SZ
    value: Y
system:
  env:
    DXVK_HUD: compiler
    DXVK_STATE_CACHE_PATH: $GAMEDIR
    MESA_GL_VERSION_OVERRIDE: 4.4COMPAT
    STAGING_SHARED_MEMORY: 1
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
  pulse_latency: true
wine:
  dxvk: true
  esync: true
  overrides:
    winedbg.exe: disabled
  vkd3d: true
{
  "files": [
    {
      "setup": "N/A:\u9009\u62e9\u5b89\u88c5\u5305\uff08\u5982FFXIV_20200710all_setup.exe\uff09"
    },
    {
      "wineinit": "https://file.winegame.net/games/common/wineinit.sh"
    }
  ],
  "game": {
    "exe": "drive_c/Program Files/SNDA/FFXIV/FFXIVBoot.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "execute": {
        "command": "bash \"$wineinit\" win32",
        "description": "\u4e0b\u8f7d\u5b57\u4f53\u548c\u8fd0\u884c\u5e93"
      }
    },
    {
      "task": {
        "arch": "win32",
        "description": "\u521b\u5efa32\u4f4dWine\u524d\u7f00",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "description": "\u89e3\u538bCMD\u5b57\u4f53",
        "dst": "$GAMEDIR/drive_c/windows/Fonts",
        "file": "$HOME/.cache/wine/fonts/MicrosoftYaHeiMono.tar.gz"
      }
    },
    {
      "task": {
        "description": "\u5b89\u88c5CMD\u5b57\u4f53",
        "filename": "$GAMEDIR/drive_c/windows/Fonts/MicrosoftYaHeiMono.reg",
        "name": "set_regedit_file"
      }
    },
    {
      "execute": {
        "command": "rm -f \"$GAMEDIR/dosdevices/m::\"; ln -sf \"$HOME\" \"$GAMEDIR/dosdevices/m:\"",
        "description": "\u6dfb\u52a0\u4e3b\u76ee\u5f55($HOME)\u4e3aM\u76d8"
      }
    },
    {
      "task": {
        "app": "arial cjkfonts",
        "arch": "win32",
        "description": "\u5b89\u88c5\u5b57\u4f53...",
        "name": "winetricks",
        "prefix": "$GAMEDIR",
        "silent": true
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "app": "xact xinput d3dx9 directx9 devenum quartz hosts win7 ie8 ole32 videomemorysize=default",
        "arch": "win32",
        "description": "\u5b89\u88c5\u8fd0\u884c\u5e93...\n\u5982\u679c\u5361\u4f4f\u4e86\u8bf7\u53d6\u6d88\u5b89\u88c5\u5e76\u91cd\u8bd5\u3002\n\u8be5\u9636\u6bb5\u5b89\u88c5ie\u7ec4\u4ef6\u65f6\u53ef\u80fd\u4f1a\u968f\u673a\u5361\u4f4f\u3002",
        "name": "winetricks",
        "prefix": "$GAMEDIR",
        "silent": true
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win32",
        "description": "\u542f\u52a8\u6e38\u620f\u5b89\u88c5\u7a0b\u5e8f\n------------------------------\n\u8bf7\u5728\u5b89\u88c5\u7a0b\u5e8f\u4e2d\u5b8c\u6210\u5b89\u88c5\u3002\n\u6ce8\u610f\uff0c\u4e00\u5b9a\u8981\u5b89\u88c5\u5230\u9ed8\u8ba4\u8def\u5f84\uff0c\u4e0d\u8981\u5b89\u88c5\u5230\u4efb\u4f55\u5176\u4ed6\u4f4d\u7f6e\uff0c\u5426\u5219\u7a0b\u5e8f\u4f1a\u8ba4\u4e3a\u5b89\u88c5\u5931\u8d25\uff01\n\u5982\u679c\u5f39\u51fa\u66f4\u65b0\u5668\u754c\u9762\uff0c\u8bf7\u76f4\u63a5\u5173\u95ed\uff0c\u4e0d\u8981\u70b9\u51fb\u201c\u5f00\u59cb\u66f4\u65b0\u201d\uff0c\u5426\u5219\u5b89\u88c5\u53ef\u80fd\u65e0\u6cd5\u987a\u5229\u7ed3\u675f\u3002",
        "exclude_processes": "ffxiv.exe ffxiv_dx11.exe FFXIVBoot.exe FFXIVRepair.exe uninst.exe LauncherUpdater.exe CrashSender.exe Launcher.exe SdoLoginComServer.exe sdologin.exe sdolplugin.exe unload.exe update.exe wkeplugin.exe",
        "executable": "setup",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "execute": {
        "command": "mkdir -p \"$GAMEDIR/drive_c/Program Files/SNDA/FFXIV/game/My Games/FINAL FANTASY XIV - A Realm Reborn\""
      }
    },
    {
      "execute": {
        "command": "echo -e \"<FINAL FANTASY XIV Config File>\\n\\n<Cutscene Settings>\\nCutsceneMovieOpening 1\" > \"$GAMEDIR/drive_c/Program Files/SNDA/FFXIV/game/My Games/FINAL FANTASY XIV - A Realm Reborn/FFXIV.cfg\""
      }
    },
    {
      "execute": {
        "command": "echo -e \"<FINAL FANTASY XIV Boot Config File>\\n\\n<Version>\\nBrowser 1\" > \"$GAMEDIR/drive_c/Program Files/SNDA/FFXIV/game/My Games/FINAL FANTASY XIV - A Realm Reborn/FFXIV_BOOT.cfg\""
      }
    },
    {
      "task": {
        "arch": "win32",
        "key": "HideWineExports",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "Y"
      }
    }
  ],
  "system": {
    "env": {
      "DXVK_HUD": "compiler",
      "DXVK_STATE_CACHE_PATH": "$GAMEDIR",
      "MESA_GL_VERSION_OVERRIDE": "4.4COMPAT",
      "STAGING_SHARED_MEMORY": 1,
      "__GL_SHADER_DISK_CACHE": 1,
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR"
    },
    "pulse_latency": true
  },
  "wine": {
    "dxvk": true,
    "esync": true,
    "overrides": {
      "winedbg.exe": "disabled"
    },
    "vkd3d": true
  }
}
返回游戏