Publish YouTubeDL 1.4.5 and website on Gitea
Check extension and helper / check (push) Canceled after 0s
Check extension and helper / check (push) Canceled after 0s
This commit is contained in:
commit
5f2aad00f4
97 files changed
+8451
No files matched your search
@@ -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.'
|
||||
Reference in new issue
Block a user