{
    "version": "150-103a",
    "description": "Remote desktop software, Portable.",
    "homepage": "https://parsec.app",
    "license": {
        "identifier": "Proprietary",
        "url": "https://unity.com/legal/parsec-additional-terms"
    },
    "architecture": {
        "64bit": {
            "url": "https://builds.parsec.app/package/parsec-flat-windows.zip#/dl.zip",
            "hash": "793f38870057b51f9675877aee98fd547ac0674ff2cfde66b1f30846193fd1a3"
        }
    },
    "pre_install": [
        "'hotkey.json', 'config.txt', 'config.json', 'log.txt' | ForEach-Object {",
        "    if (!(Test-Path -Path \"$persist_dir\\$_\")) {",
        "        New-Item -Type File \"$dir\\$_\" | Out-Null",
        "    }",
        "}"
    ],
    "post_install": [
        "# Parsec can't be started from a symlinked directory.",
        "# See: https://github.com/ScoopInstaller/Extras/issues/16424",
        "startmenu_shortcut \"$original_dir\\parsecd.exe\" 'Parsec' $null $null $global"
    ],
    "persist": [
        "hotkey.json",
        "config.txt",
        "config.json",
        "log.txt"
    ],
    "post_uninstall": [
        "# Remove shortcut",
        "Write-Host \"Removing shortcut $(friendly_path \"$(shortcut_folder $global)\\Parsec.lnk\")\"",
        "Remove-Item \"$(shortcut_folder $global)\\Parsec.lnk\" -Force -ErrorAction Ignore"
    ],
    "checkver": {
        "url": "https://parsec.app/changelog.xml",
        "regex": "<parsec:build>([\\w-]+)</parsec:build>"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://builds.parsec.app/package/parsec-flat-windows.zip#/dl.zip"
            }
        }
    }
}
