[WiKi] How to Build clawPDF MSI yourself?
hansaliyad1 opened this issue · 5 comments
I am not sure if this is the correct way to do it, but it works. I was exploring this repo for the past two days to figure out how to build my clawPDF fork but did not find an answer. This is for anyone who is looking to build their own clawPDF fork. Feel free to correct me if this is not the correct way to build this project.
Before we build our MSI, we need to add our own code signing certificate or remove the existing code signing certificate configuration. We have to do this for the clawPDF, clawPDF.Bridge, clawPDF.Core, clawPDF.Mail, clawPDF.Settings, clawPDF.Shared, clawPDF.Utilities, ftplib, PDFProcessing, and SetupHelper projects. Right-click on each of these projects, click on "Properties", click on "Signing", and then under "Sign the assembly", either uncheck it or add your own code signing certificate.
Now, how do we build our MSI?
- Set the Build Configuration to Release -> Any CPU -> clawPDF.
- Right-click on the solution "clawPDF" and then click on "Build Solution".
- Change the Build Configuration to Release -> Win32 -> clawPDF.
- Right-click on the project "PrinterMonitor" and then click on "Build".
- Change the Build Configuration to Release -> ARM64 -> clawPDF.
- Right-click on the project "PrinterMonitor" and then click on "Build".
- Right-click on the project "clawPDF_setup" and then click on "Build".
- You should now find your built MSI under "{PROJECT_DIR}\clawPDF\src\clawPDF_setup\Release".
If anyone has any questions, please feel free to comment below. Thank you!
what kind of software do you use? visual studio?
@hueldoeu Yes, I use Visual Studio to build the project. Sometimes, I also use Jetbrains Rider but you cannot build this project using that.
You need to add some procedure with the Visual Studio 2022 Update and clawPDF update.
- Add procedure after step 6 : Change the Build Configuration to Release -> x64 -> clawPDF.
- Right-click on the project "PrinterMonitor" and then click on "Build".
If you build filed after step 7,you need to observe the error information because you must omission some project to build (like clawPDF.Bridge, clawPDF.Core, clawPDF.Mail, clawPDF.Settings, clawPDF.Shared, clawPDF.Utilities, ftplib, PDFProcessing, and SetupHelper projects) - Right-click on the project according to your error information and then click on "Build".
- Again right-click on the project "clawPDF_setup" and then click on "Build".
You will find it is success to have a msi/exe