Skip to content

Commit

Permalink
feat(ubuntu): brew installation option is added (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
erayakgunn authored Oct 13, 2023
1 parent b0ee02d commit ab29363
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions os/linux/programs/brew.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

echo "Installing Brew"

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
test -d ~/.linuxbrew && eval "$(~/.linuxbrew/bin/brew shellenv)"
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> ~/.bashrc
sudo apt-get install build-essential
brew install gcc
echo "✅ Brew has been installed successfully."
exec bash

11 changes: 11 additions & 0 deletions os/linux/programs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,17 @@ export function programList(root: string) {
return isActive('snap --version')
},
},
{
label: 'brew',
value: 'brew',
path: join(root, 'os', 'linux', 'programs', 'brew.sh'),
dependencies: [
'curl',
],
isActive: async () => {
return isActive('brew --version')
},
},
{
label: 'jq',
value: 'jq',
Expand Down

0 comments on commit ab29363

Please sign in to comment.