summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-09-11 12:53:34 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-09-11 12:53:34 -0400
commit0107f030c85c1ea122309a21a4d6790fc22e6d10 (patch)
tree55ac70eb9866562a4e4796494174593c25603894 /indra/newview
parent29300a1fd356b7355ecfb56951e7d7ad0553ef15 (diff)
SL-19242: Eliminate cruft from Windows app image artifact
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/viewer_manifest.py21
1 files changed, 17 insertions, 4 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index 4084c1d9a4..33d5720320 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -34,6 +34,7 @@ import os.path
import plistlib
import random
import re
+import secrets
import shutil
import subprocess
import sys
@@ -411,11 +412,18 @@ class ViewerManifest(LLManifest):
self.set_github_output(variable,
os.path.normpath(os.path.join(self.get_dst_prefix(), path)))
- def set_github_output(self, variable, value):
+ def set_github_output(self, variable, *values):
GITHUB_OUTPUT = os.getenv('GITHUB_OUTPUT')
- if GITHUB_OUTPUT:
+ if GITHUB_OUTPUT and values:
with open(GITHUB_OUTPUT, 'a') as outf:
- print('='.join((variable, value)), file=outf)
+ if len(values) == 1:
+ print('='.join((variable, value)), file=outf)
+ else:
+ delim = secrets.token_hex(8)
+ print('<<'.join((variable, delim)), file=outf)
+ for value in values:
+ print(value, file=outf)
+ print(delim, file=outf)
class WindowsManifest(ViewerManifest):
@@ -492,7 +500,12 @@ class WindowsManifest(ViewerManifest):
# Find secondlife-bin.exe in the 'configuration' dir, then rename it to the result of final_exe.
self.path(src='%s/secondlife-bin.exe' % self.args['configuration'], dst=self.final_exe())
# Emit the whole app image as one of the GitHub step outputs.
- self.set_github_output_path('viewer_app', '')
+ self.set_github_output('viewer_app',
+ self.get_dst_prefix(), # whole app directory
+ '!secondlife-bin.*', # except for this stuff
+ '!*.bat',
+ '!*.tar.bz2',
+ '!*.nsi')
with self.prefix(src=os.path.join(pkgdir, "VMP")):
# include the compiled launcher scripts so that it gets included in the file_list