Skip to content
New issue

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

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

Already on GitHub? # to your account

Make brain.sh portable #8

Open
xplshn opened this issue Jun 19, 2024 · 0 comments
Open

Make brain.sh portable #8

xplshn opened this issue Jun 19, 2024 · 0 comments

Comments

@xplshn
Copy link

xplshn commented Jun 19, 2024

Hi, this is just a suggestion, but, through the use of statically linked binaries, you can get rid of the hard-dependencies on jq, bash, etc, by using the bigdl binary manager like this: "wget -qO- "https://raw.githubusercontent.com/xplshn/bigdl/master/stubdl" | sh -s -- run --transparent jq", you could even get rid of the hard dependency on bash by using "wget -qO- "https://raw.githubusercontent.com/xplshn/bigdl/master/stubdl" | sh -s -- run --transparent bash <<BASH_SCRIPT"

Bigdl is a small, suckless package manager written in Go, and it provides more than 1550 statically linked binaries

Another thing that can be done, is, integrate such statically linked binaries directly into brain.sh, using something like https://github.com/xplshn/Handyscripts/blob/master/pelf or doing it manually, PELF basically packages a program + its dependencies + an optional wrapper + optional libs and files into a single binary that can be used the same way as the original program.

I really wish to cooperate and add more binaries to BigDl and I think your project and mine could benefit a lot by cooperating.

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

No branches or pull requests

1 participant