{
    "version": "2.19.0",
    "description": "A fast and friendly git client for Mac and Windows",
    "homepage": "https://git-fork.com/",
    "license": {
        "identifier": "Shareware",
        "url": "https://git-fork.com/license"
    },
    "notes": [
        "Add Fork as a context menu option by running:",
        "reg import \"$dir\\install-context.reg\""
    ],
    "url": "https://cdn.fork.dev/update/win/Fork-2.19.0-full.nupkg",
    "hash": "sha1:8c9e884709315c0c9dd82c5d69151a8b7b4267d2",
    "extract_dir": "lib\\app",
    "post_install": [
        "Remove-Item \"$dir\\*\" -Include 'Fork_ExecutionStub.exe', 'PortableGit-*.7z', 'lib', '7z.*' -Recurse",
        "$exepath = \"$dir\\Fork.exe\".Replace('\\', '\\\\')",
        "'install-context.reg', 'uninstall-context.reg' | ForEach-Object {",
        "    if (Test-Path \"$bucketsdir\\extras\\scripts\\$app\\$_\") {",
        "        $content = Get-Content \"$bucketsdir\\extras\\scripts\\$app\\$_\"",
        "        $content = $content.Replace('$fork-path', $exepath)",
        "        if ($global) {",
        "            $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
        "        }",
        "    }",
        "    $content | Set-Content -Path \"$dir\\$_\" -Encoding ascii",
        "}"
    ],
    "bin": "Fork.exe",
    "env_set": {
        "FORKGITINSTANCE": "$env:GIT_INSTALL_ROOT"
    },
    "shortcuts": [
        [
            "Fork.exe",
            "Fork"
        ]
    ],
    "uninstaller": {
        "script": "if ($cmd -eq 'uninstall') { reg import \"$dir\\uninstall-context.reg\" }"
    },
    "checkver": {
        "url": "https://fork.dev/update/win/RELEASES",
        "regex": "Fork-([\\d.]+)-full.nupkg",
        "reverse": true
    },
    "autoupdate": {
        "url": "https://cdn.fork.dev/update/win/Fork-$version-full.nupkg",
        "hash": {
            "url": "https://fork.dev/update/win/RELEASES"
        }
    }
}
