summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-09-11 18:05:32 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-09-11 18:05:32 -0400
commit62879b6e698a839784e1319e0d555c01ce0b4220 (patch)
treeabf4a68b758005f6738aa72fbfa4a1f454fc2d19 /indra
parentfab7b300b9c8b82ac062cda5c5297500f0c311eb (diff)
SL-19242: Adjust Windows relative path base directory.
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/viewer_manifest.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index 1a8973ff84..8869831635 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -499,8 +499,19 @@ class WindowsManifest(ViewerManifest):
if self.is_packaging_viewer():
# 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.
- appbase = self.relpath(self.get_dst_prefix(), base=os.getcwd())
+ # Emit the whole app image as one of the GitHub step outputs. When
+ # we feed upload-artifact multiple absolute pathnames, even just
+ # for exclusion, it ends up creating several extraneous directory
+ # levels within the artifact -- so try using only relative paths.
+ # One problem: as of right now, our current directory os.getcwd()
+ # is not the same as the initial working directory for this job
+ # step, meaning paths relative to our os.getcwd() won't work for
+ # the subsequent upload-artifact step. We're a couple directory
+ # levels down. Try adjusting for those when specifying the base
+ # for self.relpath().
+ appbase = self.relpath(
+ self.get_dst_prefix(),
+ base=os.path.join(os.getcwd(), os.pardir, os.pardir))
self.set_github_output('viewer_app', appbase,
# except for this stuff
*(('!' + os.path.join(appbase, pattern))