Migrate to Preview and Thumbnail Extension
- macOS 10.15 deprecated and removed support for quicklook generators
- Since macOS 12, an extension can be created to provide Quicklook previews
- This change implements this in addition to the existing quicklook generator
- Code has been refactored to share the existing implementation with both approaches
- Since app extensions are sandboxed, the usage of NSTask had to be replaced. This has also been done und thus offers now also better performance
Hi, @nostradani, thanks for this! If I build the repo using your branch, will this work locally for me? I've been missing ProvisionQL for some time now and don't want to wait for this PR to be merged and then a new release. Thanks!
@gabrielmaldi Yes, you should be able to build this locally. More precisely, you need to build the ProvisionQLApp, copy it to your Applications folder and run it at least once (you can directly close it then). That should give you back the quicklook preview functionality.
Regarding the thumbnails: I don't know why this doesn't work for me anymore (at the moment). Let me know whether it works for you.
@nostradani, THANK YOU! I missed so much this QL extension. It's working perfectly now. I didn't even need to copy the app, after building it in Xcode I just got a System Settings notification and enabled it:
Wrt the thumbnail, is this what you mean?
Fyi, I had to make this change:
Do you have anything for APKs? I used https://github.com/ArtRoman/QuickLookAPK but it's not working anymore. Would you say it's a lot of work to make it work in Sequoia? Thanks again.
@nostradani, I didn't even need to copy the app, after building it in Xcode I just got a System Settings notification and enabled it:
It’ll be in your Xcode DevidedData folder, so you risk it being deleted/cleaned at some point. Best moving it to the Applications folder.
Do you have anything for APKs? I used https://github.com/ArtRoman/QuickLookAPK but it's not working anymore. Would you say it's a lot of work to make it work in Sequoia? Thanks again.
I don't develop for Android, but I quickly checked the project. The structure would be easy to migrate. There are already methods that provide the needed content, so you would just have to plug it into the new API.
However it also uses NSTask, which I had to remove here due to sandboxing. That must be done there as well, but I noticed that it's using a tool named aapt which I cannot simply replace.
Not sure whether we can run it when its bundled with the plugin...
Thanks for looking into it! In https://github.com/ArtRoman/QuickLookAPK/blob/master/QuickLookAPK/HZAndroidPackage.m I can see that it also uses NSTask for unzipping and grepping, so we'd have to replace those too (in addition to aapt). I might give it a try when I have some free time. Thanks again!
Showing Recent Messages fatalError
ZIPFoundationObjC
Updating from https://github.com/nostradani/ZIPFoundationObjC.git Creating working copy Checking out 0.1.0 Couldn’t check out revision ‘a942ae952320faf94023456ec3a0125028d1d0ff’: fatal: reference is not a tree: a942ae952320faf94023456ec3a0125028d1d0ff Couldn’t check out revision ‘a942ae952320faf94023456ec3a0125028d1d0ff’:
Resolving Package Graph Failed 2024/11/10, 22:54 3.9 seconds
@ipad4, make this change:
980f2f91ff4e38263afb8cf8ec694e21491a26dc
Do you have anything for APKs? I used https://github.com/ArtRoman/QuickLookAPK but it's not working anymore. Would you say it's a lot of work to make it work in Sequoia? Thanks again.
@gabrielmaldi I've found this replacement that works for both IPA and APK on Sequoia, works great for me.
First ProvisionQL 2.0 beta supporting mobileprovision and ipa is available here: https://github.com/ealeksandrov/ProvisionQL/issues/55#issuecomment-2993710623
@gabrielmaldi apk preview is a good feature request, will add in the roadmap: https://github.com/ealeksandrov/ProvisionQL/issues/61
@csc-EricWu I confirm v2.0-beta linked above shows entitlements for your file.
@nostradani, thank you for this PR. I used its structure as a reference for v2.0. I'll merge it back here soon and will push the release in App Store in a couple of weeks.
Closing this one as v2.0 is a completely new project (will be still free and open source, will push after more tests and refactoring).