{
    "version": "2.0.16",
    "description": "Open Source Continuous File Synchronization.",
    "homepage": "https://syncthing.net/",
    "license": "MPL-2.0",
    "notes": "To start syncthing automatically, use a method described at https://docs.syncthing.net/users/autostart.html#windows",
    "architecture": {
        "64bit": {
            "url": "https://github.com/syncthing/syncthing/releases/download/v2.0.16/syncthing-windows-amd64-v2.0.16.zip",
            "hash": "5b519408c11e69e712702911caa399077e3fc602d8d70d6147f620e67bd83037",
            "extract_dir": "syncthing-windows-amd64-v2.0.16"
        },
        "32bit": {
            "url": "https://github.com/syncthing/syncthing/releases/download/v2.0.16/syncthing-windows-386-v2.0.16.zip",
            "hash": "c8e17cb290290f78823e0900b46a3b6020a1afbf8760533534f3a6fc8a6e2538",
            "extract_dir": "syncthing-windows-386-v2.0.16"
        },
        "arm64": {
            "url": "https://github.com/syncthing/syncthing/releases/download/v2.0.16/syncthing-windows-arm64-v2.0.16.zip",
            "hash": "0d0ea5ced8d900ec861628ff8fa4d7ec529c8a662f5183d7c49d5333d0cae71e",
            "extract_dir": "syncthing-windows-arm64-v2.0.16"
        }
    },
    "pre_install": [
        "if (!(Test-Path \"$persist_dir\\config\") -and (Test-Path \"$env:LOCALAPPDATA\\Syncthing\")) {",
        "    info \"Copying old '$env:LOCALAPPDATA\\Syncthing' to '$persist_dir\\config'\"",
        "    ensure \"$dir\\config\" | Out-Null",
        "    Copy-Item \"$env:LOCALAPPDATA\\Syncthing\\*\" \"$dir\\config\" -Exclude 'LOCK' -Recurse -Force",
        "}"
    ],
    "bin": [
        [
            "syncthing.exe",
            "syncthing",
            "--home \"$dir\\config\" --no-upgrade"
        ]
    ],
    "persist": "config",
    "checkver": {
        "github": "https://github.com/syncthing/syncthing"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/syncthing/syncthing/releases/download/v$version/syncthing-windows-amd64-v$version.zip",
                "extract_dir": "syncthing-windows-amd64-v$version"
            },
            "32bit": {
                "url": "https://github.com/syncthing/syncthing/releases/download/v$version/syncthing-windows-386-v$version.zip",
                "extract_dir": "syncthing-windows-386-v$version"
            },
            "arm64": {
                "url": "https://github.com/syncthing/syncthing/releases/download/v$version/syncthing-windows-arm64-v$version.zip",
                "extract_dir": "syncthing-windows-arm64-v$version"
            }
        },
        "hash": {
            "url": "$baseurl/sha256sum.txt.asc"
        }
    }
}
