Installer genshin-impact-1-wine-72
该脚本仅供阅读,不能直接用来在Wine游戏助手中安装游戏。
要通过命令安装游戏,请下载完整脚本。
安装命令:/opt/apps/net.winegame.client/files/bin/winegame -i ./xxx.json
custom-name: 原神官服 files: - giclient: filename: GenshinImpact_install_mihoyo.exe url: https://ys-api.mihoyo.com/event/download_porter/link/ys_cn/official/pc_defaul - cmdfonts: https://file.winegame.net/cache/wine/fonts/MicrosoftYaHeiMono-20210208.tar.gz game: exe: drive_c/Program Files/Genshin Impact/launcher.exe prefix: $GAMEDIR installer: - execute: command: bash "$wineinit" win64 description: 下载字体和运行库 - task: description: 创建64位Wine前缀... name: create_prefix prefix: $GAMEDIR - extract: description: 解压CMD字体 dst: $GAMEDIR/drive_c/windows/Fonts file: cmdfonts - task: description: 安装CMD字体 filename: $GAMEDIR/drive_c/windows/Fonts/MicrosoftYaHeiMono.reg name: set_regedit_file prefix: $GAMEDIR - execute: command: rm -f "$GAMEDIR/dosdevices/m::"; ln -sf "$HOME" "$GAMEDIR/dosdevices/m:" description: 添加主目录($HOME)为M盘 - execute: command: WINEPREFIX="$GAMEDIR" "$WINEBIN" "$giclient" description: |- 安装原神…… 安装后请不要启动游戏, 在安装阶段没办法正常启动, 也不必等待下载完成, 在启动器出现后直接点X关闭即可。
{ "custom-name": "\u539f\u795e\u5b98\u670d", "files": [ { "giclient": { "filename": "GenshinImpact_install_mihoyo.exe", "url": "https://ys-api.mihoyo.com/event/download_porter/link/ys_cn/official/pc_defaul" } }, { "cmdfonts": "https://file.winegame.net/cache/wine/fonts/MicrosoftYaHeiMono-20210208.tar.gz" } ], "game": { "exe": "drive_c/Program Files/Genshin Impact/launcher.exe", "prefix": "$GAMEDIR" }, "installer": [ { "execute": { "command": "bash \"$wineinit\" win64", "description": "\u4e0b\u8f7d\u5b57\u4f53\u548c\u8fd0\u884c\u5e93" } }, { "task": { "description": "\u521b\u5efa64\u4f4dWine\u524d\u7f00...", "name": "create_prefix", "prefix": "$GAMEDIR" } }, { "extract": { "description": "\u89e3\u538bCMD\u5b57\u4f53", "dst": "$GAMEDIR/drive_c/windows/Fonts", "file": "cmdfonts" } }, { "task": { "description": "\u5b89\u88c5CMD\u5b57\u4f53", "filename": "$GAMEDIR/drive_c/windows/Fonts/MicrosoftYaHeiMono.reg", "name": "set_regedit_file", "prefix": "$GAMEDIR" } }, { "execute": { "command": "rm -f \"$GAMEDIR/dosdevices/m::\"; ln -sf \"$HOME\" \"$GAMEDIR/dosdevices/m:\"", "description": "\u6dfb\u52a0\u4e3b\u76ee\u5f55($HOME)\u4e3aM\u76d8" } }, { "execute": { "command": "WINEPREFIX=\"$GAMEDIR\" \"$WINEBIN\" \"$giclient\"", "description": "\u5b89\u88c5\u539f\u795e\u2026\u2026\n\u5b89\u88c5\u540e\u8bf7\u4e0d\u8981\u542f\u52a8\u6e38\u620f\uff0c\n\u5728\u5b89\u88c5\u9636\u6bb5\u6ca1\u529e\u6cd5\u6b63\u5e38\u542f\u52a8\uff0c\n\u4e5f\u4e0d\u5fc5\u7b49\u5f85\u4e0b\u8f7d\u5b8c\u6210\uff0c\n\u5728\u542f\u52a8\u5668\u51fa\u73b0\u540e\u76f4\u63a5\u70b9X\u5173\u95ed\u5373\u53ef\u3002" } } ] }