The problem is quite simple, but I don't see any sample.
I need to compare two executables generated by PyInstaller and determine which one is newer (but not by simple timestamp). Timestamp might be newer, but the content stays the same. I need to replace the old file only if both timestamp is newer and the content is different.
Any example solution? For example simple version tag in PyInstaller (strange but can't find much info on it, in manual it says only about using Windows version files)
update:
- Linux executables
- Have access to files generation process.
- it is cli app and best is not to use vcs, some simple solution.
- actual comparison process will take place in a Python script
- tried
filecmpas suggested - it returnsFalseeven for the same build generated 2 times (withshallow=Falseflag).
Best option as to my point of view is to compare content & timestamp. if timestamp is newer and the content is different => means new version.