{
    "version": "1.7.0",
    "description": "Follow everything in one place",
    "homepage": "https://folo.is/",
    "license": "GPL-3.0",
    "architecture": {
        "64bit": {
            "url": "https://github.com/RSSNext/Folo/releases/download/desktop%2Fv1.7.0/Folo-1.7.0-windows-x64.exe#/dl.7z",
            "hash": "sha512:0e9c80b173d28c06be8cd4c04e8f3dc28e56c13b6cf0f7ccd163eb314b05199bc55da3f23285a4f2d7ae41a1e7818ed2ef6c56ab38b9230a19656e26153482a1"
        }
    },
    "pre_install": [
        "Get-ChildItem \"$dir\\*\" -Exclude 'Folo-*nupkg' | Remove-Item",
        "Expand-7zipArchive \"$dir\\Folo-*-full.nupkg\" -ExtractDir 'lib\\net45' -Removal"
    ],
    "post_install": [
        "if (Test-Path $env:APPDATA\\Folo) {",
        "    Write-Host \"`r`nMove config from non-portable version...\"",
        "    Copy-Item -Path $env:APPDATA\\Folo\\* -Destination \"$persist_dir\\UserData\" -Force -Recurse | Out-Null",
        "    Remove-Item $env:APPDATA\\Folo -Force -Recurse",
        "}",
        "New-Item -ItemType Junction -Path $env:APPDATA\\Folo -Target $persist_dir\\UserData | Out-Null"
    ],
    "uninstaller": {
        "script": "Remove-Item $env:APPDATA\\Folo -Force -Recurse"
    },
    "shortcuts": [
        [
            "Folo.exe",
            "Folo"
        ]
    ],
    "persist": "UserData",
    "checkver": {
        "github": "https://api.github.com/repos/RSSNext/Folo/releases",
        "regex": "desktop/v([\\d.]+)"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/RSSNext/Folo/releases/download/desktop%2Fv$version/Folo-$version-windows-x64.exe#/dl.7z",
                "hash": {
                    "url": "$baseurl/latest.yml",
                    "regex": "(?sm)x64.exe.*?sha512:\\s+$base64"
                }
            }
        }
    }
}
