-
Notifications
You must be signed in to change notification settings - Fork 41
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
updates bash static version (including binaries) #26
Conversation
To avoid having to change the readme file whenever a newer statically linked version of bash is used, removes version number
changes bash statically linked version strips linux binary to reduce size # detects if upx is installed and if so, compress to further reduce binary sizes
Can you add in the version that you added? As well, would be good if you could document how you created the new upx compressed files :) |
if you check the modified Makefile... it shows the exact commands how to create the upx files. BASH_STATIC_VERSION is defined in the makefile at the top. curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-linux \
> $(BASH_DIR)/linux/bash && strip $(BASH_DIR)/linux/bash
curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-osx \
> $(BASH_DIR)/osx/bash
chmod +x $(BASH_DIR)/*/bash
# if upx is present, compress bash binaries
if [ `command -v upx` ]; then upx --8mib-ram --best --brute --ultra-brute -9 $(BASH_DIR)/*/bash; fi
basically, if upx is found, then run |
this 213414f shows everything and is exactly how i have made them |
> $(BASH_DIR)/osx/bash | ||
chmod +x $(BASH_DIR)/**/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i removed the double star ** here since this is only available when shopt globstar is enabled
curl -Ls https://github.com/robxu9/bash-static/releases/download/4.3.30/bash-osx \ | ||
|
||
curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-linux \ | ||
> $(BASH_DIR)/linux/bash && strip $(BASH_DIR)/linux/bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only linux executable gets stripped
<3 Thanks! |
this pr includes updated binaries for linux and osx, stripped and compressed with upx