feat: Playtube Stream Dock Plugin 1.0.0 (Ajazz AKP153E) mit Icon-Pack
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
# Installiert das Playtube-Plugin und das Icon-Pack in die Stream-Dock-Software (Ajazz/Mirabox).
|
||||
#
|
||||
# Aufruf (im Repo-Ordner):
|
||||
# powershell -ExecutionPolicy Bypass -File install.ps1
|
||||
#
|
||||
# Danach die Stream-Dock-Software komplett beenden (Tray-Symbol -> Beenden) und neu starten.
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$sdRoot = Join-Path $env:APPDATA "HotSpot\StreamDock"
|
||||
if (-not (Test-Path $sdRoot)) {
|
||||
throw "Stream Dock ist nicht installiert: $sdRoot nicht gefunden."
|
||||
}
|
||||
|
||||
function Install-Folder([string]$Source, [string]$TargetParent) {
|
||||
if (-not (Test-Path $Source)) { throw "Nicht gefunden: $Source (im Repo-Ordner ausfuehren)" }
|
||||
New-Item -ItemType Directory -Path $TargetParent -ErrorAction SilentlyContinue | Out-Null
|
||||
$target = Join-Path $TargetParent (Split-Path $Source -Leaf)
|
||||
# Nur den eigenen Ordner ersetzen, damit keine Reste alter Versionen bleiben.
|
||||
if (Test-Path $target) { Remove-Item -Recurse -Path $target }
|
||||
Copy-Item -Recurse -Path $Source -Destination $target
|
||||
Write-Host "Installiert: $target" -ForegroundColor Green
|
||||
}
|
||||
|
||||
Install-Folder (Join-Path $PSScriptRoot "com.fojadrachi.playtube.sdPlugin") (Join-Path $sdRoot "plugins")
|
||||
|
||||
$iconPack = Join-Path $PSScriptRoot "iconpack\com.fojadrachi.playtube.sdIconPack"
|
||||
if (Test-Path $iconPack) {
|
||||
Install-Folder $iconPack (Join-Path $sdRoot "icons")
|
||||
}
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "Fertig. Stream Dock jetzt beenden (Tray-Symbol) und neu starten." -ForegroundColor Cyan
|
||||
Write-Host "Aktionen: Kategorie 'Playtube'. Playtube ab 4.5.1 muss laufen." -ForegroundColor Cyan
|
||||
Reference in New Issue
Block a user