Commit 8f8660a2 authored by Ivan Yossi's avatar Ivan Yossi 👌

packaging macOS: Automate even more deploy step

- By default qt does not build macdeployqt, we now attempt to build
  if not present, it shows an informative error msg on failure.
- No argument is needed for osxdeploy, unless we want to sign
  the app or change the dmg style/background
parent 272a03d7
......@@ -106,12 +106,6 @@ if [[ -d "/Volumes/${DMG_title}" ]]; then
fi
# Parse input args
if test ${#} -eq 0; then
echo "ERROR: no option given"
print_usage
exit 1
fi
for arg in "${@}"; do
if [ "${arg}" = -bg=* -a -f "${arg#*=}" ]; then
DMG_validBG=0
......@@ -304,8 +298,50 @@ fix_python_framework() {
# find ${PythonFrameworkBase} -name "*.so" -not -type l | fix_framework_library
}
# Checks for macdeployqt
# If not present attempts to install
# If it fails shows an informatve message
# (For now, macdeployqt is fundamental to deploy)
macdeployqt_exists() {
printf "Checking for macdeployqt... "
if [[ ! -e "${KIS_INSTALL_DIR}/bin/macdeployqt" ]]; then
printf "Not Found!\n"
printf "Attempting to install macdeployqt\n"
cd ${BUILDROOT}/depbuild/ext_qt/ext_qt-prefix/src/ext_qt/qttools/src
make sub-macdeployqt-all
make sub-macdeployqt-install_subtargets
make install
if [[ ! -e "${KIS_INSTALL_DIR}/bin/macdeployqt" ]]; then
printf "
ERROR: Failed to install macdeployqt!
Compile and install from qt source directory
Source code to build could be located in qttools/src in qt source dir:
${BUILDROOT}/depbuild/ext_qt/ext_qt-prefix/src/ext_qt/qttools/src
From the source dir, build and install:
make sub-macdeployqt-all
make sub-macdeployqt-install_subtargets
make install
"
printf "\nexiting...\n"
exit
else
echo "Done!"
fi
else
echo "Found!"
fi
}
krita_deploy () {
# fix_boost_rpath
# check for macdeployqt
macdeployqt_exists
cd ${BUILDROOT}
# Update files in krita.app
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment