{
    "version": "23.12.1",
    "description": "Powerful and intelligent flash cards",
    "homepage": "https://apps.ankiweb.net",
    "license": "AGPL-3.0-only",
    "suggest": {
        "vcredist": "extras/vcredist2008"
    },
    "architecture": {
        "64bit": {
            "url": "https://github.com/ankitects/anki/releases/download/23.12.1/anki-23.12.1-windows-qt6.exe#/dl.7z",
            "hash": "f355c74174793aef94830d02fc92c51495ef2e3d036423032e0df5bb64fdf809"
        }
    },
    "pre_install": [
        "@(",
        "    '@echo off'",
        "    'SET _allParams=\"%*\"'",
        "    'IF /i %_allParams:-b =%==%_allParams% ('",
        "    \"    start `\"anki`\" /D `\"%~dp0`\" `\"%~dp0anki.exe`\" -b `\"$persist_dir\\data`\" %*\"",
        "    ') ELSE ('",
        "    '    start \"anki\" /D \"%~dp0\" \"%~dp0anki.exe\" %*'",
        "    ')'",
        ") | Set-Content \"$dir\\anki.cmd\" -Encoding ASCII",
        "Remove-Item \"$dir\\`$*\" -Recurse"
    ],
    "bin": "anki.cmd",
    "shortcuts": [
        [
            "anki.cmd",
            "Anki",
            "",
            "anki.exe"
        ]
    ],
    "persist": "data",
    "checkver": {
        "github": "https://github.com/ankitects/anki"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/ankitects/anki/releases/download/$version/anki-$version-windows-qt6.exe#/dl.7z"
            }
        },
        "hash": {
            "url": "$baseurl/anki-$version-checksums.txt"
        }
    }
}
