File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -54,19 +54,13 @@ runs:
54
54
id : unpack
55
55
shell : bash
56
56
run : |
57
- if [[ "${{ inputs.channel }}" == "${{ inputs.channel_vendor_base }} Release" ]]
58
- then app_name="${{ inputs.channel_vendor_base }} Viewer"
59
- else app_name="${{ inputs.channel }}"
60
- fi
61
- echo "app_name=$app_name" >> "$GITHUB_OUTPUT"
62
57
set -x
63
58
mkdir -p ".app"
64
59
tar xjf .tarball/* -C ".app"
65
60
66
61
- name : Set up the app sparseimage
67
62
shell : bash
68
63
run : |
69
- app_name="${{ steps.unpack.outputs.app_name }}"
70
64
set -x -e
71
65
# MBW -- If the mounted volume name changes, it breaks the .DS_Store's
72
66
# background image and icon positioning. If we really need
@@ -111,8 +105,10 @@ runs:
111
105
done
112
106
113
107
# don't forget the application itself
114
- cp -a ".app/$app_name.app" "$volpath/"
115
- echo "app_path=$volpath/$app_name.app" >> "$GITHUB_ENV"
108
+ artifact_app="$(ls -dt .app/*.app | head -n 1)"
109
+ cp -a "$artifact_app" "$volpath/"
110
+ app_name="$(basename "$artifact_app")"
111
+ echo "app_path=$volpath/$app_name" >> "$GITHUB_ENV"
116
112
117
113
# Create the alias file (which is a resource file) from the .r
118
114
Rez "$dmg_prefill/Applications-alias.r" -o "$volpath/Applications"
You can’t perform that action at this time.
0 commit comments