game:
exe: drive_c/YostarGames/Arknights_KR_Gamelauncher/Arknights_KR_Gamelauncher.exe
prefix: $GAMEDIR
installer:
- task:
arch: win64
description: Creating 64bit Wine prefix.
name: create_prefix
prefix: $GAMEDIR
- task:
app: corefonts
description: Installing corefonts
name: winetricks
prefix: $GAMEDIR
- execute:
command: "python3 -c \"\nimport urllib.request, json, sys\n\nopener = urllib.request.build_opener()\n\
opener.addheaders = [('User-Agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)')]\n\
urllib.request.install_opener(opener)\n\nurl = 'https://www.arknights.kr/api/resource/game-download-link?index=1&size=999'\n\
\ntry:\n response = urllib.request.urlopen(url).read()\n data = json.loads(response)\n\
\ \n if 'client' not in data['data']['rows'][0]:\n print('Error:\
\ can not find the game link (the API did not return the PC client link).')\n\
\ sys.exit(1)\n \n download_url = data['data']['rows'][0]['client']\n\
except SystemExit:\n sys.exit(1)\nexcept Exception as e:\n print('Error\
\ fetching data from API:', e)\n sys.exit(1)\n \nprint('Downloading from:',\
\ download_url)\nurllib.request.urlretrieve(download_url, '$CACHE/arknights_setup.exe')\n\
\"\n"
description: Fetching the latest Arknights KR installer from API...
- task:
description: Running the Arknights PC installer...
executable: $CACHE/arknights_setup.exe
name: wineexec
prefix: $GAMEDIR
description: Install via latest official launcher version
game_slug: arknights
gogslug: ''
humblestoreid: ''
installer_slug: arknights-launcher-kr
name: Arknights
notes: If the game fails to launch/force closes on anti-cheat, switch Wine runners.
runner: wine
script:
game:
exe: drive_c/YostarGames/Arknights_KR_Gamelauncher/Arknights_KR_Gamelauncher.exe
prefix: $GAMEDIR
installer:
- task:
arch: win64
description: Creating 64bit Wine prefix.
name: create_prefix
prefix: $GAMEDIR
- task:
app: corefonts
description: Installing corefonts
name: winetricks
prefix: $GAMEDIR
- execute:
command: "python3 -c \"\nimport urllib.request, json, sys\n\nopener = urllib.request.build_opener()\n\
opener.addheaders = [('User-Agent', 'Mozilla/5.0 (Windows NT 10.0; Win64;\
\ x64)')]\nurllib.request.install_opener(opener)\n\nurl = 'https://www.arknights.kr/api/resource/game-download-link?index=1&size=999'\n\
\ntry:\n response = urllib.request.urlopen(url).read()\n data = json.loads(response)\n\
\ \n if 'client' not in data['data']['rows'][0]:\n print('Error:\
\ can not find the game link (the API did not return the PC client link).')\n\
\ sys.exit(1)\n \n download_url = data['data']['rows'][0]['client']\n\
except SystemExit:\n sys.exit(1)\nexcept Exception as e:\n print('Error\
\ fetching data from API:', e)\n sys.exit(1)\n \nprint('Downloading\
\ from:', download_url)\nurllib.request.urlretrieve(download_url, '$CACHE/arknights_setup.exe')\n\
\"\n"
description: Fetching the latest Arknights KR installer from API...
- task:
description: Running the Arknights PC installer...
executable: $CACHE/arknights_setup.exe
name: wineexec
prefix: $GAMEDIR
slug: arknights-launcher-kr
steamid: null
version: Launcher (KR)
year: 2020
{
"game_slug": "arknights",
"version": "Launcher (KR)",
"description": "Install via latest official launcher version",
"notes": "If the game fails to launch/force closes on anti-cheat, switch Wine runners.",
"name": "Arknights",
"year": 2020,
"steamid": null,
"gogslug": "",
"humblestoreid": "",
"runner": "wine",
"slug": "arknights-launcher-kr",
"installer_slug": "arknights-launcher-kr",
"script": {
"game": {
"exe": "drive_c/YostarGames/Arknights_KR_Gamelauncher/Arknights_KR_Gamelauncher.exe",
"prefix": "$GAMEDIR"
},
"installer": [
{
"task": {
"arch": "win64",
"description": "Creating 64bit Wine prefix.",
"name": "create_prefix",
"prefix": "$GAMEDIR"
}
},
{
"task": {
"app": "corefonts",
"description": "Installing corefonts",
"name": "winetricks",
"prefix": "$GAMEDIR"
}
},
{
"execute": {
"command": "python3 -c \"\nimport urllib.request, json, sys\n\nopener = urllib.request.build_opener()\nopener.addheaders = [('User-Agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)')]\nurllib.request.install_opener(opener)\n\nurl = 'https://www.arknights.kr/api/resource/game-download-link?index=1&size=999'\n\ntry:\n response = urllib.request.urlopen(url).read()\n data = json.loads(response)\n \n if 'client' not in data['data']['rows'][0]:\n print('Error: can not find the game link (the API did not return the PC client link).')\n sys.exit(1)\n \n download_url = data['data']['rows'][0]['client']\nexcept SystemExit:\n sys.exit(1)\nexcept Exception as e:\n print('Error fetching data from API:', e)\n sys.exit(1)\n \nprint('Downloading from:', download_url)\nurllib.request.urlretrieve(download_url, '$CACHE/arknights_setup.exe')\n\"\n",
"description": "Fetching the latest Arknights KR installer from API..."
}
},
{
"task": {
"description": "Running the Arknights PC installer...",
"executable": "$CACHE/arknights_setup.exe",
"name": "wineexec",
"prefix": "$GAMEDIR"
}
}
]
}
}