Minimum code needed to distribute a sample application lazarus / 8-Other ---------------------------------------------------------------------- RichardAD · 2009-02-02 20:26 I modified (well more like rewrote) a Delphi application as a Lazarus application, and will eventually create an entry for it in the Extra/Web Links section. I want to provide the source in a zip on my website and wonder what files or filetypes may or may not need to be placed in the zip. Forms: .lfm, .lrs, .o, .pas, .ppu I am guessing I don't need to distribute .lrs, .o and .ppu Non-UI units: .o, .pas, .ppu I am guessing I don't need to distribute .o and .ppu fpc-res.or fpc-res.res ?? Main application files: .compiled, .lpi, .lpr, .o, .rc, .rc.bak, .res I am guessing I don't need .o, .compiled Right or wrong? Let me know, thanks! ---------------------------------------------------------------------- theo · 2009-02-02 20:50 Project -> Publish Project... copies everything that is required to a new directory. ---------------------------------------------------------------------- Phil · 2009-02-02 21:24 Be sure to include .lrs files. The fpc-res.or and fpc-res.res files are always created with each compile, so you can omit them. I think you got the rest right, although it could differ in some cases. Not sure if I would use Publish Project. For one thing, it changes the date-time stamp on all your files. So they're almost the same as what is in your project's folder, but not quite. Quite frankly, the only way to know if the files created by Publish Project are compilable is to compile them again. A safer way is just to create a batch file or script file that executes your zip utility and use the zip's switch to exclude extensions you don't want to distribute. That way you're forced to go through your project's files and actually think about whether it's required in order to move the project to another computer. You may have data files or .rc or .manifest files you've modified, etc. Thanks. -Phil ---------------------------------------------------------------------- Leledumbo · 2009-02-03 04:48 QuoteBe sure to include .lrs filesI don't think so, it's not backward compatible (0.9.24 and below). Lazarus 0.9.26+ (CMIIW) adds LCLVersion which is unknown by 0.9.24. Only distribute .lfm, the IDE will recreate .lrs compatible with Lazarus you're running. WARNING: It applies only to .lrs created for .lfm, for other .lrs (icons, etc.) this might be wrong. ---------------------------------------------------------------------- Vincent Snijders · 2009-02-03 09:20 Older Lazarus versions (0.9.26(5?) and before) only create an .lrs file if something has changed in a lfm. ---------------------------------------------------------------------- Phil · 2009-02-03 14:24 If you don't include the project's .lrs, then it looks like you're pretty much hosed. Again, a safer approach is probably to examine each file and decide what to zip. Then unzip it somewhere and test that the project can still be compiled with lazbuild. Thanks. -Phil