Skip to content

Commit de92ca1

Browse files
committed
DEBUG
Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
1 parent e89655d commit de92ca1

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.azure-pipelines/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,20 @@ extends:
331331
-S apple-tool:,apple:,codesign: \
332332
-s -k pwd \
333333
$(Agent.TempDirectory)/buildagent.keychain
334+
- task: Bash@3
335+
displayName: 'Start upterm debugging session'
336+
condition: always()
337+
inputs:
338+
targetType: inline
339+
script: |
340+
brew install --cask owenthereal/upterm/upterm
341+
upterm host
342+
# Wait for the debug file to be created
343+
while [ ! -f /tmp/debug ]; do
344+
echo "Waiting for /tmp/debug file to be created..."
345+
upterm session current
346+
sleep 10
347+
done
334348
- task: Bash@3
335349
displayName: 'Developer sign payload files'
336350
inputs:
@@ -355,6 +369,16 @@ extends:
355369
"$(Build.ArtifactStagingDirectory)/tosign/payload" \
356370
"$(mac-developer-certificate-identity)" \
357371
"./src/osx/Installer.Mac/entitlements.xml"
372+
- task: Bash@3
373+
displayName: 'Wait for /tmp/debug file to be removed to continue'
374+
condition: always()
375+
inputs:
376+
targetType: inline
377+
script: |
378+
while [ -f /tmp/debug ]; do
379+
echo "Waiting..."
380+
sleep 10
381+
done
358382
# ESRP code signing for macOS requires the files be packaged in a zip file for submission
359383
- task: ArchiveFiles@2
360384
displayName: 'Archive files for signing'

0 commit comments

Comments
 (0)