This commit is contained in:
Francesco Picone
2025-12-06 18:50:57 +01:00
parent 86f4774df2
commit ca86649914
8 changed files with 219 additions and 2 deletions

31
install_getid3.ps1 Normal file
View File

@@ -0,0 +1,31 @@
# Script PowerShell per installare getID3 manualmente
Write-Host "Installazione getID3..." -ForegroundColor Green
# Crea cartella vendor se non esiste
New-Item -ItemType Directory -Force -Path "vendor\getid3" | Out-Null
# URL del download
$url = "https://github.com/JamesHeinrich/getID3/archive/refs/tags/v1.9.23.zip"
$zipFile = "vendor\getid3\getid3.zip"
# Scarica getID3
Write-Host "Download in corso..." -ForegroundColor Yellow
Invoke-WebRequest -Uri $url -OutFile $zipFile
# Estrai
Write-Host "Estrazione file..." -ForegroundColor Yellow
Expand-Archive -Path $zipFile -DestinationPath "vendor\getid3\temp" -Force
# Sposta i file nella posizione corretta
Get-ChildItem "vendor\getid3\temp\getID3-*" | Get-ChildItem | Move-Item -Destination "vendor\getid3" -Force
# Pulisci
Remove-Item -Path "vendor\getid3\temp" -Recurse -Force
Remove-Item -Path $zipFile -Force
Write-Host ""
Write-Host "✅ getID3 installato con successo!" -ForegroundColor Green
Write-Host ""
Write-Host "Nota: Se hai Composer disponibile, puoi usare invece:" -ForegroundColor Cyan
Write-Host " composer install" -ForegroundColor White