[kdeconnect] [Bug 473705] “kdeconnect-indicator” is damaged and can’t be opened. You should move it to the Trash.
idoitprone
bugzilla_noreply at kde.org
Thu Aug 24 01:39:27 BST 2023
https://bugs.kde.org/show_bug.cgi?id=473705
--- Comment #2 from idoitprone <monkeyboyted at yahoo.com> ---
https://www.reddit.com/r/kde/comments/ns91v3/comment/ja09hus/?utm_source=reddit&utm_medium=web2x&context=3
There were two issues:
CraftRoot/etc/blueprints/locations/craft-blueprints-kde/libs/libfftw/libfftw.py
needs to be updated to check for the ARM arch and unset -DENABLE_SSE2=ON
Craft by default produces partly-codesigned binaries which are then
modified during craft --package, creating a broken app bundle. There is
CodeSigning section in etc/CraftSettings.ini but it expects an official MacOS
developer identity (which makes sense for KDE org). It would probably work with
the official signing identity but I don't have a Mac developer program
purchased (and I don't plan to get one as I expect to be able to build and run
software on my computer without paying Apple yearly for some certificates). So
I patched ./craft/bin/Utils/CodeSign.py to pass - (dash) as --sign identity
argument (requesting adhoc signing). Then, after craft --package ... I
extracted the built .app bundle and replaced entitlements [1] for all binaries
find /Applications/kdeconnect-indicator.app/Contents/MacOS -type f -perm +111
-exec codesign -fs - --options runtime --entitlements ~/tmp/entitlements.plist
{} \; and resigned the whole bundle adhoc again codesign -fs -
kdeconnect-indicator.app. Then replaced the app bundle in the dmg.
You can follow my steps or you can try my dmg. It has adhoc-signed binaries so
it may not work for you or it may require to explicitly allow opening the app
in Settings -> Pricacy & Security.
I will try to upstream the changes (libfftw blueprint will be easy, adding
optional adhoc option for signing may be more difficult).
[1] Entitlements I used just disable signature validation on libraries loaded
into the process and allow attaching a debugger to a running process:
<?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.disable-library-validation</key>
<true/>
<key>com.apple.security.get-task-allow</key>
<true/>
</dict>
</plist>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the kde-mac
mailing list