#!/bin/bash
. ./.config
TARGET="${APP_NAME}"
xattr -rc "${TARGET}.app"
${QTDIR}/bin/macdeployqt "${TARGET}.app" \
-codesign=-
# -dmg
# -no-plugins
# -executable="${TARGET}.app/Contents/MacOS/${TARGET}"
# ./fix_webengine_deploy.sh "${TARGET}.app"
# codesign -s - "${TARGET}.app"
#
# Docs on using create-dmg:
# https://github.com/andreyvit/create-dmg
#
create-dmg --volname "${TARGET} Installer" \
--volicon "${TARGET}.app/Contents/Resources/${TARGET}.icns" \
"${TARGET}-${APP_VERSION}-x86_64.dmg" \
"${TARGET}.app"