{
    "version": "1.17.6",
    "description": "Chat, voice, video, and file transfer IM client using the encrypted peer-to-peer Tox protocol.",
    "homepage": "https://qtox.github.io/",
    "license": "GPL-3.0-or-later",
    "architecture": {
        "64bit": {
            "url": "https://github.com/qTox/qTox/releases/download/v1.17.6/setup-qtox-x86_64-release.exe#/dl.7z",
            "hash": "f1cd7cda26c2fdae4a924ddde34af44b2247d5e8561f7dafdfed75ef6632e40c"
        },
        "32bit": {
            "url": "https://github.com/qTox/qTox/releases/download/v1.17.6/setup-qtox-i686-release.exe#/dl.7z",
            "hash": "e969755b9a50522c49938d809218d3b55f3a9c62de50a62d537f33b2d7eda9a2"
        }
    },
    "extract_dir": "bin",
    "installer": {
        "script": [
            "if (!(Test-Path \"$persist_dir\\qtox.ini\")) {",
            "    Set-Content \"$dir\\qtox.ini\" @('[Advanced]', 'makeToxPortable=true', '[%General]', 'checkUpdates=false') -Encoding ASCII -Force",
            "    if (Test-Path \"$env:AppData\\tox\") {",
            "        Copy-Item \"$env:AppData\\tox\\*\" \"$dir\" -Recurse -Exclude '*qtox.ini' -ErrorAction SilentlyContinue",
            "    }",
            "} else { Move-Item \"$persist_dir\\*\" \"$dir\" -Include '*.ini', '*.db', '*.tox' }"
        ]
    },
    "uninstaller": {
        "script": "Move-Item \"$dir\\*\" \"$persist_dir\" -Include '*.ini', '*.db', '*.tox'"
    },
    "persist": "avatars",
    "bin": "qtox.exe",
    "shortcuts": [
        [
            "qtox.exe",
            "qTox"
        ]
    ],
    "checkver": {
        "github": "https://github.com/qTox/qTox"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/qTox/qTox/releases/download/v$version/setup-qtox-x86_64-release.exe#/dl.7z"
            },
            "32bit": {
                "url": "https://github.com/qTox/qTox/releases/download/v$version/setup-qtox-i686-release.exe#/dl.7z"
            }
        }
    }
}
