{
    "version": "4.0.26126.2149",
    "description": "A powerful, multi-purpose tool that helps you monitor system resources, debug software and detect malware.",
    "homepage": "https://systeminformer.sourceforge.io",
    "license": "MIT",
    "architecture": {
        "32bit": {
            "url": "https://github.com/winsiderss/si-builds/releases/download/4.0.26126.2149/systeminformer-build-win32-bin.zip",
            "hash": "c8913c77f51e4fd07410678d3dd2b71f7db664c9b95892876d5e54c1e4099ec6"
        },
        "64bit": {
            "url": "https://github.com/winsiderss/si-builds/releases/download/4.0.26126.2149/systeminformer-build-win64-bin.zip",
            "hash": "75841ff6d6a0bd722553e9911c7eb40413f05c86068575a7f1c6bbf11bdabea1"
        },
        "arm64": {
            "url": "https://github.com/winsiderss/si-builds/releases/download/4.0.26126.2149/systeminformer-build-arm64-bin.zip",
            "hash": "498602f8c4d5aec84db396db837f64f58c4b25315cc25ce7174ac24f1176f291"
        }
    },
    "pre_install": [
        "# Hardlink cannot be used here, as System Informer would create a new file instead of writing directly.",
        "'SystemInformer.exe.settings.xml', 'usernotesdb.xml' | ForEach-Object {",
        "    if (-not (Test-Path \"$persist_dir\\$_\")) {",
        "        New-Item \"$dir\\$_\" -ItemType File | Out-Null",
        "    } else {",
        "        Copy-Item \"$persist_dir\\$_\" \"$dir\\$_\" -ErrorAction 'SilentlyContinue'",
        "    }",
        "}"
    ],
    "post_install": [
        "# Clear icon GUIDs",
        "$settings = Get-ChildItem \"$dir\\SystemInformer.exe.settings.xml\"",
        "$settingsXml = [xml](Get-Content $settings)",
        "if ($settingsXml.settings -eq $null) { return }",
        "($settingsXml.settings.ChildNodes | Where-Object { $_.name.Contains(\"IconGuids\") }) | ForEach-Object { [void]$_.ParentNode.RemoveChild($_) }",
        "$settingsXml.Save($settings)"
    ],
    "shortcuts": [
        [
            "SystemInformer.exe",
            "System Informer"
        ]
    ],
    "pre_uninstall": [
        "# Hardlink cannot be used here, as System Informer would create a new file instead of writing directly.",
        "ensure $persist_dir",
        "'SystemInformer.exe.settings.xml', 'usernotesdb.xml' | ForEach-Object {",
        "    Copy-Item \"$dir\\$_\" \"$persist_dir\\$_\" -ErrorAction 'SilentlyContinue'",
        "}"
    ],
    "checkver": {
        "github": "https://github.com/winsiderss/si-builds"
    },
    "autoupdate": {
        "architecture": {
            "32bit": {
                "url": "https://github.com/winsiderss/si-builds/releases/download/$version/systeminformer-build-win32-bin.zip"
            },
            "64bit": {
                "url": "https://github.com/winsiderss/si-builds/releases/download/$version/systeminformer-build-win64-bin.zip"
            },
            "arm64": {
                "url": "https://github.com/winsiderss/si-builds/releases/download/$version/systeminformer-build-arm64-bin.zip"
            }
        }
    }
}
