flush
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
# 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
|
||||
@@ -1,20 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Script per installare getID3 manualmente
|
||||
|
||||
echo "Installazione getID3..."
|
||||
|
||||
# Crea cartella vendor se non esiste
|
||||
mkdir -p vendor/getid3
|
||||
|
||||
# Scarica getID3
|
||||
cd vendor/getid3
|
||||
wget https://github.com/JamesHeinrich/getID3/archive/refs/tags/v1.9.23.tar.gz -O getid3.tar.gz
|
||||
|
||||
# Estrai
|
||||
tar -xzf getid3.tar.gz --strip-components=1
|
||||
rm getid3.tar.gz
|
||||
|
||||
echo "✅ getID3 installato con successo!"
|
||||
echo ""
|
||||
echo "Nota: Se hai Composer disponibile, puoi usare invece:"
|
||||
echo " composer install"
|
||||
Reference in New Issue
Block a user