Skip to content
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

make init をなんとかする #63

Merged
merged 3 commits into from
Mar 24, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions init/brew.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
echo "brew bundle ..."

eval "brew bundle --file Brewfile > /dev/null 2>&1"
# パスを通す
ARCH=$(uname -m)
if [ "$ARCH" = "arm64" ]; then
PR_ARCH="ARM"
export BREWx86_BASE=/opt/brew_x86
export BREW_BASE=/opt/homebrew
export PATH=${BREWx86_BASE}/bin:${BREWx86_BASE}/sbin${PATH:+:${PATH}}
export PATH=${BREW_BASE}/bin:${BREW_BASE}/sbin${PATH:+:${PATH}}
else
PR_ARCH="x86"
Okabe-Junya marked this conversation as resolved.
Show resolved Hide resolved
export BREW_BASE=/opt/brew_x86
# export PATH=${BREW_BASE}/bin:${BREW_BASE}/sbin${PATH:+:${PATH}}
export PATH=${PATH//¥/homebrew¥//¥/brew_x86¥/}
fi

eval "brew bundle install --file Brewfile > /dev/null 2>&1"

echo "brew bundle done"
exit 0