mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-07 09:25:33 +00:00
Fixes: #13177 We now need to install sdkmanager through a different Homebrew package / "cask". This does get us `sdkmanager`, but it has a new default location for its Android SDK, while our builds still refer to the old location under the home directory. The build script thus needs a bit of tweaking to force `sdkmanager` to operate based on the location we've previously referred to. Additionally, macOS machines typically default to the zsh terminal these days, so the old profile auto-config doesn't work. This adds and documents example profile script that can be used to configure a macOS dev machine's terminal environment.
27 lines
937 B
Bash
Executable file
27 lines
937 B
Bash
Executable file
# source $HOME/.cargo/env
|
|
#echo 'export PATH="/usr/local/opt/openjdk@8/bin:$PATH"' >> ~/.zshrc
|
|
#echo 'export PATH="/usr/local/opt/openjdk@8/bin:$PATH"' >> ~/.bashrc
|
|
export ANT_HOME=/usr/local/opt/ant
|
|
export MAVEN_HOME=/usr/local/opt/maven
|
|
export GRADLE_HOME=/usr/local/opt/gradle
|
|
export ANDROID_HOME=~/.android
|
|
|
|
export PATH=$ANT_HOME/bin:$PATH
|
|
export PATH=$MAVEN_HOME/bin:$PATH
|
|
export PATH=$GRADLE_HOME/bin:$PATH
|
|
export PATH=$ANDROID_HOME/tools:$PATH
|
|
export PATH=$ANDROID_HOME/tools/bin:$PATH
|
|
export PATH=$ANDROID_HOME/platform-tools:$PATH
|
|
export PATH=$ANDROID_HOME/cmdline-tools/latest/bin:$PATH
|
|
export PATH=$ANDROID_HOME/build-tools/30.0.3:$PATH
|
|
|
|
if [ -z "$HOMEBREW_PREFIX" ]; then
|
|
HOMEBREW_PREFIX=`brew --prefix`
|
|
fi
|
|
|
|
export PATH="$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin:$PATH"
|
|
export PATH="$HOMEBREW_PREFIX/opt/openjdk@21/bin:$PATH"
|
|
export JAVA_HOME="$HOMEBREW_PREFIX/opt/openjdk@21"
|
|
|
|
# Python 2.7
|
|
eval "$(pyenv init --path)"
|