{
    "version": "7.66.6",
    "description": "The Next-Gen Collaboration Suite",
    "homepage": "https://www.larksuite.com/",
    "license": {
        "identifier": "Proprietary",
        "url": "https://www.larksuite.com/en_us/user-terms-of-service"
    },
    "notes": "Runtime data are stored in '%APPDATA%\\LarkInternational', and are not persisted by Scoop.",
    "architecture": {
        "32bit": {
            "url": "https://sf16-sg.larksuitecdn.com/obj/lark-artifact-storage/9a49917b/Lark-win32_ia32-7.66.6-signed.exe#/dl.7z",
            "hash": "md5:ea0b4efc4ce3ad1a8e7ee0216ca8149c"
        },
        "64bit": {
            "url": "https://sf16-sg.larksuitecdn.com/obj/lark-artifact-storage/dbe5923b/Lark-win32_x64-7.66.6-signed.exe#/dl.7z",
            "hash": "md5:d95664c61141d8727438ba5c02d824fd"
        }
    },
    "extract_to": "app",
    "shortcuts": [
        [
            "app/Lark.exe",
            "Lark"
        ]
    ],
    "checkver": {
        "url": "https://www.larksuite.com/api/downloads",
        "script": [
            "$page -match '(?<arch64>[0-9a-f]+)/Lark-win32_x64-(?<version>[\\d.]+)-signed\\.exe'",
            "$version = $Matches.version",
            "$arch64 = $Matches.arch64",
            "$page -match '(?<arch32>[0-9a-f]+)/Lark-win32_ia32-(?<version>[\\d.]+)-signed\\.exe'",
            "$arch32 = $Matches.arch32",
            "Write-Output \"$version $arch64 $arch32\""
        ],
        "regex": "(?<version>[\\d.]+) (?<arch64>[0-9a-f]+) (?<arch32>[0-9a-f]+)"
    },
    "autoupdate": {
        "architecture": {
            "32bit": {
                "url": "https://sf16-sg.larksuitecdn.com/obj/lark-artifact-storage/$matchArch32/Lark-win32_ia32-$version-signed.exe#/dl.7z",
                "hash": {
                    "url": "https://www.larksuite.com/api/downloads",
                    "jsonpath": "$.versions.Windows.hash"
                }
            },
            "64bit": {
                "url": "https://sf16-sg.larksuitecdn.com/obj/lark-artifact-storage/$matchArch64/Lark-win32_x64-$version-signed.exe#/dl.7z",
                "hash": {
                    "url": "https://www.larksuite.com/api/downloads",
                    "jsonpath": "$.versions.Windows_x64.hash"
                }
            }
        }
    }
}
