Skip to content

Commit

Permalink
fix linux release download
Browse files Browse the repository at this point in the history
  • Loading branch information
federicocarboni committed Dec 17, 2023
1 parent 6fdaf87 commit eb2ce40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 1 addition & 2 deletions src/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit eb2ce40

Please sign in to comment.