{
    "version": "1.0.37",
    "description": "Fast and highly configurable image viewer/editor with a minimal GUI.",
    "homepage": "https://sourceforge.net/projects/jpegview/",
    "license": "GPL-2.0-only",
    "url": "https://downloads.sourceforge.net/project/jpegview/jpegview/1.0.37/JPEGView_1.0.37.zip",
    "hash": "sha1:fb394fdbff070749956f830bac40d533aa0b4713",
    "architecture": {
        "64bit": {
            "extract_dir": "JPEGView64"
        },
        "32bit": {
            "extract_dir": "JPEGView32"
        }
    },
    "pre_install": [
        "if (!(Test-Path \"$persist_dir\\JPEGView.ini\")) {",
        "    $cont = (Get-Content \"$dir\\JPEGView.ini\").Replace('StoreToEXEPath=false', 'StoreToEXEPath=true')",
        "    Set-Content \"$dir\\JPEGView.ini\" $cont",
        "}",
        "if (Test-Path \"$persist_dir\\ParamDB.db\") { Copy-Item \"$persist_dir\\ParamDB.db\" \"$dir\" | Out-Null }"
    ],
    "uninstaller": {
        "script": "if (Test-Path \"$dir\\ParamDB.db\") { Copy-Item \"$dir\\ParamDB.db\" \"$persist_dir\" | Out-Null }"
    },
    "bin": "JPEGView.exe",
    "shortcuts": [
        [
            "JPEGView.exe",
            "JPEGView"
        ]
    ],
    "checkver": {
        "url": "https://sourceforge.net/projects/jpegview/rss?path=/",
        "regex": "/jpegview/([\\d.]+)/JPEGView_"
    },
    "persist": [
        "JPEGView.ini",
        "KeyMap.txt"
    ],
    "autoupdate": {
        "url": "https://downloads.sourceforge.net/project/jpegview/jpegview/$version/JPEGView_$version.zip"
    }
}
