{
    "version": "2.18.2",
    "description": "A tool to install, manage and use Progressive Web Apps (PWAs) in Mozilla Firefox (native component)",
    "homepage": "https://pwasforfirefox.filips.si/",
    "license": "MPL-2.0",
    "notes": [
        "You have successfully installed the native part of the PWAsForFirefox project",
        "You should also install the Firefox extension if you haven't already",
        "Download: https://addons.mozilla.org/firefox/addon/pwas-for-firefox/"
    ],
    "suggest": {
        "vcredist": "extras/vcredist2022",
        "firefox": "extras/firefox"
    },
    "architecture": {
        "64bit": {
            "url": "https://github.com/filips123/PWAsForFirefox/releases/download/v2.18.2/firefoxpwa-2.18.2-x86_64.msi",
            "hash": "ec17c701a7ac1513febb1d501d4477e1222a05568851e41ef969e2af8729adfd"
        },
        "32bit": {
            "url": "https://github.com/filips123/PWAsForFirefox/releases/download/v2.18.2/firefoxpwa-2.18.2-x86.msi",
            "hash": "6536680ee1e9849e27378dab71b3dc070c7eb2195e2b27f01a6344de4d604156"
        }
    },
    "post_install": [
        "$hive = switch ($global) { $true { \"HKLM\" } $false { \"HKCU\" }}",
        "If (!(Test-Path(\"${hive}:\\Software\\filips\\FirefoxPWA\"))) { New-Item -Path \"${hive}:\\Software\\filips\\FirefoxPWA\" -Force | Out-Null }",
        "New-ItemProperty -Path \"${hive}:\\Software\\filips\\FirefoxPWA\" -Name \"Path\" -Value \"${dir}\" -Force | Out-Null",
        "New-ItemProperty -Path \"${hive}:\\Software\\filips\\FirefoxPWA\" -Name \"Version\" -Value \"${version}\" -Force | Out-Null",
        "If (!(Test-Path(\"${hive}:\\Software\\Mozilla\\NativeMessagingHosts\\firefoxpwa\"))) { New-Item -Path \"${hive}:\\Software\\Mozilla\\NativeMessagingHosts\\firefoxpwa\" -Force | Out-Null }",
        "New-ItemProperty -Path \"${hive}:\\Software\\Mozilla\\NativeMessagingHosts\\firefoxpwa\" -Name \"(Default)\" -Value \"${dir}\\firefoxpwa.json\" -Force | Out-Null"
    ],
    "post_uninstall": [
        "$hive = switch ($global) { $true { \"HKLM\" } $false { \"HKCU\" }}",
        "Remove-Item -Path \"${hive}:\\Software\\filips\\FirefoxPWA\" -Force | Out-Null",
        "Remove-Item -Path \"${hive}:\\Software\\Mozilla\\NativeMessagingHosts\\firefoxpwa\" -Force | Out-Null"
    ],
    "extract_dir": "PFiles\\FirefoxPWA",
    "bin": "firefoxpwa.exe",
    "checkver": {
        "github": "https://github.com/filips123/PWAsForFirefox"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/filips123/PWAsForFirefox/releases/download/v$version/firefoxpwa-$version-x86_64.msi"
            },
            "32bit": {
                "url": "https://github.com/filips123/PWAsForFirefox/releases/download/v$version/firefoxpwa-$version-x86.msi"
            }
        }
    }
}
