{
    "version": "25.09",
    "description": "Powerful and intelligent flash cards",
    "homepage": "https://apps.ankiweb.net",
    "license": "AGPL-3.0-only",
    "architecture": {
        "64bit": {
            "url": "https://github.com/ankitects/anki/releases/download/25.09/anki-launcher-25.09-windows.exe#/dl.7z",
            "hash": "398f690a8208bd381dc2d4220720a82f6d2249c1fd1b38f46a90db356cb7c69e"
        }
    },
    "pre_install": [
        "@(",
        "   '@echo off'",
        "   'echo Starting Anki...'",
        "   'set \"USB_ROOT=%~dp0\"'",
        "   'set \"ANKI_LAUNCHER_VENV_ROOT=%USB_ROOT%\\programfiles\"'",
        "   'set \"ANKI_LAUNCHER=%USB_ROOT%\\anki\"'",
        "   'set \"ANKI_BASE=%USB_ROOT%\\data\"'",
        "   'start /b \"\" \"%ANKI_LAUNCHER%\"'",
        ") | Set-Content \"$dir\\anki.cmd\" -Encoding ASCII",
        "Remove-Item \"$dir\\`$*\" -Recurse"
    ],
    "bin": "anki.cmd",
    "shortcuts": [
        [
            "anki.cmd",
            "Anki",
            "",
            "anki.exe"
        ]
    ],
    "persist": [
        "data",
        "programfiles"
    ],
    "checkver": {
        "github": "https://api.github.com/repos/ankitects/anki/releases",
        "regex": "download/(?<version>[\\d.]+)/anki-launcher-\\k<version>-windows\\.exe"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/ankitects/anki/releases/download/$version/anki-launcher-$version-windows.exe#/dl.7z"
            }
        },
        "hash": {
            "url": "$baseurl/anki-launcher-$version-checksums.txt"
        }
    }
}
