Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: move ffmpeg to correct folder after extract #917

Merged
merged 2 commits into from
Aug 10, 2023

Conversation

zkrige
Copy link
Collaborator

@zkrige zkrige commented Aug 10, 2023

Fixes: #916

Description

reinstate the replaceFfmpeg code that was removed during cleanup

Copy link
Collaborator

@ayushmanchhabra ayushmanchhabra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! One case where this fails is when initially ffmpeg is false and a binary is already cached. But enabling ffmpeg does not download it since it thinks its already "cached".

Maybe we can add this here:

- if (nwCached === false) {
+if (nwCached === false || ffmpeg === true) { 

@zkrige
Copy link
Collaborator Author

zkrige commented Aug 10, 2023

It needs to be a little bit smarter otherwise it will download ffmpeg every time. we only want to download ffmpeg if it hasn't been downloaded.

your solution will for for now, but ideally it should check if ffmpeg must be downloaded

@ayushmanchhabra
Copy link
Collaborator

It needs to be a little bit smarter otherwise it will download ffmpeg every time. we only want to download ffmpeg if it hasn't been downloaded.

Exactly what I was thinking.

your solution will for for now, but ideally it should check if ffmpeg must be downloaded

I'll look into how to make this happen.

@ayushmanchhabra ayushmanchhabra merged commit 6e8cef6 into nwutils:main Aug 10, 2023
@zkrige
Copy link
Collaborator Author

zkrige commented Aug 11, 2023

@ayushmanchhabra hmmm this is still broken

await replaceFfmpeg(platform, nwDir, out);

just ends up copying the zip file over itself. We need some way to get the extracted filename

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

libffmpeg not being installed into correct folder
2 participants