{
    "version": "3.3.3",
    "description": "Allows to get the best experience while using a DualShock 4 on PC.",
    "homepage": "https://ryochan7.github.io/ds4windows-site/",
    "license": "MIT",
    "notes": "ViGEmBus is required for DS4Windows to work. You can install it within the app.",
    "suggest": {
        ".NET Desktop Runtime": "extras/windowsdesktop-runtime"
    },
    "architecture": {
        "64bit": {
            "url": "https://github.com/Ryochan7/DS4Windows/releases/download/v3.3.3/DS4Windows_3.3.3_x64.zip",
            "hash": "cf5619bcb51b82e4e1765276e9f67fb1e2d23dff968a653657acf35bafff8bf4"
        },
        "32bit": {
            "url": "https://github.com/Ryochan7/DS4Windows/releases/download/v3.3.3/DS4Windows_3.3.3_x86.zip",
            "hash": "5d2a287b6dd5e8da8f9d9ee058bce12880d3d5a90752aa6a3e5769baaacadca2"
        }
    },
    "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/Ryochan7/DS4Windows"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/Ryochan7/DS4Windows/releases/download/v$version/DS4Windows_$version_x64.zip"
            },
            "32bit": {
                "url": "https://github.com/Ryochan7/DS4Windows/releases/download/v$version/DS4Windows_$version_x86.zip"
            }
        }
    }
}
