Compare commits

..

9 Commits

Author SHA1 Message Date
Brooke Kuhlmann
740c91103a Added version release notes 2021-08-01 08:46:48 -06:00
Brooke Kuhlmann
80f289a6b8 Removed NPM install check function
No longer necessary now that Fast Node Manager is being used and
replaces this functionality.
2021-07-29 19:59:42 -06:00
Brooke Kuhlmann
e919d07068 Added install Node function
Necessary to ensure Node is installed using the latest stable release
by default.
2021-07-29 19:58:51 -06:00
Brooke Kuhlmann
2e95c72d57 Updated Node package install script to use NPM
Yarn has fallen out of favor in the community so have switched to
native NPM support instead.
2021-07-29 18:00:04 -06:00
Brooke Kuhlmann
f790b05831 Updated shell option help text
Necessary to help clarify the install option.
2021-07-25 08:42:33 -06:00
Brooke Kuhlmann
c849ac76e2 Updated Ruby installer to use Frum
Necessary to match upcoming changes in the macOS Configuration project
where Frum is now the default Ruby Version Manager instead of chruby.
2021-07-25 08:26:21 -06:00
Brooke Kuhlmann
029fce45b4 Added version release notes 2021-07-17 11:44:05 -06:00
Brooke Kuhlmann
e9d1928b90 Updated to Ruby 3.0.2
Necessary to address security fixes. [Details](https://chl.li/J2u5O).
2021-07-07 13:29:28 -06:00
Brooke Kuhlmann
14394e5c51 Updated to Ruby 3.0.1
Necessary to account for a couple of security vulnerabilities with temp
path and the REXML library.
2021-04-05 17:58:32 -06:00
8 changed files with 31 additions and 19 deletions

View File

@@ -1 +1 @@
3.0.0 3.0.2

View File

@@ -1,5 +1,18 @@
= Changes = Changes
== 13.0.0 (2021-08-01)
* Added install Node function - Brooke Kuhlmann
* Updated Node package install script to use NPM - Brooke Kuhlmann
* Updated Ruby installer to use Frum - Brooke Kuhlmann
* Updated shell option help text - Brooke Kuhlmann
* Removed NPM install check function - Brooke Kuhlmann
== 12.0.1 (2021-07-17)
* Updated to Ruby 3.0.1 - Brooke Kuhlmann
* Updated to Ruby 3.0.2 - Brooke Kuhlmann
== 12.0.0 (2021-03-16) == 12.0.0 (2021-03-16)
* Fixed environment configuration to source Bash resource - Brooke Kuhlmann * Fixed environment configuration to source Bash resource - Brooke Kuhlmann

View File

@@ -59,7 +59,7 @@ To install, run:
---- ----
git clone https://github.com/bkuhlmann/mac_os.git git clone https://github.com/bkuhlmann/mac_os.git
cd mac_os cd mac_os
git checkout 12.0.0 git checkout 13.0.0
---- ----
== Usage == Usage

View File

@@ -10,7 +10,7 @@ IFS=$'\n\t'
SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/install_node_packages" SCRIPT_PATH="$MAC_OS_CONFIG_PATH/bin/install_node_packages"
if [[ -x "$SCRIPT_PATH" ]]; then if [[ -x "$SCRIPT_PATH" ]]; then
check_yarn_install install_node
"$SCRIPT_PATH" "$SCRIPT_PATH"
else else
printf "WARNING: Node packages install script does not exist or is not executable.\n" printf "WARNING: Node packages install script does not exist or is not executable.\n"

View File

@@ -45,7 +45,7 @@ while true; do
printf " rc: Install Rust crates.\n" printf " rc: Install Rust crates.\n"
printf " d: Apply default settings.\n" printf " d: Apply default settings.\n"
printf " cs: Configure installed software.\n" printf " cs: Configure installed software.\n"
printf " i: Install everything (i.e. executes all install options in order listed).\n" printf " i: Install all (i.e. executes all of the above steps in order listed).\n"
printf " Restore:\n" printf " Restore:\n"
printf " R: Restore settings from backup.\n" printf " R: Restore settings from backup.\n"
printf " Manage:\n" printf " Manage:\n"

View File

@@ -188,14 +188,23 @@ install_program() {
} }
export -f install_program export -f install_program
# Installs Node.
# Parameters: None.
install_node() {
if ! command -v fnm > /dev/null; then
$(get_homebrew_bin_root)/fnm install --lts
fi
}
export -f install_node
# Installs Ruby. # Installs Ruby.
# Parameters: None. # Parameters: None.
install_ruby() { install_ruby() {
local version="$(cat $HOME/.ruby-version | tr -d '\n')" local version="$(cat $HOME/.ruby-version | tr -d '\n')"
if [[ ! -x "$(command -v ruby)" && -n $(ruby --version | grep --quiet "$version") ]]; then if [[ ! -x "$(command -v ruby)" && -n $(ruby --version | grep --quiet "$version") ]]; then
$(get_homebrew_bin_root)/ruby-install "ruby-$version" $(get_homebrew_bin_root)/frum install "$version"
chruby "$version" $(get_homebrew_bin_root)/frum local "$version"
gem update --system && gem update gem update --system && gem update
fi fi
} }

View File

@@ -101,16 +101,6 @@ get_install_root() {
} }
export -f get_install_root export -f get_install_root
# Checks Yarn has been installed and exits if otherwise.
# Parameters: None.
check_yarn_install() {
if ! command -v yarn > /dev/null; then
printf "%s\n" "ERROR: Yarn can't be found. Please ensure Homebrew and Yarn have been installed."
exit 1
fi
}
export -f check_yarn_install
# Checks Mac App Store (mas) CLI has been installed and exits if otherwise. # Checks Mac App Store (mas) CLI has been installed and exits if otherwise.
# Parameters: None. # Parameters: None.
check_mas_install() { check_mas_install() {

View File

@@ -129,13 +129,13 @@ export -f verify_path
# Checks for missing Node packages. # Checks for missing Node packages.
verify_node_packages() { verify_node_packages() {
local packages=$(yarn global list --json | grep '"type":"info"')
printf "\nChecking Node packages...\n" printf "\nChecking Node packages...\n"
while read line; do while read line; do
if [[ "$line" == "yarn global add"* ]]; then if [[ "$line" == "npm "* ]]; then
local package=$(printf "$line" | awk '{print $4}') local package=$(printf "$line" | awk '{print $4}')
local packages=($(npm list --global --depth=0 | grep "$package"))
verify_listed_application "$package" "${packages[*]}" verify_listed_application "$package" "${packages[*]}"
fi fi
done < "$MAC_OS_CONFIG_PATH/bin/install_node_packages" done < "$MAC_OS_CONFIG_PATH/bin/install_node_packages"