Skip to content

Commit

Permalink
fix install script
Browse files Browse the repository at this point in the history
  • Loading branch information
oznu committed Apr 4, 2022
1 parent 3272a56 commit f638f78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions install.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function ensureFfmpegCacheDir() {
}
}

function getDownloadFileName() {
async function getDownloadFileName() {
switch (os.platform()) {
case 'darwin':
if (parseInt(os.release()) >= 18) {
Expand Down Expand Up @@ -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':
Expand All @@ -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';
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"homepage": "https://github.com/homebridge/ffmpeg-for-homebridge#readme",
Expand Down

0 comments on commit f638f78

Please sign in to comment.