-
Notifications
You must be signed in to change notification settings - Fork 211
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
Update installer instructions for new computers #523
Comments
Also, as I understand |
Isn't this done in bootstrap.sh for linux at least already? ##
## Detect acceptable package formats
##
my_ext=""
set +e
# NOTE: the order here is least favorable to most favorable
if [ -n "\$(command -v pkgutil)" ]; then
my_ext="pkg,\$my_ext"
fi
# disable this check for the sake of building the macOS installer on Linux
#if [ -n "\$(command -v diskutil)" ]; then
# note: could also detect via hdiutil
my_ext="dmg,\$my_ext"
#fi
if [ -n "\$(command -v git)" ]; then
my_ext="git,\$my_ext"
fi
if [ -n "\$(command -v unxz)" ]; then
my_ext="xz,\$my_ext"
fi
if [ -n "\$(command -v unzip)" ]; then
my_ext="zip,\$my_ext"
fi
# for mac/linux 'exe' refers to the uncompressed binary without extension
my_ext="exe,\$my_ext"
if [ -n "\$(command -v tar)" ]; then
my_ext="tar,\$my_ext"
fi
my_ext="\$(echo "\$my_ext" | sed 's/,$//')" # nix trailing comma
set -e |
@smileart FYI: I also created I should make an envman project that just links to those two for the time being. I was going to have it do |
@thegreatestgiant That's close to where we should be putting some of the checks and notifications. for example: if [ -n "\$(command -v unzip)" ]; then
my_ext="zip,\$my_ext"
else
printf >&2 '\e[35m[WARN] `unzip` is not installed\e[0m'
fi I'd have to take a closer look again to know for sure. There's a bit of matching going on: the client sends which packages it would prefer and the server, knowing which are available, sends that info back. If zip or xz is available but unzip or unxz are not installed, that's when we should print the error - because it's not that a suitable package wasn't found, but that the environment is missing some pretty normal stuff. The trick is that we don't want to error in the case that everything could have gone successful (there is a match between available packages and ones that can be used, even if non-optimal). |
A fairly common occurrence is that when a webi user gets a new computer, they forget to install common pre-requisites.
softwareupdate --install-rosetta
andxcode-select --install
zip
source ~/.config/envman/PATH.env
How to make the first time, new computer user experience better without making the existing user experience worse?
Maybe we say that the website is for first time users?
The text was updated successfully, but these errors were encountered: