{
    "version": "3.9.9",
    "description": "Allows to get the best experience while using a DualShock 4 on PC.",
    "homepage": "https://github.com/schmaldeo/DS4Windows",
    "license": "GPLv3",
    "notes": "ViGEmBus is required for DS4Windows to work. You can install it within the app.",
    "suggest": {
        ".NET Desktop Runtime 8.0": "versions/windowsdesktop-runtime-8.0"
    },
    "architecture": {
        "64bit": {
            "url": "https://github.com/schmaldeo/DS4Windows/releases/download/v3.9.9/DS4Windows_3.9.9_x64.zip",
            "hash": "70c4fe79ef63c039e603e298f73dc41a971a9884348288c8a7eb9dc739c4cb9f"
        },
        "32bit": {
            "url": "https://github.com/schmaldeo/DS4Windows/releases/download/v3.9.9/DS4Windows_3.9.9_x86.zip",
            "hash": "0492eda256423491b1b0dd5fd4f49d497a579bd99a52a59c68d765c4e6753d38"
        }
    },
    "extract_dir": "DS4Windows",
    "pre_install": [
        "$conf = @(",
        "    @{'Actions.xml' = @'",
        "<?xml version=\"1.0\" encoding=\"utf-8\"?>",
        "<Actions>",
        "    <Action Name=\"Disconnect Controller\">",
        "        <Trigger>PS/Options</Trigger>",
        "        <Type>DisconnectBT</Type>",
        "        <Details>0</Details>",
        "    </Action>",
        "</Actions>",
        "'@ }",
        "    @{'Auto Profiles.xml' = '<?xml version=\"1.0\" encoding=\"utf-8\"?><Programs />' }",
        "    @{'ControllerConfigs.xml' = '<?xml version=\"1.0\" encoding=\"utf-8\"?><Controllers />' }",
        "    @{'LinkedProfiles.xml' = '<?xml version=\"1.0\" encoding=\"utf-8\"?><LinkedControllers />' }",
        "    @{'OutputSlots.xml' = '<?xml version=\"1.0\" encoding=\"utf-8\"?><OutputSlots />' }",
        "    @{'Profiles.xml' = '<?xml version=\"1.0\" encoding=\"utf-8\"?><Profile><CheckWhen>0</CheckWhen></Profile>' }",
        ")",
        "",
        "# Create default files",
        "foreach ($k in $conf.Keys) {",
        "    if (!(Test-Path \"$persist_dir\\$k\")) { ",
        "        Set-Content \"$dir\\$k\" $conf.$k -Encoding Ascii",
        "    }",
        "}",
        "",
        "# Delete updater",
        "if (Test-Path \"$dir\\DS4Updater.exe\") { Remove-Item \"$dir\\DS4Updater.exe\" -Force }"
    ],
    "shortcuts": [
        [
            "DS4Windows.exe",
            "DS4Windows"
        ]
    ],
    "persist": [
        "Profiles",
        "Actions.xml",
        "Auto Profiles.xml",
        "ControllerConfigs.xml",
        "LinkedProfiles.xml",
        "OutputSlots.xml",
        "Profiles.xml"
    ],
    "checkver": {
        "github": "https://github.com/schmaldeo/DS4Windows"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/schmaldeo/DS4Windows/releases/download/v$version/DS4Windows_$version_x64.zip"
            },
            "32bit": {
                "url": "https://github.com/schmaldeo/DS4Windows/releases/download/v$version/DS4Windows_$version_x86.zip"
            }
        }
    }
}
