Installer assassins-creed-valhalla-4-epicuplay

该脚本仅供参考,不能直接用来在Wine游戏助手中安装游戏。 要安装游戏,请下载完整脚本

files:
- epic: N/A:请选择Epic安装包(EpicGamesLauncherInstaller.msi)
- uplay: N/A:请选择Ubisoft Connect安装包(UbisoftConnectInstaller.exe)
- mfinstaller: https://file.winegame.net/games/epic-games-store/mf-install-master.zip
- dx-dlls: https://file.winegame.net/games/uplay/dx-dlls.tar.xz
game:
  arch: win64
  args: -opengl -SkipBuildPatchPrereq
  exe: drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe
  prefix: $GAMEDIR
installer:
- execute:
    command: fetch() { dir="$HOME/.cache/$(dirname "$1")"; file="$(basename "$1")";
      path="$HOME/.cache/$1"; url="https://file.winegame.net/cache/$1"; mkdir -p "$dir";
      aria2c --allow-overwrite=true --summary-interval=1 -x 5 -s 5 -c -d "$dir" -o
      "$file" "$url" || wget -c -O "$path" "$url"; }; fetch wine/wine-mono-5.1.0-x86.msi;
      fetch wine/wine-gecko-2.47.1-x86_64.msi; fetch wine/wine-gecko-2.47.1-x86.msi;
      fetch wine/fonts/MicrosoftYaHeiMono.tar.gz;
    description: 下载字体和运行库
- task:
    arch: win64
    description: 创建64位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盘
- extract:
    dst: $CACHE/mfinstaller
    file: mfinstaller
- execute:
    command: $CACHE/mfinstaller/install-mf.sh
    env:
      WINEPREFIX: $GAMEDIR
- task:
    arch: win64
    name: winekill
    prefix: $GAMEDIR
- copy:
    dst: $CACHE/epic/
    src: epic
- task:
    arch: win64
    args: /i "$CACHE/epic/EpicGamesLauncherInstaller.msi" /q
    exclude_processes: EpicGamesLauncher.exe
    executable: msiexec
    name: wineexec
    prefix: $GAMEDIR
- task:
    arch: win64
    name: winekill
    prefix: $GAMEDIR
- execute:
    command: cd "$GAMEDIR/drive_c" && tar -Jvxf "$dx-dlls"
    description: 解压 DX DLL
- write_file:
    content: "overlay:\n  enabled: false\nuser:\n  closebehavior: CloseBehavior_Minimize\n\
      language:\n  code: zh-CN"
    file: $GAMEDIR/drive_c/users/steamuser/Local Settings/Application Data/Ubisoft
      Game Launcher/settings.yml
- task:
    args: /S
    description: 后台安装UPlay
    executable: uplay
    name: wineexec
    prefix: $GAMEDIR
system:
  env:
    DXVK_HUD: compiler
    DXVK_STATE_CACHE_PATH: $GAMEDIR
    MESA_GL_VERSION_OVERRIDE: 4.4COMPAT
    STAGING_SHARED_MEMORY: 1
    VKD3D_DEBUG: none
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
wine:
  dxvk: true
  esync: true
  overrides:
    XAPOFX1_0: n,b
    api-ms-win-core-privateprofile-l1-1-0: n,b
    atl100: n,b
    concrt140: n,b
    d3dcompiler_33: n,b
    d3dcompiler_34: n,b
    d3dcompiler_35: n,b
    d3dcompiler_36: n,b
    d3dcompiler_37: n,b
    d3dcompiler_38: n,b
    d3dcompiler_39: n,b
    d3dcompiler_40: n,b
    d3dcompiler_41: n,b
    d3dcompiler_42: n,b
    d3dcompiler_43: n,b
    d3dcompiler_46: n,b
    d3dcompiler_47: n,b
    d3dcsx_42: n,b
    d3dcsx_43: n,b
    d3dcsx_47: n,b
    d3dx10: n,b
    d3dx10_33: n,b
    d3dx10_34: n,b
    d3dx10_35: n,b
    d3dx10_36: n,b
    d3dx10_37: n,b
    d3dx10_38: n,b
    d3dx10_39: n,b
    d3dx10_40: n,b
    d3dx10_41: n,b
    d3dx10_43: n,b
    d3dx11_42: n,b
    d3dx11_43: n,b
    d3dx9_24: n,b
    d3dx9_25: n,b
    d3dx9_26: n,b
    d3dx9_27: n,b
    d3dx9_28: n,b
    d3dx9_29: n,b
    d3dx9_30: n,b
    d3dx9_31: n,b
    d3dx9_32: n,b
    d3dx9_33: n,b
    d3dx9_34: n,b
    d3dx9_35: n,b
    d3dx9_36: n,b
    d3dx9_37: n,b
    d3dx9_38: n,b
    d3dx9_39: n,b
    d3dx9_40: n,b
    d3dx9_41: n,b
    d3dx9_42: n,b
    d3dx9_43: n,b
    ddraw: n,b
    mfc100: n,b
    mfc100chs: n,b
    mfc100cht: n,b
    mfc100deu: n,b
    mfc100enu: n,b
    mfc100esn: n,b
    mfc100fra: n,b
    mfc100ita: n,b
    mfc100jpn: n,b
    mfc100kor: n,b
    mfc100rus: n,b
    mfc100u: n,b
    mfc140: n,b
    mfc140chs: n,b
    mfc140cht: n,b
    mfc140deu: n,b
    mfc140enu: n,b
    mfc140esn: n,b
    mfc140fra: n,b
    mfc140ita: n,b
    mfc140jpn: n,b
    mfc140kor: n,b
    mfc140rus: n,b
    mfc140u: n,b
    mfcm100: n,b
    mfcm100u: n,b
    mfcm140: n,b
    mfcm140u: n,b
    msvcp100: n,b
    msvcp140: n,b
    msvcr100: n,b
    nvapi,nvapi64: disabled
    vcamp140: n,b
    vccorlib140: n,b
    vcomp100: n,b
    vcomp140: n,b
    vcruntime140: n,b
    winedbg.exe: disabled
    winemenubuilder.exe: disabled
    x3daudio1_0: n,b
    x3daudio1_1: n,b
    x3daudio1_2: n,b
    x3daudio1_3: n,b
    x3daudio1_4: n,b
    x3daudio1_5: n,b
    x3daudio1_6: n,b
    x3daudio1_7: n,b
    xactengine2_0: n,b
    xactengine2_1: n,b
    xactengine2_10: n,b
    xactengine2_2: n,b
    xactengine2_3: n,b
    xactengine2_4: n,b
    xactengine2_5: n,b
    xactengine2_6: n,b
    xactengine2_7: n,b
    xactengine2_8: n,b
    xactengine2_9: n,b
    xactengine3_0: n,b
    xactengine3_1: n,b
    xactengine3_2: n,b
    xactengine3_3: n,b
    xactengine3_4: n,b
    xactengine3_5: n,b
    xactengine3_6: n,b
    xactengine3_7: n,b
    xapofx1_1: n,b
    xapofx1_2: n,b
    xapofx1_3: n,b
    xapofx1_4: n,b
    xapofx1_5: n,b
    xaudio2_0: n,b
    xaudio2_1: n,b
    xaudio2_2: n,b
    xaudio2_3: n,b
    xaudio2_4: n,b
    xaudio2_5: n,b
    xaudio2_6: n,b
    xaudio2_7: n,b
    xinput1_1: n,b
    xinput1_2: n,b
    xinput1_3: n,b
  version: tkg-5.22-1-x86_64
  vkd3d: true
{
  "files": [
    {
      "epic": "N/A:\u8bf7\u9009\u62e9Epic\u5b89\u88c5\u5305\uff08EpicGamesLauncherInstaller.msi\uff09"
    },
    {
      "uplay": "N/A:\u8bf7\u9009\u62e9Ubisoft Connect\u5b89\u88c5\u5305\uff08UbisoftConnectInstaller.exe\uff09"
    },
    {
      "mfinstaller": "https://file.winegame.net/games/epic-games-store/mf-install-master.zip"
    },
    {
      "dx-dlls": "https://file.winegame.net/games/uplay/dx-dlls.tar.xz"
    }
  ],
  "game": {
    "arch": "win64",
    "args": "-opengl -SkipBuildPatchPrereq",
    "exe": "drive_c/Program Files (x86)/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "execute": {
        "command": "fetch() { dir=\"$HOME/.cache/$(dirname \"$1\")\"; file=\"$(basename \"$1\")\"; path=\"$HOME/.cache/$1\"; url=\"https://file.winegame.net/cache/$1\"; mkdir -p \"$dir\"; aria2c --allow-overwrite=true --summary-interval=1 -x 5 -s 5 -c -d \"$dir\" -o \"$file\" \"$url\" || wget -c -O \"$path\" \"$url\"; }; fetch wine/wine-mono-5.1.0-x86.msi; fetch wine/wine-gecko-2.47.1-x86_64.msi; fetch wine/wine-gecko-2.47.1-x86.msi; fetch wine/fonts/MicrosoftYaHeiMono.tar.gz;",
        "description": "\u4e0b\u8f7d\u5b57\u4f53\u548c\u8fd0\u884c\u5e93"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "\u521b\u5efa64\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"
      }
    },
    {
      "extract": {
        "dst": "$CACHE/mfinstaller",
        "file": "mfinstaller"
      }
    },
    {
      "execute": {
        "command": "$CACHE/mfinstaller/install-mf.sh",
        "env": {
          "WINEPREFIX": "$GAMEDIR"
        }
      }
    },
    {
      "task": {
        "arch": "win64",
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "copy": {
        "dst": "$CACHE/epic/",
        "src": "epic"
      }
    },
    {
      "task": {
        "arch": "win64",
        "args": "/i \"$CACHE/epic/EpicGamesLauncherInstaller.msi\" /q",
        "exclude_processes": "EpicGamesLauncher.exe",
        "executable": "msiexec",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win64",
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR/drive_c\" && tar -Jvxf \"$dx-dlls\"",
        "description": "\u89e3\u538b DX DLL"
      }
    },
    {
      "write_file": {
        "content": "overlay:\n  enabled: false\nuser:\n  closebehavior: CloseBehavior_Minimize\nlanguage:\n  code: zh-CN",
        "file": "$GAMEDIR/drive_c/users/steamuser/Local Settings/Application Data/Ubisoft Game Launcher/settings.yml"
      }
    },
    {
      "task": {
        "args": "/S",
        "description": "\u540e\u53f0\u5b89\u88c5UPlay",
        "executable": "uplay",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    }
  ],
  "system": {
    "env": {
      "DXVK_HUD": "compiler",
      "DXVK_STATE_CACHE_PATH": "$GAMEDIR",
      "MESA_GL_VERSION_OVERRIDE": "4.4COMPAT",
      "STAGING_SHARED_MEMORY": 1,
      "VKD3D_DEBUG": "none",
      "__GL_SHADER_DISK_CACHE": 1,
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR"
    }
  },
  "wine": {
    "dxvk": true,
    "esync": true,
    "overrides": {
      "XAPOFX1_0": "n,b",
      "api-ms-win-core-privateprofile-l1-1-0": "n,b",
      "atl100": "n,b",
      "concrt140": "n,b",
      "d3dcompiler_33": "n,b",
      "d3dcompiler_34": "n,b",
      "d3dcompiler_35": "n,b",
      "d3dcompiler_36": "n,b",
      "d3dcompiler_37": "n,b",
      "d3dcompiler_38": "n,b",
      "d3dcompiler_39": "n,b",
      "d3dcompiler_40": "n,b",
      "d3dcompiler_41": "n,b",
      "d3dcompiler_42": "n,b",
      "d3dcompiler_43": "n,b",
      "d3dcompiler_46": "n,b",
      "d3dcompiler_47": "n,b",
      "d3dcsx_42": "n,b",
      "d3dcsx_43": "n,b",
      "d3dcsx_47": "n,b",
      "d3dx10": "n,b",
      "d3dx10_33": "n,b",
      "d3dx10_34": "n,b",
      "d3dx10_35": "n,b",
      "d3dx10_36": "n,b",
      "d3dx10_37": "n,b",
      "d3dx10_38": "n,b",
      "d3dx10_39": "n,b",
      "d3dx10_40": "n,b",
      "d3dx10_41": "n,b",
      "d3dx10_43": "n,b",
      "d3dx11_42": "n,b",
      "d3dx11_43": "n,b",
      "d3dx9_24": "n,b",
      "d3dx9_25": "n,b",
      "d3dx9_26": "n,b",
      "d3dx9_27": "n,b",
      "d3dx9_28": "n,b",
      "d3dx9_29": "n,b",
      "d3dx9_30": "n,b",
      "d3dx9_31": "n,b",
      "d3dx9_32": "n,b",
      "d3dx9_33": "n,b",
      "d3dx9_34": "n,b",
      "d3dx9_35": "n,b",
      "d3dx9_36": "n,b",
      "d3dx9_37": "n,b",
      "d3dx9_38": "n,b",
      "d3dx9_39": "n,b",
      "d3dx9_40": "n,b",
      "d3dx9_41": "n,b",
      "d3dx9_42": "n,b",
      "d3dx9_43": "n,b",
      "ddraw": "n,b",
      "mfc100": "n,b",
      "mfc100chs": "n,b",
      "mfc100cht": "n,b",
      "mfc100deu": "n,b",
      "mfc100enu": "n,b",
      "mfc100esn": "n,b",
      "mfc100fra": "n,b",
      "mfc100ita": "n,b",
      "mfc100jpn": "n,b",
      "mfc100kor": "n,b",
      "mfc100rus": "n,b",
      "mfc100u": "n,b",
      "mfc140": "n,b",
      "mfc140chs": "n,b",
      "mfc140cht": "n,b",
      "mfc140deu": "n,b",
      "mfc140enu": "n,b",
      "mfc140esn": "n,b",
      "mfc140fra": "n,b",
      "mfc140ita": "n,b",
      "mfc140jpn": "n,b",
      "mfc140kor": "n,b",
      "mfc140rus": "n,b",
      "mfc140u": "n,b",
      "mfcm100": "n,b",
      "mfcm100u": "n,b",
      "mfcm140": "n,b",
      "mfcm140u": "n,b",
      "msvcp100": "n,b",
      "msvcp140": "n,b",
      "msvcr100": "n,b",
      "nvapi,nvapi64": "disabled",
      "vcamp140": "n,b",
      "vccorlib140": "n,b",
      "vcomp100": "n,b",
      "vcomp140": "n,b",
      "vcruntime140": "n,b",
      "winedbg.exe": "disabled",
      "winemenubuilder.exe": "disabled",
      "x3daudio1_0": "n,b",
      "x3daudio1_1": "n,b",
      "x3daudio1_2": "n,b",
      "x3daudio1_3": "n,b",
      "x3daudio1_4": "n,b",
      "x3daudio1_5": "n,b",
      "x3daudio1_6": "n,b",
      "x3daudio1_7": "n,b",
      "xactengine2_0": "n,b",
      "xactengine2_1": "n,b",
      "xactengine2_10": "n,b",
      "xactengine2_2": "n,b",
      "xactengine2_3": "n,b",
      "xactengine2_4": "n,b",
      "xactengine2_5": "n,b",
      "xactengine2_6": "n,b",
      "xactengine2_7": "n,b",
      "xactengine2_8": "n,b",
      "xactengine2_9": "n,b",
      "xactengine3_0": "n,b",
      "xactengine3_1": "n,b",
      "xactengine3_2": "n,b",
      "xactengine3_3": "n,b",
      "xactengine3_4": "n,b",
      "xactengine3_5": "n,b",
      "xactengine3_6": "n,b",
      "xactengine3_7": "n,b",
      "xapofx1_1": "n,b",
      "xapofx1_2": "n,b",
      "xapofx1_3": "n,b",
      "xapofx1_4": "n,b",
      "xapofx1_5": "n,b",
      "xaudio2_0": "n,b",
      "xaudio2_1": "n,b",
      "xaudio2_2": "n,b",
      "xaudio2_3": "n,b",
      "xaudio2_4": "n,b",
      "xaudio2_5": "n,b",
      "xaudio2_6": "n,b",
      "xaudio2_7": "n,b",
      "xinput1_1": "n,b",
      "xinput1_2": "n,b",
      "xinput1_3": "n,b"
    },
    "version": "tkg-5.22-1-x86_64",
    "vkd3d": true
  }
}
返回游戏