Installer arknights-launcher-jp

game:
  exe: drive_c/YostarGames/Arknights_JP_Gamelauncher/Arknights_JP_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.jp/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 JP 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-jp
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_JP_Gamelauncher/Arknights_JP_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.jp/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 JP installer from API...
  - task:
      description: Running the Arknights PC installer...
      executable: $CACHE/arknights_setup.exe
      name: wineexec
      prefix: $GAMEDIR
slug: arknights-launcher-jp
steamid: null
version: Launcher (JP)
year: 2020
{
  "game_slug": "arknights",
  "version": "Launcher (JP)",
  "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-jp",
  "installer_slug": "arknights-launcher-jp",
  "script": {
    "game": {
      "exe": "drive_c/YostarGames/Arknights_JP_Gamelauncher/Arknights_JP_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.jp/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 JP installer from API..."
        }
      },
      {
        "task": {
          "description": "Running the Arknights PC installer...",
          "executable": "$CACHE/arknights_setup.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      }
    ]
  }
}
Back to game