Browse Source

Patch qjackctl macOS app in pack script, rename as QjackCtl.app

tags/v1.0
falkTX 1 year ago
parent
commit
6a75d34879
2 changed files with 11 additions and 8 deletions
  1. +1
    -6
      build-jack2.sh
  2. +10
    -2
      pack-jack2.sh

+ 1
- 6
build-jack2.sh View File

@@ -147,12 +147,7 @@ if [ -f "${PAWPAW_PREFIX}/bin/moc" ]; then

build_autoconf qjackctl "${QJACKCTL_VERSION}" "--enable-jack-version ${qjackctl_extra_args}"

if [ "${MACOS}" -eq 1 ]; then
cp "${PAWPAW_ROOT}/patches/qjackctl/QjackCtl.icns" "${PAWPAW_BUILDDIR}/qjackctl${name}-${QJACKCTL_VERSION}/src/qjackctl.app/Contents/Resources/QjackCtl.icns"
patch_file qjackctl "${QJACKCTL_VERSION}" "src/qjackctl.app/Contents/Info.plist" 's|Created by Qt/QMake|JACK Audio Connection Kit Qt GUI Interface|'
patch_file qjackctl "${QJACKCTL_VERSION}" "src/qjackctl.app/Contents/Info.plist" 's|com.yourcompany.qjackctl|org.rncbc.QjackCtl|'
patch_file qjackctl "${QJACKCTL_VERSION}" "src/qjackctl.app/Contents/Info.plist" 's|<string></string>|<string>QjackCtl.icns</string>|'
elif [ "${WIN32}" -eq 1 ]; then
if [ "${WIN32}" -eq 1 ]; then
copy_file qjackctl "${QJACKCTL_VERSION}" "src/release/qjackctl.exe" "${jack2_prefix}/bin/qjackctl.exe"
fi
fi


+ 10
- 2
pack-jack2.sh View File

@@ -105,11 +105,19 @@ elif [ "${MACOS}" -eq 1 ]; then
patch_osx_qtapp qjackctl "${QJACKCTL_VERSION}" "${qjackctl_app}"
patch_osx_binary_libs "${qjackctl_dir}/qjackctl"

cp "${PAWPAW_ROOT}/patches/qjackctl/QjackCtl.icns" "${qjackctl_app}/Contents/Resources/QjackCtl.icns"
sed -i -e 's|Created by Qt/QMake|JACK Audio Connection Kit Qt GUI Interface|' "${qjackctl_app}/Contents/Info.plist"
sed -i -e 's|com.yourcompany.qjackctl|org.rncbc.QjackCtl|' "${qjackctl_app}/Contents/Info.plist"
sed -i -e 's|string>qjackctl</string>|string>QjackCtl</string>|' "${qjackctl_app}/Contents/Info.plist"
sed -i -e 's|<string></string>|<string>QjackCtl.icns</string>|' "${qjackctl_app}/Contents/Info.plist"
rm "${qjackctl_app}/Contents/Info.plist-e"
mv "${qjackctl_app}/Contents/MacOS/qjackctl" "${qjackctl_app}/Contents/MacOS/QjackCtl"

rm -rf jack2/macosx/qjackctl.app
cp -rv "${PAWPAW_PREFIX}/bin/qjackctl.app" jack2/macosx/
cp -rv "${qjackctl_app}" jack2/macosx/QjackCtl.app

rm -f jack2-macOS-${JACK2_VERSION}.tar.gz
tar czf jack2-macOS-${JACK2_VERSION}.tar.gz -C jack2/macosx jack2-osx-${jack2_lastversion}.pkg qjackctl.app
tar czf jack2-macOS-${JACK2_VERSION}.tar.gz -C jack2/macosx jack2-osx-${jack2_lastversion}.pkg QjackCtl.app
fi

# ---------------------------------------------------------------------------------------------------------------------

Loading…
Cancel
Save