{
    "version": "1.4.5",
    "description": "Automatically switch the display state of the Windows Taskbar",
    "homepage": "https://github.com/ChanpleCai/SmartTaskbar",
    "license": "MIT",
    "notes": "Run 'smarttaskbar-add-startup' to add SmartTaskbar to startup programs.",
    "url": "https://github.com/ChanpleCai/SmartTaskbar/releases/download/v1.4.5/SmartTaskbar_Setup.exe",
    "hash": "a7b08377906a3d41bfd54141f8bba8bd5c81cc07e157d7cdb63b23f71fde9a98",
    "innosetup": true,
    "installer": {
        "script": [
            "$startup = shortcut_folder $global | Select-Object -ExpandProperty Path | Split-Path -Parent | Join-Path -ChildPath 'Startup'",
            "$current_dir = if (get_config NO_JUNCTIONS) { $dir } else { \"$(appdir $app $global)\\current\" }",
            "$cont = @(",
            "    '$wsShell = New-Object -ComObject WScript.Shell'",
            "    \"`$wsShell = `$wsShell.CreateShortcut('$startup\\SmartTaskbar.lnk')\"",
            "    \"`$wsShell.TargetPath = '$current_dir\\SmartTaskbar.exe'\"",
            "    \"`$wsShell.WorkingDirectory = '$current_dir'\"",
            "    '$wsShell.Save()'",
            "    'Write-Host \"SmartTaskbar has been added to the startup programs.\"'",
            "    'Write-Host \"Run `smarttaskbar-remove-startup` to remove from startup.\"'",
            ")",
            "Set-Content \"$dir\\smarttaskbar-add-startup.ps1\" -Value ($cont -join \"`r`n\") -Encoding Ascii",
            "Set-Content \"$dir\\smarttaskbar-remove-startup.ps1\" -Value \"Remove-Item '$startup\\SmartTaskbar.lnk' -ErrorAction SilentlyContinue -Force\" -Encoding Ascii"
        ]
    },
    "uninstaller": {
        "file": "smarttaskbar-remove-startup.ps1"
    },
    "bin": [
        "SmartTaskbar.exe",
        "smarttaskbar-add-startup.ps1",
        "smarttaskbar-remove-startup.ps1"
    ],
    "persist": "SmartTaskbar.exe.config",
    "shortcuts": [
        [
            "SmartTaskbar.exe",
            "SmartTaskbar"
        ]
    ],
    "checkver": "github",
    "autoupdate": {
        "url": "https://github.com/ChanpleCai/SmartTaskbar/releases/download/v$version/SmartTaskbar_Setup.exe"
    }
}
