From f638f789a61edabaf30aabd92328ddf1b1f66d95 Mon Sep 17 00:00:00 2001 From: oznu Date: Mon, 4 Apr 2022 22:00:38 +1000 Subject: [PATCH] fix install script --- install.js | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/install.js b/install.js index d5072c6..9d05c14 100755 --- a/install.js +++ b/install.js @@ -35,7 +35,7 @@ function ensureFfmpegCacheDir() { } } -function getDownloadFileName() { +async function getDownloadFileName() { switch (os.platform()) { case 'darwin': if (parseInt(os.release()) >= 18) { @@ -65,7 +65,7 @@ function getDownloadFileName() { default: return null; } - } else if (detectLibc.family === detectLibc.MUSL) { + } else if (await detectLibc.family() === detectLibc.MUSL) { // probably alpine linux switch (process.arch) { case 'x64': @@ -77,7 +77,7 @@ function getDownloadFileName() { default: return null; } - } else if (detectLibc.family === detectLibc.GLIBC) { + } else if (await detectLibc.family() === detectLibc.GLIBC) { switch (process.arch) { case 'x64': return 'ffmpeg-debian-x86_64.tar.gz'; @@ -165,7 +165,7 @@ async function install() { ensureFfmpegCacheDir(); // work out the download file name for the current platform - const ffmpegDownloadFileName = getDownloadFileName(); + const ffmpegDownloadFileName = await getDownloadFileName(); if (!ffmpegDownloadFileName) { if (os.platform() === 'darwin' && parseInt(os.release()) < 18) { diff --git a/package.json b/package.json index fd48db4..39eca56 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ffmpeg-for-homebridge", - "version": "0.0.10", + "version": "0.0.11", "description": "Static ffmpeg binaries for Homebridge with support for audio (libfdk-aac) and hardware decoding (h264_omx).", "author": "oznu ", "homepage": "https://github.com/homebridge/ffmpeg-for-homebridge#readme",