Include helper ID in chromium helper plist

Same as the cefsimple example does.

CMake already has code to replace this variable.
This commit is contained in:
Maarten Bent 2023-12-21 21:17:31 +01:00
parent 5a2c45b8f7
commit 948545ba81
No known key found for this signature in database
GPG key ID: 58AAEE3F4A4FD070
2 changed files with 3 additions and 1 deletions

View file

@ -9,7 +9,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>org.wxwidgets.webviewChromium.helper</string>
<string>org.wxwidgets.webviewsample.helper${BUNDLE_ID_SUFFIX}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>

View file

@ -39,6 +39,7 @@
ln -fs "../../../webview Helper.app/Contents/MacOS/webview Helper" "$$helper_contents/MacOS/$$helper_name"; \
sed -e "s/\$${PRODUCT_NAME}/$$helper_name/" \
-e "s/\$${EXECUTABLE_NAME}/$$helper_name/" \
-e "s/\$${BUNDLE_ID_SUFFIX}/.$$helper_name/" \
$(TOP_SRCDIR)/samples/webview/cef_helper_info.plist.in > "$$helper_contents/Info.plist"; \
cp webview_helper.app/Contents/PkgInfo "$$helper_contents"; \
cp -Rf webview_helper.app/Contents/Resources "$$helper_contents"; \
@ -89,6 +90,7 @@
mkdir -p webview_helper.app/Contents/Resources
sed -e "s/\$${PRODUCT_NAME}/webview Helper/" \
-e "s/\$${EXECUTABLE_NAME}/webview Helper/" \
-e "s/\$${BUNDLE_ID_SUFFIX}//" \
$(TOP_SRCDIR)/samples/webview/cef_helper_info.plist.in >webview_helper.app/Contents/Info.plist
/bin/echo "APPL????" >webview_helper.app/Contents/PkgInfo
<!--Fix CEF link path -->