Skip to content

Commit

Permalink
Allow package-osx-bundles.sh to use build subdir
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Feb 28, 2024
1 parent 491fa7a commit ef597d4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions utils/package-osx-bundles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

set -e

DPF_UTILS_DIR="$(dirname $(realpath ${0}))"

# can be overridden by environment variables
WELCOME_TXT=${WELCOME_TXT:=${DPF_UTILS_DIR}/plugin.pkg/welcome.txt.in}

if [ -d bin ]; then
cd bin
elif [ -d build/bin ]; then
cd build/bin
else
echo "Please run this script from the root folder"
exit
Expand Down Expand Up @@ -90,11 +97,6 @@ fi

cd ..

DPF_UTILS_DIR=$(dirname ${0})

# can be overridden by environment variables
WELCOME_TXT=${WELCOME_TXT:=${DPF_UTILS_DIR}/plugin.pkg/welcome.txt.in}

mkdir -p build
sed -e "s|@name@|${NAME}|" "${WELCOME_TXT}" > build/welcome.txt
sed -e "s|@builddir@|${PWD}/build|" \
Expand Down

0 comments on commit ef597d4

Please sign in to comment.