echo " --with-build-path=PATH ....." default \${lyx-src-dir}/../lyx-build
echo " --with-dmg-location=PATH ..." default \${build-path}
echo " --with-binary-strip=yes ...." default no
+ echo " --codesign-identity=CSID ..." default is w/o CSID
echo
echo "All other arguments with -- are passed to configure"
echo "including the defaults: ${LyXConfigureOptions}"
build_lyx() {
# Clear Output
if [ -n "${LyxAppZip}" -a -f "${LyxAppZip}" ]; then rm "${LyxAppZip}"; fi
- if [ -d "${LyxAppPrefix}" ]; then rm -rf "${LyxAppPrefix}"; fi
+ if [ -d "${LyxAppPrefix}" ]; then
+ find "${LyxAppPrefix}" -type d -exec chmod u+w '{}' \;
+ rm -rf "${LyxAppPrefix}"
+ fi
case "${EnableCXX11}" in
"--enable-cxx11")
condir=$(content_directory "${target}"/lyx)
appdir=$(dirname "${condir}")
# have to sign frameworks first
+ for fwname in Aspell Hunspell LibMagic ; do
+ fwitem="${condir}"/$(framework_name "${fwname}")
+ if [ -d "${fwitem}" ]; then
+ codesign --verbose --force --sign "${CODESIGN_IDENTITY}" "${fwitem}"
+ fi
+ done
for csitem in \
"${condir}"/Frameworks/Qt*.framework/Versions/${QtFrameworkVersion} \
- "${condir}"/Frameworks/*.framework/lib*.dylib \
"${condir}"/PlugIns/*/lib*.dylib \
"${condir}"/Library/Spotlight/* \
"${target}"/inkscape \
+ "${target}"/lilypond \
+ "${target}"/lilypond-book \
"${target}"/maxima \
"${target}"/tex2lyx \
"${target}"/lyxeditor \
VOLUME=$(mount |grep ${DEVICE} | cut -f 3 -d ' ')
# copy in the application bundle
- ditto --hfsCompression "${LyxAppDir}.app" "${VOLUME}/${LyxName}.app"
+ ditto --hfsCompression "${LyxAppPrefix}" "${VOLUME}/${LyxName}.app"
# copy in background image
mkdir -p "${VOLUME}/Pictures"
ln -s /Applications/ "${VOLUME}"/Applications
test -d "${DocumentationDir}" && ditto --hfsCompression "${DocumentationDir}" "${VOLUME}"
set_bundle_display_options "${VOLUME}" ${BG_W} ${BG_H}
- ${XCODE_DEVELOPER}/Tools/SetFile -a C "${VOLUME}"
+ PATH="${XCODE_DEVELOPER}/Tools:$PATH" SetFile -a C "${VOLUME}"
mv "${VOLUME}/Pictures" "${VOLUME}/.Pictures"
# Unmount the disk image
if [ ${LyxOnlyPackage:-"no"} = "no" ]; then
build_lyx
convert_universal
- test -n "${CODESIGN_IDENTITY}" && code_sign "${LYX_BUNDLE_PATH}"
copy_dictionaries
+ test -n "${CODESIGN_IDENTITY}" && code_sign "${LYX_BUNDLE_PATH}"
+ find "${LyxAppPrefix}" -type d -exec chmod a-w '{}' \;
fi
build_package