--add-data <SRC;DEST or SRC:DEST> Additional non-binary files or folders to be added to the executable. The path separator is platform specific, os.pathsep (which is ; on Windows and : on most unix systems) is used. This option can be used multiple times.
可以使用 spec 文件,像我当年写的这个这个(不过我用的是 edgedriver):
具体文档在这里:Adding Data Files - Using Spec Files。
当然,也可以使用命令行选项: