PICARD-2422: Removed packaging of AB streaming extractor

This commit is contained in:
Philipp Wolfer
2022-02-16 11:46:21 +01:00
parent e9c6df2d3e
commit 5e3fa405af
4 changed files with 2 additions and 35 deletions

View File

@@ -35,12 +35,3 @@ if [ -n "$FPCALC_VERSION" ]; then
tar -xf "$FPCALC_FILENAME"
cp "chromaprint-fpcalc-$FPCALC_VERSION-macos-x86_64/fpcalc" .
fi
# Install AcousticBrainz extractor
if [ -n "$ABEXTRACTOR_VERSION" ]; then
ABEXTRACTOR_FILENAME="essentia-extractor-$ABEXTRACTOR_VERSION-macos.tar.gz"
wget "https://github.com/phw/essentia-extractor-builds/releases/download/$ABEXTRACTOR_VERSION/$ABEXTRACTOR_FILENAME"
echo "$ABEXTRACTOR_SHA256SUM $ABEXTRACTOR_FILENAME" | shasum --algorithm 256 --check --status
tar -xf "$ABEXTRACTOR_FILENAME"
cp "essentia-extractor-$ABEXTRACTOR_VERSION-macos/streaming_extractor_music" .
fi

View File

@@ -10,13 +10,7 @@ Param(
$FpcalcVersion,
[Parameter(Mandatory=$true)]
[String]
$FpcalcSha256Sum,
[Parameter(Mandatory=$true)]
[String]
$AbextractorVersion,
[Parameter(Mandatory=$true)]
[String]
$AbextractorSha256Sum
$FpcalcSha256Sum
)
$ErrorActionPreference = "Stop"
@@ -65,11 +59,3 @@ DownloadFile -Url "https://github.com/acoustid/chromaprint/releases/download/v$F
VerifyHash -FileName $ArchiveFile -Sha256Sum $FpcalcSha256Sum
Expand-Archive -Path $ArchiveFile -DestinationPath .\build\fpcalc -Force
Copy-Item .\build\fpcalc\chromaprint-fpcalc-$FpcalcVersion-windows-x86_64\fpcalc.exe .
$ArchiveFile = ".\build\abz.zip"
Write-Output "Downloading AcousticBrainz extractor $AbextractorVersion to $ArchiveFile..."
DownloadFile -Url "https://ftp.acousticbrainz.org/pub/acousticbrainz/essentia-extractor-$AbextractorVersion-win-i686.zip" `
-FileName $ArchiveFile
VerifyHash -FileName $ArchiveFile -Sha256Sum $AbextractorSha256Sum
Expand-Archive -Path $ArchiveFile -DestinationPath .\build\abz -Force
Copy-Item .\build\abz\streaming_extractor_music.exe .