Installer mo-shou-shi-jie-you-ai-cha-ji-1-wine

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

files:
- setup: http://ok.166.net/16163/163ui-3.4.2.32834.rar
- wineinit: https://file.winegame.net/games/common/wineinit.sh
game:
  arch: win64
  exe: drive_c/网易有爱/网易有爱.exe
  prefix: $GAMEDIR
installer:
- execute:
    command: bash "$wineinit" win64 7.6
    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盘
- execute:
    command: unrar x "$setup" "$GAMEDIR/drive_c"
    description: 解压有爱安装包
require-binaries: unrar
wine:
  dxvk: false
  esync: false
  overrides:
    winedbg.exe: disabled
    winemenubuilder.exe: disabled
  version: winehq-staging-7.7-x86_64
  vkd3d: false
{
  "files": [
    {
      "setup": "http://ok.166.net/16163/163ui-3.4.2.32834.rar"
    },
    {
      "wineinit": "https://file.winegame.net/games/common/wineinit.sh"
    }
  ],
  "game": {
    "arch": "win64",
    "exe": "drive_c/\u7f51\u6613\u6709\u7231/\u7f51\u6613\u6709\u7231.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "execute": {
        "command": "bash \"$wineinit\" win64 7.6",
        "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"
      }
    },
    {
      "execute": {
        "command": "unrar x \"$setup\" \"$GAMEDIR/drive_c\"",
        "description": "\u89e3\u538b\u6709\u7231\u5b89\u88c5\u5305"
      }
    }
  ],
  "require-binaries": "unrar",
  "wine": {
    "dxvk": false,
    "esync": false,
    "overrides": {
      "winedbg.exe": "disabled",
      "winemenubuilder.exe": "disabled"
    },
    "version": "winehq-staging-7.7-x86_64",
    "vkd3d": false
  }
}
返回游戏