I have a EV code signing certificate PFX file and password. How do I apply it while brave or chromium mini installer.
brave command to build mini_installer is: npm run create_dist
and chromium forks are build using this: autoninja -C out\Default mini_installer
but they dont create signed installers.
how to generate installer in which all files like chrome.dll and chrome.exe are signed to code signing certificate.
Edit: I tried signing all exe and dll files inside build directory and ran mini_installer command, but them chromium started building all of those 20k files and after that all those files became unsigned again and mini_installer had those unsigned ones
There's no official way to do so. Chromium uses build tools to build
chrome.7zwhich packs those binary files and I thinkmini_installertoo. You will have to sign those files before they are packed aschrome.7zwhich is packed intomini_installermore info.You will have to modify this script: https://source.chromium.org/chromium/chromium/src/+/main:chrome/tools/build/win/create_installer_archive.py;l=1?q=create_installer_archive&ss=chromium%2Fchromium%2Fsrc to digitally sign binary files before the installer is built. Go through the script.
You will have to execute Microsoft's signtool to use your certificate and password from there to code sign binary files like
chrome.exe,chrome.dlletc before they are packed intochrome.7zarchive.All the relevant changes to make it work as you are intending, is beyond the scope of this site.