Skip to content

Commit d929e86

Browse files
authored
Support current version of asdf (#8)
1 parent 0bcc471 commit d929e86

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

run_mix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
#!/bin/bash
22
set -e
33

4+
# Setting up the PATH environment
5+
[ -s /opt/homebrew/bin/brew ] && eval $(/opt/homebrew/bin/brew shellenv)
6+
[ -s /usr/local/bin/brew ] && eval $(/usr/local/bin/brew shellenv)
7+
8+
# This loads nvm
9+
export NVM_DIR="$HOME/.nvm"
10+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
11+
12+
# This loads asdf
13+
if [ -s "$HOMEBREW_PREFIX/opt/asdf/libexec/asdf.sh" ]; then
14+
\. "$HOMEBREW_PREFIX/opt/asdf/libexec/asdf.sh"
15+
elif [ -s "$HOME/.asdf/asdf.sh" ]; then
16+
\. "$HOME/.asdf/asdf.sh"
17+
fi
18+
419
BASE=`pwd`
520
export MIX_ENV=prod
621
export MIX_TARGET=ios

todoapp.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
);
186186
runOnlyForDeploymentPostprocessing = 0;
187187
shellPath = /bin/bash;
188-
shellScript = "#!/bin/bash\nset -e\n# Setting up the PATH environment\n[ -s /opt/homebrew/bin/brew ] && eval $(/opt/homebrew/bin/brew shellenv)\n[ -s /usr/local/bin/brew ] && eval $(/usr/local/bin/brew shellenv)\n\nexport NVM_DIR=\"$HOME/.nvm\"\n[ -s \"$NVM_DIR/nvm.sh\" ] && \\. \"$NVM_DIR/nvm.sh\" # This loads nvm\n[ -s \"$HOME/.asdf/asdf.sh\" ] && \\. $HOME/.asdf/asdf.sh # This loads asdf\n\n./run_mix\n";
188+
shellScript = "#!/bin/bash\nset -e\n\n./run_mix\n";
189189
};
190190
/* End PBXShellScriptBuildPhase section */
191191

0 commit comments

Comments
 (0)