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

example doesnt work in release mode on macos #17

Open
Ansh-Rathod opened this issue Nov 11, 2024 · 3 comments
Open

example doesnt work in release mode on macos #17

Ansh-Rathod opened this issue Nov 11, 2024 · 3 comments

Comments

@Ansh-Rathod
Copy link

i tried the example in the release mode on macos and it didn't recognise the command brew, I tried running brew --version in debug mode it works.

@damywise
Copy link

damywise commented Nov 11, 2024

Related: Homebrew/brew#15833

You can fix it by adding

final homeDir = Platform.environment['HOME'] ?? '';

pty.write(const Utf8Encoder().convert('export HOME=$homeDir' + carriageReturn));

after pty.start.

This sets $HOME which is needed by process for it to be able to run brew.

@Ansh-Rathod
Copy link
Author

will it be able to run ffmpeg or any other installed tools too this way?

@damywise
Copy link

From my test on my machine™️ it will

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

No branches or pull requests

2 participants