How to recreate the "default" .res file from the command line?

If the .res file is missing. your project by default. Delphi will offer to recreate it when opening a project in the IDE. Is it possible to call this function from the command line?

Background:

The project is under version control, its .res file has not been verified (some thoughts on why you can find it here ). The project is checked automatically and created from the command line. The problem is that the .res file is missing, which is why the assembly failed. Is there any way to call the auto-create function that the IDE uses from the command line? Otherwise, it seems to me that I am forced to check the .res file.

+4
source share
1 answer

No, there is no command line tool in Delphi to recreate the default resource file.

This is just as good since you don't need a default resource file. It will contain a common version number and a common icon, which is obviously not needed in any project important enough for automatic assemblies.

Binary resource files cannot cope with source control, which raises another question. Instead, write .rc files and compile them as part of your build. Delphi will no longer automatically increase build numbers, but it’s easy enough to reproduce this in your build script by updating the .rc file (or by creating the included file) before compiling.

If you really need a binary resource file, you can save it in the original control, but with a different name or location than you expect to find the compiler. After checking, but before assembling, copy it to the right place. Changes to the copy will not be written to the original control.

+3
source

Source: https://habr.com/ru/post/1389426/


All Articles