Do not make installer package unless binary is updated (or touched)

This is bad for production,
adding a touch binary line to the prebuild step should fix it though
This commit is contained in:
Lirusaito
2019-05-31 19:35:22 -04:00
parent 1cd7706461
commit 68fc758e94

View File

@@ -722,6 +722,13 @@ class WindowsManifest(ViewerManifest):
installer_file = self.installer_base_name() + '_Setup.exe'
substitution_strings['installer_file'] = installer_file
# Packaging the installer takes forever, dodge it if we can.
binary_mod = os.path.getmtime(os.path.join(self.args['configuration'], self.final_exe()))
installer_mod = os.path.getmtime(os.path.join(self.args['configuration'], installer_file))
if binary_mod <= installer_mod:
print("Binary is unchanged since last package, touch the binary to trigger repackage.")
exit();
version_vars = """
!define INSTEXE "%(final_exe)s"
!define VERSION "%(version_short)s"