{
    "version": "23.7.25",
    "description": "Zooming presentation editor and player.",
    "homepage": "https://sozi.baierouge.fr/",
    "license": "MPL-2.0",
    "notes": "Install sozi extras media for InkScape by running: \"scoop install inkscape-extension-sozi\"",
    "architecture": {
        "64bit": {
            "url": "https://github.com/sozi-projects/Sozi/releases/download/v23.07/Sozi.Setup.23.7.25-1690311612.exe#/dl.7z",
            "hash": "d38d2f7a36d784d2b515f887dc31fde408cdf390397d23987294cb25a1ce0367",
            "installer": {
                "script": [
                    "Expand-7zipArchive -Path \"$dir\\`$PLUGINSDIR\\app-64.7z\" -DestinationPath \"$dir\"",
                    "Remove-Item -Path \"$dir\\`$PLUGINSDIR\", \"$dir\\`$R0\" -Force -Recurse"
                ]
            }
        }
    },
    "shortcuts": [
        [
            "sozi.exe",
            "Sozi"
        ]
    ],
    "post_uninstall": [
        "if ($purge) {",
        "    $Directories = [string[]](",
        "        [System.IO.Path]::Combine($env:APPDATA, 'sozi')",
        "    )",
        "    $Directories.ForEach{",
        "        if ([System.IO.Directory]::Exists($_)) {",
        "            $null = [System.IO.Directory]::Delete($_,$true)",
        "        }",
        "    }",
        "}"
    ],
    "checkver": {
        "github": "https://api.github.com/repos/sozi-projects/Sozi/releases",
        "jsonpath": "$[?(@.prerelease == false)]",
        "regex": "/v(?<tag>[\\d.]+)/Sozi.Setup.([\\d.]+)-(?<build>[\\d]+).exe"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/sozi-projects/Sozi/releases/download/v$matchTag/Sozi.Setup.$version-$matchBuild.exe#/dl.7z"
            }
        }
    }
}
