Skip to content
Snippets Groups Projects
Commit 99ffc4a3 authored by Ammar Nejati's avatar Ammar Nejati
Browse files

adjust_mac_bundle.zsh: No need to copy `shutil.zsh` (Minor improvement)

Also check for the existence of the main executable.
parent 6e869be7
No related branches found
No related tags found
1 merge request!841Add Python Wheel to the Package
......@@ -54,13 +54,12 @@ setopt nullglob
# include shell helper functions
# (expected to be in the same folder as the current script)
scriptdir="$(dirname $0)"
source "$scriptdir"/shutils.zsh
source "@CMAKE_SOURCE_DIR@/devtools/deploy/mac/shutils.zsh"
#========================================
declare -r TITLE="* MacOS Package"
#-- directories for the package binaries
pkg_root="$1/Contents" # root dir, eg. '/tmp/bornagain.app/Contents'
pkg_root="$1" # root dir, eg. '/tmp/bornagain.app/Contents'
main_exe="$pkg_root/MacOS/@MACPK_MAIN_EXE@"
extra_libs="@MACPK_EXTRA_LIBS@"
# eg. input Qt dir = '/usr/local/opt/qt@5/lib/cmake/Qt'
......@@ -83,6 +82,12 @@ then
exit 1
fi
if [[ ! -f "$main_exe" ]]
then
echo "$TITLE: Error: Main executable does not exist ($main_exe)."
exit 1
fi
echo "$TITLE: package root = '$pkg_root'"
echo "$TITLE: main executable = '$main_exe'"
echo "$TITLE: Qt framework root = '$qt_framework_root'"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment