Talk:Deploying Your Application

From Lazarus wiki
Jump to navigationJump to search

An alternative to PackageMaker is Iceberg. I use this to create packages with remote access over an ssh connection (no gui). Advantages:

  • it has a command line utility called 'freeze' to create the packages from the command line, so that package building can be automated.
  • package file description is in xml format, so that it can be edited with any text editor.

I have read that the gui of Iceberg is better than PackageMaker, but since I haven't used PackageMaker's nor Iceberg's gui, I cannot comment on that. Vincent 09:22, 13 Feb 2006 (CET)

detecting arch

The Lazarus build scripts detect arch in the folowing way:

rpm --eval '%{_arch}'

lazbuild

Since Lazarus 0.9.18, the lazarus distribution contains a tool called lazbuild, that can compile lazarus projects from the command line. Vincent 20:02, 24 September 2006 (CEST)

CMake/CPack

As a C++ programmer targeting Windows, OS X and Linux, I use CMake for most of my projects as it frees me from having to maintain project / makefiles for all these platforms and keeping them in sync. CMake has a backend called CPack which then turns all the compiled and linked files into installers by driving backends like NSIS, WiX, etc. which is very nice. Now that I'm getting my feet wet with FPC/Lazarus, I have simply extended my existing CMakeLists.txt files and made it use the lazbuild-created binary files as additional input for the installers and it works like a charm, so I thought it might be usefull to add this option to this page. I'm not sure how you feel about it, as this is a C/C++ tool that gets repurposed as a back end for pascal projects, but it saves a lot of work by you not having to learn the details of the respective back-ends.