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

macos binary fails #103

Closed
yshavit opened this issue Jul 11, 2024 · 0 comments · Fixed by #104
Closed

macos binary fails #103

yshavit opened this issue Jul 11, 2024 · 0 comments · Fixed by #104
Labels
bug Something isn't working

Comments

@yshavit
Copy link
Owner

yshavit commented Jul 11, 2024

MacOS blocks binaries from untrusted sources, so you can't just download the binary, chmod +x it, and go.

A workaround is to base64 encode the binary, and then decode it back and chmod that. It looks like in that process, you lose the flag that tells MacOS that this came from an external library.

One option could therefore to write a simple "installer" that takes the base64 of the binary and decodes it. You could do this in the form of a bash script that:

  1. contains some bash code, then a delimiter line like # BASE64 FOLLOWS
  2. the bash code cats itself, uses awk to only print out the lines after that delimiter, base64 -d on that, and then chmod +x
@yshavit yshavit added the bug Something isn't working label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant