{
    "version": "1.5",
    "description": "7-Zip plugin that allows 7-zip to open, modify, or create Electron .asar archives.",
    "homepage": "https://www.tc4shell.com/en/7zip/asar/",
    "license": "Freeware",
    "url": "https://www.tc4shell.com/binary/Asar.zip",
    "hash": "ea17751b2d7d607dfc11612e71d0c9d36561e643cdfb2bfb16922a9a0ec6d250",
    "pre_install": [
        "$7z_folder = Split-Path (scoop which 7z)",
        "if (!(Test-Path $7z_folder)) { error 'Could not find 7z.exe in PATH. Abort installation.'; break }",
        "if ($architecture -eq '64bit') { Copy-Item \"$dir\\Asar.64.dll\" \"$7z_folder\\Formats\\\" -Force }",
        "elseif ($architecture -eq '32bit') { Copy-Item \"$dir\\Asar.32.dll\" \"$7z_folder\\Formats\\\" -Force }"
    ],
    "pre_uninstall": [
        "$7z_folder = Split-Path (scoop which 7z)",
        "if (!(Test-Path $7z_folder)) { warn 'Could not find 7z.exe in PATH.' }",
        "if ($architecture -eq '64bit') { Remove-Item \"$7z_folder\\Formats\\Asar.64.dll\" }",
        "elseif ($architecture -eq '32bit') { Remove-Item \"$7z_folder\\Formats\\Asar.32.dll\" }"
    ],
    "checkver": "Plugin version: ([\\d.]+)",
    "autoupdate": {
        "url": "https://www.tc4shell.com/binary/Asar.zip"
    }
}
