9999 required : true
100100 type : string
101101
102+ # electron-builder leaves the default arch (x64) out of the unpacked app's
103+ # directory name.
104+ env :
105+ UNPACKED_DIR : ${{ inputs.platform }}-${{ inputs.arch != 'x64' && format('{0}-', inputs.arch) || '' }}unpacked
106+
102107permissions :
103108 # Windows builds read this run's artifact list to wait for the Linux CLI archive.
104109 actions : read
@@ -525,7 +530,7 @@ jobs:
525530 run : |
526531 set -euo pipefail
527532 mkdir -p verify
528- unpacked=$(ls -d "${TMPDIR:-/tmp}"/t3code-desktop-${{ inputs.platform }}-stage-*/app/dist/${{ inputs.platform }}-${{ inputs.arch }}-unpacked )
533+ unpacked=$(ls -d "${TMPDIR:-/tmp}"/t3code-desktop-${{ inputs.platform }}-stage-*/app/dist/"$UNPACKED_DIR" )
529534 tar -C "$(dirname "$unpacked")" -cf verify/unpacked.tar "$(basename "$unpacked")"
530535 esbuild=scripts/node_modules/.bin/esbuild
531536 banner="import{createRequire as __cr}from'node:module';const require=__cr(import.meta.url);"
@@ -645,7 +650,7 @@ jobs:
645650 set -euo pipefail
646651 tar -C verify -xf verify/unpacked.tar
647652 node verify/verify-windows-desktop-artifact.mjs \
648- --app-dir "$(cygpath -w "$PWD/verify/${{ inputs.platform }}-${{ inputs.arch }}-unpacked ")" \
653+ --app-dir "$(cygpath -w "$PWD/verify/$UNPACKED_DIR ")" \
649654 --arch "${{ inputs.arch }}" --build-version "${{ inputs.version }}" --verbose
650655
651656 - name : Smoke-test CLI archive
@@ -660,7 +665,7 @@ jobs:
660665 - name : Smoke-test resource monitor
661666 shell : bash
662667 env :
663- MONITOR : verify/${{ inputs.platform }}-${{ inputs.arch }}-unpacked /resources/resource-monitor/t3-resource-monitor.exe
668+ MONITOR : verify/${{ env.UNPACKED_DIR }}/resources/resource-monitor/t3-resource-monitor.exe
664669 EXPECTED_ARCH : ${{ inputs.arch == 'arm64' && 'aarch64' || 'x86_64' }}
665670 run : |
666671 node --input-type=module <<'EOF'
0 commit comments