feat: for bluetooth audio
This commit is contained in:
parent
0c8e7639ca
commit
4b5d2e7f70
@ -1 +1 @@
|
|||||||
http://xplayer-ota.pureroad.cn/files_20251026_192650.tar.xz
|
http://xplayer-ota.pureroad.cn/files_20251030_143212.tar.xz
|
||||||
|
|||||||
@ -70,18 +70,33 @@
|
|||||||
- net-tools
|
- net-tools
|
||||||
- libconfig9
|
- libconfig9
|
||||||
- avahi-daemon
|
- avahi-daemon
|
||||||
# - bluez-alsa-utils
|
- libdbus-1-3
|
||||||
|
- libglib2.0-0
|
||||||
|
- libbluetooth3
|
||||||
|
- libsbc1
|
||||||
|
- libfdk-aac2
|
||||||
|
- libldacbt-abr2
|
||||||
|
- libldacbt-enc2
|
||||||
# - upmpdcli
|
# - upmpdcli
|
||||||
state: present
|
state: present
|
||||||
cache_valid_time: 3153600 # 365天缓存
|
cache_valid_time: 3153600 # 365天缓存
|
||||||
update_cache: no
|
update_cache: no
|
||||||
become: yes
|
become: yes
|
||||||
tags: apt
|
tags: apt
|
||||||
- name: uninstall bluez-alsa-utils
|
|
||||||
shell:
|
- name: Create directories
|
||||||
cmd: apt remove -y bluez-alsa-utils
|
file:
|
||||||
become: yes
|
path: "{{ item.path }}"
|
||||||
tags: apt
|
state: directory
|
||||||
|
mode: "{{ item.mode | default('0755') }}"
|
||||||
|
loop:
|
||||||
|
- path: /var/lib/mpd/playlists
|
||||||
|
- path: /var/lib/mpd/music
|
||||||
|
- path: /usr/local/lib/systemd/system
|
||||||
|
- path: /srv/login
|
||||||
|
- path: /usr/var/lib/bluealsa
|
||||||
|
- path: /srv/bluez-alsa
|
||||||
|
|
||||||
|
|
||||||
- name: Copy static files
|
- name: Copy static files
|
||||||
copy:
|
copy:
|
||||||
@ -120,17 +135,6 @@
|
|||||||
dest: /usr/local/bin/xplayer-start.sh
|
dest: /usr/local/bin/xplayer-start.sh
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
- name: Create directories
|
|
||||||
file:
|
|
||||||
path: "{{ item.path }}"
|
|
||||||
state: directory
|
|
||||||
mode: "{{ item.mode | default('0755') }}"
|
|
||||||
loop:
|
|
||||||
- path: /var/lib/mpd/playlists
|
|
||||||
- path: /var/lib/mpd/music
|
|
||||||
- path: /usr/local/lib/systemd/system
|
|
||||||
- path: /srv/login
|
|
||||||
|
|
||||||
- name: update mpd data
|
- name: update mpd data
|
||||||
copy:
|
copy:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
@ -176,6 +180,29 @@
|
|||||||
register: copy_result
|
register: copy_result
|
||||||
changed_when: copy_result.changed or (force_update | default(false) | bool)
|
changed_when: copy_result.changed or (force_update | default(false) | bool)
|
||||||
|
|
||||||
|
- name: update bluealsa
|
||||||
|
copy:
|
||||||
|
src: "{{ item.src }}"
|
||||||
|
dest: "{{ item.dest }}"
|
||||||
|
mode: "{{ item.mode | default('0644') }}"
|
||||||
|
loop:
|
||||||
|
- src: ../files/bluealsa.service
|
||||||
|
dest: /etc/systemd/system/bluealsa.service
|
||||||
|
- src: ../files/install_bluealsa_openaptx.sh
|
||||||
|
dest: /usr/bin/install_bluealsa_openaptx.sh
|
||||||
|
mode: '0755'
|
||||||
|
- src: ../files/bluealsa_bundle.tar.gz
|
||||||
|
dest: /srv/bluez-alsa/bluealsa_bundle.tar.gz
|
||||||
|
tags: bluealsa
|
||||||
|
notify:
|
||||||
|
- install_bluealsa_openaptx
|
||||||
|
- reload_systemd
|
||||||
|
- enable_bluealsa
|
||||||
|
- stop_bluealsa
|
||||||
|
- start_bluealsa
|
||||||
|
register: copy_result
|
||||||
|
changed_when: copy_result.changed or (force_update | default(false) | bool)
|
||||||
|
|
||||||
- name: update camilladsp
|
- name: update camilladsp
|
||||||
copy:
|
copy:
|
||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
@ -401,4 +428,19 @@
|
|||||||
shell:
|
shell:
|
||||||
cmd: echo "need reboot"
|
cmd: echo "need reboot"
|
||||||
|
|
||||||
|
- name: enable_bluealsa
|
||||||
|
shell:
|
||||||
|
cmd: systemctl enable bluealsa
|
||||||
|
- name: stop_bluealsa
|
||||||
|
shell:
|
||||||
|
cmd: systemctl stop bluealsa
|
||||||
|
- name: start_bluealsa
|
||||||
|
shell:
|
||||||
|
cmd: systemctl start bluealsa
|
||||||
|
- name: restart_bluealsa
|
||||||
|
shell:
|
||||||
|
cmd: systemctl restart bluealsa
|
||||||
|
- name: install_bluealsa_openaptx
|
||||||
|
shell:
|
||||||
|
cmd: /usr/bin/install_bluealsa_openaptx.sh
|
||||||
|
|
||||||
|
|||||||
3
sync.sh
3
sync.sh
@ -33,6 +33,9 @@ rsync 5c:/etc/systemd/system/sing-box.service files/sing-box.service
|
|||||||
rsync -avz --exclude='login/' 5c:/srv/login/ files/login/
|
rsync -avz --exclude='login/' 5c:/srv/login/ files/login/
|
||||||
rsync 5c:/usr/bin/led-startup.sh files/led-startup.sh
|
rsync 5c:/usr/bin/led-startup.sh files/led-startup.sh
|
||||||
rsync 5c:/usr/local/bin/xplayer-start.sh files/xplayer-start.sh
|
rsync 5c:/usr/local/bin/xplayer-start.sh files/xplayer-start.sh
|
||||||
|
rsync 5c:/usr/bin/install_bluealsa_openaptx.sh files/install_bluealsa_openaptx.sh
|
||||||
|
rsync 5c:/etc/systemd/system/bluealsa.service files/bluealsa.service
|
||||||
|
rsync 5c:/srv/bluez-alsa/bluealsa_bundle.tar.gz files/bluealsa_bundle.tar.gz
|
||||||
|
|
||||||
# Clean up macOS resource fork files
|
# Clean up macOS resource fork files
|
||||||
find files -name "._*" -type f -delete
|
find files -name "._*" -type f -delete
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user