Skip to content

Commit

Permalink
Replace hard-coded names of build directory in build_installer.sh scr…
Browse files Browse the repository at this point in the history
…ipt for macOS with looking at the location of the script by the script itself when it is run. This makes it possible to have differently named build dirs for debug and release builds, and without restricting what each of those directories must be named.
  • Loading branch information
ctsrc committed Nov 8, 2019
1 parent 07a1c31 commit 9c6de19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dist/macos/bundle/build_installer.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
# change this to rename the installer package
B_DMG="Barrier-@BARRIER_VERSION@.dmg"

cd @CMAKE_CURRENT_SOURCE_DIR@/build/bundle || exit 1
cd "$( dirname '$0' )"
OWNDIR="$( pwd )"

B_REREF_SCRIPT=@CMAKE_CURRENT_SOURCE_DIR@/build/bundle/reref_dylibs.sh
B_REREF_SCRIPT="$OWNDIR/reref_dylibs.sh"
if [ ! -x $B_REREF_SCRIPT ]; then
echo Missing script: $B_REREF_SCRIPT
exit 1
Expand Down

0 comments on commit 9c6de19

Please sign in to comment.