Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #744 Fix #745 - fixup icon and Can't see QtWebEngine pages on macOS #746

Merged
merged 7 commits into from
Sep 4, 2024

Conversation

jmarrec
Copy link
Collaborator

@jmarrec jmarrec commented Sep 4, 2024

icons/os.icns Outdated
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Generated via

iconutil -c icns os.iconset

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.disable-executable-page-protection</key>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

entitlement for QtWebEngineProcess

@@ -15,7 +15,7 @@ BEGIN
VALUE "FileDescription", "OpenStudio Application for Energy Modeling\0"
VALUE "FileVersion", "${OPENSTUDIOAPPLICATION_VERSION}\0"
VALUE "InternalName", "OpenStudioApp\0"
VALUE "LegalCopyright", "Copyright (c) 2020-2022, OpenStudio Coalition and other contributors. All rights reserved..\0"
VALUE "LegalCopyright", "Copyright (c) 2020-${CURRENT_YEAR}, OpenStudio Coalition and other contributors. All rights reserved..\0"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

outdated, never again!

Comment on lines 551 to 561
install(
CODE "
include(\"${CMAKE_CURRENT_FUNCTION_LIST_FILE}\")
codesign_files_macos(
FILES \"\${CMAKE_INSTALL_PREFIX}/$<TARGET_BUNDLE_DIR_NAME:${target_name}>/Contents/Frameworks/QtWebEngineCore.framework/Versions/A/Helpers/QtWebEngineProcess.app/Contents/MacOS/QtWebEngineProcess\"
SIGNING_IDENTITY \"${CPACK_CODESIGNING_DEVELOPPER_ID_APPLICATION}\"
IDENTIFIER \"${CPACK_CODESIGNING_MACOS_IDENTIFIER}.QtWebEngineProcess\"
ENTITLEMENTS \"${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/QtWebEngineProcess.entitlements\"
FORCE VERBOSE
)
"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After deep signing OpenStudioApp, specifically sign the QtWebEngineProcess with the entitlement that is apparently needed per https://forum.qt.io/topic/102212/qtwebengine-signing-issues/14

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

$ cat /Users/julien/Qt/6.5.2/macos/lib/QtWebEngineCore.framework/Versions/A/Helpers/QtWebEngineProcess.app/Contents/Resources/QtWebEngineProcess.entitlements
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
	<true/>
	<key>com.apple.security.cs.disable-library-validation</key>
	<true/>
	<key>com.apple.security.cs.allow-jit</key>
	<true/>
        <key>com.apple.security.cs.disable-executable-page-protection</key>
        <true/>
</dict>
</plist>

https://doc.qt.io/qt-6/qtwebengine-deploying.html#macos-specific-deployment-steps

@jmarrec
Copy link
Collaborator Author

jmarrec commented Sep 4, 2024

Ok, Icon is fixed, but still can't see the geometry editor...

image

FILES \"\${CMAKE_INSTALL_PREFIX}/$<TARGET_BUNDLE_DIR_NAME:${target_name}>/Contents/Frameworks/QtWebEngineCore.framework/Versions/A/Helpers/QtWebEngineProcess.app/Contents/MacOS/QtWebEngineProcess\"
SIGNING_IDENTITY \"${CPACK_CODESIGNING_DEVELOPPER_ID_APPLICATION}\"
IDENTIFIER \"${CPACK_CODESIGNING_MACOS_IDENTIFIER}.QtWebEngineProcess\"
ENTITLEMENTS \"${QtWebEngineProcess}/Contents/Resources/QtWebEngineProcess.entitlements\"
Copy link
Collaborator Author

@jmarrec jmarrec Sep 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grab the entitlements directly from the Qt install dir.

$ cat /Users/julien/Qt/6.5.2/macos/lib/QtWebEngineCore.framework/Versions/A/Helpers/QtWebEngineProcess.app/Contents/Resources/QtWebEngineProcess.entitlements
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
	<true/>
	<key>com.apple.security.cs.disable-library-validation</key>
	<true/>
	<key>com.apple.security.cs.allow-jit</key>
	<true/>
        <key>com.apple.security.cs.disable-executable-page-protection</key>
        <true/>
</dict>
</plist>

@jmarrec
Copy link
Collaborator Author

jmarrec commented Sep 4, 2024

Alright, self pat on the back, moving on

image

@jmarrec jmarrec merged commit 46ffa59 into develop Sep 4, 2024
10 checks passed
@jmarrec jmarrec deleted the 744_fixup_icon branch September 4, 2024 16:34
@github-actions github-actions bot locked and limited conversation to collaborators Sep 4, 2024
@jmarrec jmarrec self-assigned this Sep 4, 2024
@macumber
Copy link
Collaborator

macumber commented Sep 5, 2024

Awesome job @jmarrec !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v1.8.0-rc3] Can't see QtWebEngine pages on macOS [v1.8.0-rc3] os.icns is outdated
2 participants