Created attachment 114935 [details]
"Windows protected your PC" warning message
On windows 10, when running the Digikam installer, a message pops up saying: "Windows protected your PC. Windows Defender SmartScreen prevented an unrecognized app from starting. Running this app might put your PC at risk" (see attachment). Then there's a more info link that you can expand, and there you can click on "Run anyway".
It doesn't affect functionality, but it might put off some users from installing this software or thinking it might contain malware.
This is true at least for the last beta digiKam-6.0.0-beta1-20180903T144815-Win64.exe
And to register digiKam to the Microsoft Store, i need to pay, as for Apple Mac Store. Seriously, you think that we will do it for a open source application ?
The digiKam installer for Windows is _fully_ cross compiled under Linux. There is not possible Virus and Malware embedded while this process. When i said Fully, i want mean, from the scratch. No Microsoft tool is used while the construction.
For the rest, of course a developer can include a malware voluntary in source code, but, whole digiKam source code is available. So this problem can be quickly found by specialist.
Form this page :
We can read that application must follow this rule in particular :
"Third-party web browsers that use their own layout engines"
In digiKam we use the QtWebKit web engine to render page (for ex to be logged in web service). This is not the native web browser (Edge).
So no way for me. I don't want write or to lost time with this M$ details...
Look the Krita project :
On Windows Store, You must buy this "Open Source" application. Serious !!!
Oh, ok, I just wanted to make sure you were aware of this situation.
On the other hand, are you sure it has to do with the Windows Store? I installed many open source programs in my computer and none (or virtually none) showed that warning. I mean programs that you download and double-click on the setup.exe file, not installed through the Store.
No i' don't know.
I used Win10 last version available while this summer and run the setup.exe, without any warning.
So, i suppose that level of security is relevant of this warning.
This message only appears in the latest versions of Windows 10 with Microsoft Defender enabled. I suspect that Microsoft is working with a whitelist and digiKam is unknown to Microsoft. Also quite possible that the Defender recognizes that URL strings are in digiKam, from the Web service tools...but is just an idea...at any rate, digiKam is not malware...anyone can look at the code or build a Windows Installer themselves. This will be worse under Windows, there is already a Windows 10 version that only allows software from the store, for schools.
In firstname.lastname@example.org mailing list from KDE project, i seen that KStar is now available in Microsoft Windows Store :
KStars is now available on the Microsoft Store: http://knro.blogspot.com/2018/09/kstars-on-microsoft-store.html
Thanks to everyone who made this release possible include the KDE Windows team especially Hannah Van Reth who made this possible.
Let your friends and family members who use a Windows PC know about this release! Submitting reviews and feedback for the app is greatly appreciated!
So, it's certainly possible to do it for digiKam as an umbrella of KDE project.
Good news about this topic.
To publish digiKam on the Microsoft store, the ultimate condition is to be able to compile whole digiKam under Microsoft compiler : MSVC
Since 3 week, i'm fighting against the Windows stuff, and i'm near to complete the job :
It's not perfect, but as usual, the last 10% are the most complex to solve.
After that, the KDE build factory will be able to package digiKAm for the store (it's a special format only doable with the Micorst tool under Windows of course...)
There are already some KDE application published on Microsoft store, so i'm confidant to complete this wish for the next 7.0.0 release. This will be a giant step on the project, and this will permit to adverse the application under the most important operating system (in quantity of computer installed i want mean (:=)))...
So please be patient and be aware on this channel...
After around 100 commit, digiKam compile and link fine with the Microsoft Visual C++ compiler :
Now we can plan a Windows Store packaging...
*** Bug 420559 has been marked as a duplicate of this bug. ***
In Krita project i seen that MXE still in use to build Windows target. The application is also published to the M$ Store, so, it's possible to backprocess MXE build installer with MSVC to make the UWP container to publish officially.
The rules are here for Krita:
This is definitively the right way to go in the future...
A good news for this topic. Look well the comment from Phabricator posted today:
Sound like a MSVC version is ready to be posted to Microsoft Store !
That are great news. This version should then also be compiled with QWebEngine.
yes typically QWebEngine is only supported with MSVC
>Sound like a MSVC version is ready to be posted to Microsoft Store ! (In reply to caulier.gilles from comment #12)
I made a comment on the task with more details https://phabricator.kde.org/T14122#254383. I need to clarify I tested the Digikam version from the official Digikam website, I don't know if it was compiled with MSVC or not.
Good news. The first version of digiKam 8 (alpha stage) compiled with MSVC under Craft and signed for the Microsoft Store is done :
The packaging fail with NSIS as it miss an icon. I will fix it
This is the first version of digiKam 8 notarized with Craft, compiled with MSVC, and ready for the Microsoft Store.
This installer is not yet optimized. There are plenty of stuff to removed before packaging. This must be customized in a blacklist file in digiKAm Craft settings.
Ex of blacklist from KMyMoney project:
The new Windows installer compiled under MSVC with binary factory lust be optimized for the Store.
To publish a KDE application, there is a tutorial here :
The last packaging ready to upload on Windows store is available here :
File is : digikam-master-?????-windows-msvc2019_64-cl.appxupload
Following instructions from the tutorial are simple to process:
digiKam 8.0.0 compiled with MSVC and Craft-binary factory start to run :
There are plenty of fixes to do, as to store all DK and Marble plugins at the right place in the bundles (plugins are there but not yet detected and loaded).
I add a TODO list in digiKam craft repository :
It's not yet finalized, but it's a first plan of the pending and completed tasks.
I was just playing with the MSVC build. ExifTool.exe manually copied to the path. For starters, it works pretty well.
- Some icons from the export tools seem to be missing.
- Apparently KimageFormats plugins are not included.
And the corresponding entries in TODO.
Git commit 12f843b32f56491bd14f3eacc7977c7ca5d2f45e by Gilles Caulier.
Committed on 18/06/2022 at 09:24.
Pushed by cgilles into branch 'master'.
M +3 -0 extragear/digikam/TODO
You don't have write access right to craft blueprints git repository ? If no, please ask to admin to grant access, it's important as the Windows and MacOS bundles will be built with 80% of the settings from this repository.
Typically, it's fine to commit changes directly in digiKam area, for the rest, we needs to create MR as core craft settings is shared with other applications and to tune it can have side effects.
Git commit 444eec4a4f9b81ed6e93231dd48153183c1e5281 by Gilles Caulier.
Committed on 18/06/2022 at 19:30.
Pushed by cgilles into branch 'master'.
digiKam Craft build with MSVC for Windows :
-add exiftool in the bundle
-add KImageFormats QImage plugins
M +2 -2 extragear/digikam/TODO