From eb2ce405fa9fb871fb8101c866a42d44591d449f Mon Sep 17 00:00:00 2001 From: Federico Carboni <48333714+FedericoCarboni@users.noreply.github.com> Date: Sun, 17 Dec 2023 11:03:28 +0100 Subject: [PATCH] fix linux release download --- dist/index.js | 3 +-- src/download.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 75502c9..308b37b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -53720,10 +53720,9 @@ async function getToolVersion(version) { * @param {DownloadOptions} options */ async function downloadLinux({ version, toolVersion, skipVerify }) { - version = version || 'git'; const arch = getLinuxArch(); external_assert_default().ok(arch, UNSUPPORTED_PLATFORM); - const tool = `https://johnvansickle.com/ffmpeg/builds/ffmpeg-${version}-${arch}-static.tar.xz`; + const tool = `https://johnvansickle.com/ffmpeg/${version === 'git' ? 'builds' : 'releases'}/ffmpeg-${version}-${arch}-static.tar.xz`; const sig = tool + '.md5'; const downloadPath = await tool_cache.downloadTool(tool); if (!skipVerify) { diff --git a/src/download.js b/src/download.js index 2559095..388272d 100644 --- a/src/download.js +++ b/src/download.js @@ -84,10 +84,9 @@ export async function getToolVersion(version) { * @param {DownloadOptions} options */ async function downloadLinux({ version, toolVersion, skipVerify }) { - version = version || 'git'; const arch = getLinuxArch(); assert.ok(arch, UNSUPPORTED_PLATFORM); - const tool = `https://johnvansickle.com/ffmpeg/builds/ffmpeg-${version}-${arch}-static.tar.xz`; + const tool = `https://johnvansickle.com/ffmpeg/${version === 'git' ? 'builds' : 'releases'}/ffmpeg-${version}-${arch}-static.tar.xz`; const sig = tool + '.md5'; const downloadPath = await tc.downloadTool(tool); if (!skipVerify) {