PyinStaller packs multi-files into EXE Add to version information

Last week, the first version of the automated test package (packaged into an exe) was released to R&D. This week, the test code for page changes has been adjusted, so another version will be released.

Considering the version issue of each version, how Hudu Niang adds version information to the packaged exe, the following is the specific operation method.

The idea of ​​adding software version information is to modify it to what you need based on the version information of the existing software.

First of all, I found the software installed in the computer and found the installation path. I used the cisco tftp server, the path is: C:\Program Files (x86)\Cisco Systems\Cisco TFTP Server

Share a picture

Execute the command in the command line window to generate file_version_info .txt

share picture

Open file_version_info. txt, create a new file, and copy the content in file_version_info.txt (on the Internet, it is said that txt may encounter encoding problems, so there is this step)

Save the newly created file as version.txt, and Make changes according to your needs.

After the modification is completed, put version.txt in the same path as the packaged exe icon and modify the .spec file

share picture

The version information can be added to the generated exe file.

Pack a single file and add the version number through the command line. There are many introductions on the Internet.

I encountered a problem:

An error was reported when packaging the .spec file:

unexcepted eof while parsing

At first I thought it was a .spec The version format added to the file was incorrect, and it was later discovered that it was a problem with the revision of the version.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2215 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.