{
    "version": "3.24.246.0",
    "description": "An enhanced clipboard manager",
    "homepage": "https://ditto-cp.sourceforge.io",
    "license": "GPL-3.0-only",
    "architecture": {
        "64bit": {
            "url": "https://github.com/sabrogden/Ditto/releases/download/3.24.246.0/DittoPortable_64bit_3_24_246_0.zip",
            "hash": "d3e1e90d6cf8fa8fc067d718d150422f34feac40081137643b2987cd6da0f004"
        },
        "32bit": {
            "url": "https://github.com/sabrogden/Ditto/releases/download/3.24.246.0/DittoPortable_3_24_246_0.zip",
            "hash": "822c27f6cd73057b4ca2e71293fd53a6c308047cdd2aaef528c6aa7d3508624b"
        }
    },
    "extract_dir": "Ditto",
    "pre_install": [
        "if (!(Test-Path \"$persist_dir\\Ditto.db\")) {",
        "    Write-Host 'File Ditto.db does not exists. Creating.' -f Yellow",
        "    Start-Process -FilePath \"$dir\\Ditto.exe\"",
        "    while (!(Test-Path \"$dir\\Ditto.db\")) {",
        "        Start-Sleep -Milliseconds 500",
        "    }",
        "    Start-Sleep 1",
        "    Stop-Process -Name Ditto",
        "}",
        "$file = 'Ditto.Settings'",
        "if (!(Test-Path \"$persist_dir\\$file\")) {",
        "    Write-Host 'File' $file 'does not exists. Creating.' -f Yellow",
        "    $CONT = @('[Ditto]', 'DBPath3=Ditto.db')",
        "    Set-Content \"$dir\\$file\" ($CONT -join \"`r`n\") -Encoding Ascii",
        "}"
    ],
    "bin": "Ditto.exe",
    "shortcuts": [
        [
            "Ditto.exe",
            "Ditto"
        ]
    ],
    "persist": [
        "Ditto.db",
        "Ditto.Settings"
    ],
    "checkver": {
        "github": "https://github.com/sabrogden/Ditto"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/sabrogden/Ditto/releases/download/$version/DittoPortable_64bit_$underscoreVersion.zip"
            },
            "32bit": {
                "url": "https://github.com/sabrogden/Ditto/releases/download/$version/DittoPortable_$underscoreVersion.zip"
            }
        }
    }
}
