Use brew --prefix instead of hard coding brew path.

This commit is contained in:
Casey Langen 2022-02-13 19:49:48 -08:00
parent e17a65b2fe
commit 3a590caf23
2 changed files with 6 additions and 3 deletions

View File

@ -57,7 +57,6 @@ mkdir -p $OUTDIR/lib
mkdir -p $OUTDIR/plugins
mkdir -p $OUTDIR/locales
mkdir -p $OUTDIR/themes
mkdir -p $OUTDIR/share/terminfo
cp bin/musikcube $OUTDIR
cp bin/musikcubed $OUTDIR
@ -66,7 +65,11 @@ cp bin/lib/* $OUTDIR/lib
cp bin/plugins/*.${DLL_EXT} $OUTDIR/plugins
cp bin/locales/*.json $OUTDIR/locales
cp bin/themes/*.json $OUTDIR/themes
cp -rfp bin/share/terminfo/* $OUTDIR/share/terminfo/
if [ $OS == "Darwin" ]; then
mkdir -p $OUTDIR/share/terminfo
cp -rfp bin/share/terminfo/* $OUTDIR/share/terminfo/
fi
strip $OUTDIR/musikcube
strip $OUTDIR/musikcubed

View File

@ -40,7 +40,7 @@ if [[ "$PLATFORM" == 'Darwin' ]]; then
cp vendor/lame-bin/lib/libmp3lame.0.dylib ./bin/lib
mkdir -p ./bin/share/terminfo
cp -rfp /opt/homebrew/Cellar/ncurses/6.3/share/terminfo/* ./bin/share/terminfo
cp -rfp $(brew --prefix)/Cellar/ncurses/6.3/share/terminfo/* ./bin/share/terminfo
elif [[ "$PLATFORM" == 'Linux' ]]; then
echo "[stage-static-vendor-libraries] staging Linux .so files..."