{
    "version": "1.26.1",
    "description": "Git with a cup of tea, painless self-hosted git service. (beta channel)",
    "homepage": "https://gitea.io/",
    "license": "MIT",
    "notes": "Run 'gitea web -c \"$persist_dir\\custom\\conf\\app.ini\"' to start the webserver",
    "architecture": {
        "64bit": {
            "url": "https://github.com/go-gitea/gitea/releases/download/v1.26.1/gitea-1.26.1-windows-4.0-amd64.exe#/gitea.exe",
            "hash": "c11216142a497f072506ceb00824d247cf12d0b987c20f5f3cac050a545eb902"
        },
        "32bit": {
            "url": "https://github.com/go-gitea/gitea/releases/download/v1.26.1/gitea-1.26.1-windows-4.0-386.exe#/gitea.exe",
            "hash": "a95b2f3969a6075c6e6a8b0621f6254e18baf9e3cb2a1503e2742f8d09bde43c"
        }
    },
    "post_install": [
        "echo 'Creating $persist_dir\\custom\\conf.app.ini'",
        "if(!(test-path \"$persist_dir\\custom\\conf\")) { mkdir \"$persist_dir\\custom\\conf\" > $null }",
        "if(!(test-path \"$persist_dir\\custom\\conf\\app.ini\")) {",
        "    $gitea = \"[database]`nPATH = $persist_dir/data/gitea.db\"",
        "    $gitea += \"`n[repository]`nROOT = $persist_dir/repositories\"",
        "    $gitea += \"`n[log]`nROOT_PATH = $persist_dir/log\"",
        "    echo $gitea | % {$_.replace(\"\\\",\"/\") } | out-file -encoding oem \"$persist_dir\\custom\\conf\\app.ini\"",
        "}"
    ],
    "bin": "gitea.exe",
    "checkver": {
        "url": "https://github.com/go-gitea/gitea/releases",
        "regex": ">v([\\d.]+(-\\w+)?)<"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/go-gitea/gitea/releases/download/v$version/gitea-$version-windows-4.0-amd64.exe#/gitea.exe"
            },
            "32bit": {
                "url": "https://github.com/go-gitea/gitea/releases/download/v$version/gitea-$version-windows-4.0-386.exe#/gitea.exe"
            }
        },
        "hash": {
            "url": "$url.sha256"
        }
    }
}
