使用 cxfreeze 构建时,可执行文件的修改日期显示第一个构建日期。但是可执行文件运行最新版本

Date modified of an executable displays the first build date when building with cxfreeze. However the executable runs the most recent version

我构建了一个简单的 python 脚本作为一个 exe 文件 - 第一次构建没有显示预期的结果所以我用更改重建它,exe 现在工作正常但是 exe 文件仍然显示是原始构建日期.

cx_Freeze 对其复制的所有文件调用 shutil.copystat(),因此源时间也用于目标文件。