Publish YouTubeDL 1.4.5 and website on Gitea
Check extension and helper / check (push) Canceled after 0s

This commit is contained in:
DepressedCat committed 2026-10-10 23:53:17 +03:00
commit 5f2aad00f4
97 files changed
+8451

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
[CmdletBinding()]
param()
$ErrorActionPreference = 'Stop'
$taskExpectedManifest = Join-Path $PSScriptRoot '.runtime\native-host.json'
foreach ($taskBrowser in @('Google\Chrome','Microsoft\Edge','Chromium')) {
$taskRegistryPath = "HKCU:\Software\$taskBrowser\NativeMessagingHosts\com.youtubedl.native"
if (Test-Path -LiteralPath $taskRegistryPath) {
$taskCurrentManifest = (Get-Item -LiteralPath $taskRegistryPath).GetValue('')
if ($taskCurrentManifest -eq $taskExpectedManifest) { Remove-Item -LiteralPath $taskRegistryPath }
}
}
Write-Host 'Native helper unregistered. Remove YouTubeDL from the browser extensions page.'
Write-Host 'Downloaded media files have not been removed.'