From 68fc758e943b1c25d983a5d1c70f6c740d4785bf Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Fri, 31 May 2019 19:35:22 -0400 Subject: [PATCH] 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 --- indra/newview/viewer_manifest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index f01357bee..0ca559b29 100755 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -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"