{
    "version": "2.6.0",
    "description": "SSH/Sftp/Shell/Telnet/Serial client",
    "homepage": "https://kingtoolbox.github.io/",
    "license": "Apache-2.0",
    "suggest": {
        "vcredist": "extras/vcredist2022"
    },
    "architecture": {
        "64bit": {
            "url": "https://github.com/kingToolbox/WindTerm/releases/download/2.6.0/WindTerm_2.6.0_Windows_Portable_x86_64.zip",
            "hash": "d25eec210d654a559554f0921dbd6ebcead3e323004b779efe015cc4ba6ebbdf"
        },
        "32bit": {
            "url": "https://github.com/kingToolbox/WindTerm/releases/download/2.6.0/WindTerm_2.6.0_Windows_Portable_x86_32.zip",
            "hash": "a80a9c9be9e342788d60011d77869b1fbfc21f21e19d8ebbdbd38a35336f360e"
        }
    },
    "extract_dir": "WindTerm_2.6.0",
    "shortcuts": [
        [
            "WindTerm.exe",
            "WindTerm"
        ]
    ],
    "post_install": [
        "info '[Portable Mode] Configuring profiles directory...'",
        "'{ \"path\" : \".\" }' | Set-Content -Path \"$dir\\profiles.config\"",
        "if (!(Test-Path \"$dir\\.wind\\profiles\") -and (Test-Path \"$persist_dir\\profiles\")) {",
        "    info '[Portable Mode] Copying existing profiles...'",
        "    Copy-Item \"$persist_dir\\profiles\" \"$dir\\.wind\" -Recurse",
        "}"
    ],
    "persist": ".wind",
    "checkver": {
        "github": "https://github.com/kingToolbox/WindTerm"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/kingToolbox/WindTerm/releases/download/$version/WindTerm_$version_Windows_Portable_x86_64.zip"
            },
            "32bit": {
                "url": "https://github.com/kingToolbox/WindTerm/releases/download/$version/WindTerm_$version_Windows_Portable_x86_32.zip"
            }
        },
        "extract_dir": "WindTerm_$version"
    }
}
