Installer live-pokemon-tcg-live-guan-wang-ban-an-zhu
该脚本仅供阅读,不能直接用来在Wine游戏助手中安装游戏。
要通过命令安装游戏,请下载完整脚本。
安装命令:/opt/apps/net.winegame.client/files/bin/winegame -i ./xxx.json
files:
- pokemon: https://installer.studio-prod.pokemon.com/installer/PokemonTCGLiveInstaller.msi
- wineinit: https://file.winegame.net/games/common/wineinit.sh
game:
arch: win64
exe: drive_c/users/$USER/The Pokémon Company International/Pokémon Trading Card
Game Live/Pokemon TCG Live.exe
prefix: $GAMEDIR
working_dir: drive_c/users/$USER/The Pokémon Company International/Pokémon Trading
Card Game Live
installer:
- execute:
command: bash "$wineinit" win64
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盘
- task:
app: arial cjkfonts dotnet40
description: 安装字体和dotnet等(需要3分钟或更长,请耐心等)
name: winetricks
prefix: $GAMEDIR
silent: true
- task:
name: winekill
prefix: $GAMEDIR
- task:
description: |
启动游戏安装程序。
安装时在Downloading prequisite software时可能会卡一段时间,超时后提示没有找到vc_redist,请无视并选择继续安装!
安装完成后,请不要打开游戏,而是关闭安装程序,以便安装继续执行完成。
一定要安装到默认路径,不要安装到任何其他位置,否则程序会认为安装失败!
executable: pokemon
name: wineexec
prefix: $GAMEDIR
- task:
name: winekill
prefix: $GAMEDIR
{
"files": [
{
"pokemon": "https://installer.studio-prod.pokemon.com/installer/PokemonTCGLiveInstaller.msi"
},
{
"wineinit": "https://file.winegame.net/games/common/wineinit.sh"
}
],
"game": {
"arch": "win64",
"exe": "drive_c/users/$USER/The Pok\u00e9mon Company International/Pok\u00e9mon Trading Card Game Live/Pokemon TCG Live.exe",
"prefix": "$GAMEDIR",
"working_dir": "drive_c/users/$USER/The Pok\u00e9mon Company International/Pok\u00e9mon Trading Card Game Live"
},
"installer": [
{
"execute": {
"command": "bash \"$wineinit\" win64",
"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"
}
},
{
"task": {
"app": "arial cjkfonts dotnet40",
"description": "\u5b89\u88c5\u5b57\u4f53\u548cdotnet\u7b49\uff08\u9700\u89813\u5206\u949f\u6216\u66f4\u957f\uff0c\u8bf7\u8010\u5fc3\u7b49\uff09",
"name": "winetricks",
"prefix": "$GAMEDIR",
"silent": true
}
},
{
"task": {
"name": "winekill",
"prefix": "$GAMEDIR"
}
},
{
"task": {
"description": "\u542f\u52a8\u6e38\u620f\u5b89\u88c5\u7a0b\u5e8f\u3002\n\u5b89\u88c5\u65f6\u5728Downloading prequisite software\u65f6\u53ef\u80fd\u4f1a\u5361\u4e00\u6bb5\u65f6\u95f4\uff0c\u8d85\u65f6\u540e\u63d0\u793a\u6ca1\u6709\u627e\u5230vc_redist\uff0c\u8bf7\u65e0\u89c6\u5e76\u9009\u62e9\u7ee7\u7eed\u5b89\u88c5\uff01\n\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8bf7\u4e0d\u8981\u6253\u5f00\u6e38\u620f\uff0c\u800c\u662f\u5173\u95ed\u5b89\u88c5\u7a0b\u5e8f\uff0c\u4ee5\u4fbf\u5b89\u88c5\u7ee7\u7eed\u6267\u884c\u5b8c\u6210\u3002\n\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",
"executable": "pokemon",
"name": "wineexec",
"prefix": "$GAMEDIR"
}
},
{
"task": {
"name": "winekill",
"prefix": "$GAMEDIR"
}
}
]
}