mirror of
https://github.com/kyleneideck/BackgroundMusic
synced 2025-02-16 20:28:26 +00:00
Installer: Log more audio device info if BGMDevice doesn't appear.
This commit is contained in:
parent
5f1641da8f
commit
a730fb98f8
2 changed files with 16 additions and 6 deletions
12
.github/workflows/build-test-release.yml
vendored
12
.github/workflows/build-test-release.yml
vendored
|
@ -109,7 +109,10 @@ jobs:
|
||||||
test
|
test
|
||||||
echo '::endgroup::'
|
echo '::endgroup::'
|
||||||
- name: Uninstall Background Music.
|
- name: Uninstall Background Music.
|
||||||
run: genv --default-signal=PIPE yes | sudo ./uninstall.sh
|
run: |
|
||||||
|
# `tput` expects this to be set.
|
||||||
|
export TERM=xterm-256color
|
||||||
|
genv --default-signal=PIPE yes | sudo ./uninstall.sh
|
||||||
- name: Check the BGM dirs and files were removed.
|
- name: Check the BGM dirs and files were removed.
|
||||||
run: |
|
run: |
|
||||||
if ls -la "/Applications/Background Music.app"; then exit 1; fi
|
if ls -la "/Applications/Background Music.app"; then exit 1; fi
|
||||||
|
@ -156,11 +159,8 @@ jobs:
|
||||||
-dumplog
|
-dumplog
|
||||||
- name: Print the installer logs.
|
- name: Print the installer logs.
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
# This trims the start of the log to save space.
|
||||||
echo '::group::install.log'
|
run: grep -E -A 9999 -B 20 'Background.?Music' /var/log/install.log
|
||||||
# This trims the start of the log to save space.
|
|
||||||
grep -E -A 9999 -B 20 'Background.?Music' /var/log/install.log
|
|
||||||
echo '::endgroup::'
|
|
||||||
- name: Check the BGM dirs and files were installed again.
|
- name: Check the BGM dirs and files were installed again.
|
||||||
if: always()
|
if: always()
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -75,6 +75,16 @@ while [[ $retries -gt 0 ]]; do
|
||||||
# installer GUI instead of just logging them. See
|
# installer GUI instead of just logging them. See
|
||||||
# <https://developer.apple.com/library/archive/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html#//apple_ref/doc/uid/TP40005370-CH100-SW12>.
|
# <https://developer.apple.com/library/archive/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html#//apple_ref/doc/uid/TP40005370-CH100-SW12>.
|
||||||
log "Background Music device not found. Installation failed."
|
log "Background Music device not found. Installation failed."
|
||||||
|
log "Audio devices:"
|
||||||
|
log $(system_profiler SPAudioDataType)
|
||||||
|
log "Audio input devices:"
|
||||||
|
log $(echo 'import AVFoundation
|
||||||
|
let discoverySession = AVCaptureDevice.DiscoverySession(
|
||||||
|
deviceTypes: [ .builtInMicrophone, .externalUnknown ],
|
||||||
|
mediaType: .audio,
|
||||||
|
position: .unspecified
|
||||||
|
)
|
||||||
|
print(discoverySession.devices)' | swift -)
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue