summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-09-20 11:34:56 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-09-20 11:34:56 -0400
commite8dfbbaf880314359c0c2d18c944199e3f26db07 (patch)
tree2da3c96d7505a4413b4af1a1165f91bebe7023ef
parent763fcb02b89ae8e2149127f420bb5d9ca1594ccc (diff)
SL-19242: Pass channel and imagename to sign-pkg-mac/action.yaml.
The viewer_manifest.py logic to determine the name of the viewer installer .dmg is a little convoluted. Make it tell viewer-build-util/sign-pkg-mac that name, rather than passing it all the relevant inputs and composing it redundantly. sign-pkg-mac also wants the viewer channel to determine the application name.
-rw-r--r--.github/workflows/build.yaml4
-rwxr-xr-xindra/newview/viewer_manifest.py3
2 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index bb1b8bb08b..b010115e9c 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -24,6 +24,7 @@ jobs:
outputs:
viewer_channel: ${{ steps.build.outputs.viewer_channel }}
viewer_version: ${{ steps.build.outputs.viewer_version }}
+ imagename: ${{ steps.build.outputs.imagename }}
env:
AUTOBUILD_ADDRSIZE: 64
AUTOBUILD_BUILD_ID: ${{ github.run_id }}
@@ -280,6 +281,9 @@ jobs:
steps:
- name: Sign and package Mac viewer
uses: secondlife/viewer-build-util/sign-pkg-mac@main
+ with:
+ channel: ${{ needs.build.outputs.viewer_channel }}
+ imagename: ${{ needs.build.outputs.imagename }}
post-windows-symbols:
needs: build
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index 0c54981af3..10f38fa7d8 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -1273,6 +1273,7 @@ class DarwinManifest(ViewerManifest):
volname=CHANNEL_VENDOR_BASE+" Installer" # DO NOT CHANGE without understanding comment above
imagename = self.installer_base_name()
+ self.set_github_output('imagename', imagename)
sparsename = imagename + ".sparseimage"
finalname = imagename + ".dmg"
@@ -1292,7 +1293,7 @@ class DarwinManifest(ViewerManifest):
try:
devfile = re.search("/dev/disk([0-9]+)[^s]", hdi_output).group(0).strip()
- volpath = re.search('HFS\s+(.+)', hdi_output).group(1).strip()
+ volpath = re.search(r'HFS\s+(.+)', hdi_output).group(1).strip()
# Copy everything in to the mounted .dmg