Skip to content

Commit

Permalink
Support install.sh Apple Silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
shuntaka9576 committed Nov 21, 2020
1 parent 6983b3d commit 5852158
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
14 changes: 12 additions & 2 deletions init/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,24 @@ git clone -b $branchName https://github.com/shuntaka9576/dotfiles.git ~/dotfiles
# =*=*=*=*=*=*=*=*=*=*=* start symbolic link shell =*=*=*=*=*=*=*=*=*=*=*
~/dotfiles/init/setup/link.sh

if [ "$(uname)" == 'Darwin' ]; then
echo '====================================== Mac ======================================'
if [ "$(uname)" == 'Darwin' ] && [ "$(uname -m)" == 'x86_64' ]; then
echo '====================================== Mac(x86_64) ======================================'
# install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# install lib for mac
source ~/.bash_profile
~/dotfiles/init/setup/mac.sh

elif [ "$(uname)" == 'Darwin' ] && [ "$(uname -m)" == 'arm64' ]; then
echo '====================================== Mac(arm64) ======================================'
# TODO install MacPorts
export PATH=/opt/local/bin:$PATH
sudo port install go
sudo port install node
~/dotfiles/init/setup/frontend.sh
~/dotfiles/init/setup/common.sh
exit # TODO standardize
elif [ -e /etc/debian_version ]; then
echo '====================================== Ubuntu ======================================'
# install brew
Expand Down
1 change: 1 addition & 0 deletions init/setup/brew.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

brew install npm
brew install fish
brew install fzf
brew install go
Expand Down
2 changes: 0 additions & 2 deletions init/setup/frontend.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/bin/bash

brew install npm
npm install -g vue-language-server
npm install -g javascript-typescript-langserver
npm install -g dockerfile-language-server-nodejs
Expand Down

0 comments on commit 5852158

Please sign in to comment.