Compare commits
57 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 985258d4e8 | |||
| e4bc461bb1 | |||
| 404fbdd726 | |||
| d0a4df7533 | |||
| b51437f0de | |||
| 47ae0fbdf6 | |||
| 4a003fb830 | |||
| 750683f808 | |||
| 77bd80864e | |||
| 1e21c5b540 | |||
| a6f5b3397b | |||
| 5b0120d988 | |||
| c392bbcd6e | |||
| 595af09517 | |||
| 0e8b24090d | |||
| c0c3b8621b | |||
| 307ba8a78b | |||
| dcad66381c | |||
| ab7f0c8e53 | |||
| ba203dbb23 | |||
| 0fead2b135 | |||
| bc8804410f | |||
| 80c2cfb9de | |||
| 2b578341aa | |||
| 37475b1ea0 | |||
| c78afe822b | |||
| 2bdfc8ca9d | |||
| 60d5f12171 | |||
| cce6a86a86 | |||
| c02ed08f69 | |||
| f01babf789 | |||
| d0a6112a38 | |||
| f66fc149a7 | |||
| ddd5d6e396 | |||
| 5e4db14cfa | |||
| 273ea57b11 | |||
| b6076a15a7 | |||
| 8bb57ee4a3 | |||
| c4eba01a39 | |||
| 59573d6459 | |||
| 33d86f870c | |||
| acfcecec21 | |||
| 3e84d9a028 | |||
| f20596a213 | |||
| 3960becc34 | |||
| 37751c1c4f | |||
| ef0a0ff6fa | |||
| 8c8260050e | |||
| a804926818 | |||
| c6ed842cf3 | |||
| ca56561c6a | |||
|
|
f165debe18 | ||
|
|
f933bf0174 | ||
|
|
b579135f96 | ||
|
|
83300a766b | ||
|
|
e1dc68b758 | ||
|
|
98ddb102ef |
@ -1 +1 @@
|
|||||||
http://xplayer-ota.pureroad.cn/files_20260214_092644.tar.xz
|
http://xplayer-ota.pureroad.cn/files_20260407_214750.tar.xz
|
||||||
|
|||||||
@ -65,6 +65,7 @@
|
|||||||
libldacbt-enc2 \
|
libldacbt-enc2 \
|
||||||
aria2 \
|
aria2 \
|
||||||
libsmbclient-dev \
|
libsmbclient-dev \
|
||||||
|
ffmpeg \
|
||||||
cloud-guest-utils"
|
cloud-guest-utils"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
@ -146,6 +147,7 @@
|
|||||||
- path: /srv/login
|
- path: /srv/login
|
||||||
- path: /usr/var/lib/bluealsa
|
- path: /usr/var/lib/bluealsa
|
||||||
- path: /srv/bluez-alsa
|
- path: /srv/bluez-alsa
|
||||||
|
- path: /srv/music-classification
|
||||||
|
|
||||||
|
|
||||||
- name: Copy static files
|
- name: Copy static files
|
||||||
@ -190,6 +192,12 @@
|
|||||||
- src: ../files/apt-fast.conf
|
- src: ../files/apt-fast.conf
|
||||||
dest: /etc/apt-fast.conf
|
dest: /etc/apt-fast.conf
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
- src: ../files/rk3588s-pureroad.dtbo
|
||||||
|
dest: /boot/dtb/rockchip/overlay/rk3588s-pureroad.dtbo
|
||||||
|
mode: '0644'
|
||||||
|
- src: ../files/music-classification/
|
||||||
|
dest: /srv/music-classification/
|
||||||
|
mode: '0644'
|
||||||
|
|
||||||
- name: update mpd data
|
- name: update mpd data
|
||||||
copy:
|
copy:
|
||||||
@ -407,16 +415,9 @@
|
|||||||
- reload_systemd
|
- reload_systemd
|
||||||
- enable_xplayer_server
|
- enable_xplayer_server
|
||||||
- start_xplayer_server
|
- start_xplayer_server
|
||||||
- restart_xplayer_server
|
|
||||||
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 firmware
|
|
||||||
copy:
|
|
||||||
src: /lib/firmware/ap6276p/
|
|
||||||
dest: /lib/firmware/ap6275p/
|
|
||||||
remote_src: yes
|
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- name: cleanup_packages
|
- name: cleanup_packages
|
||||||
apt:
|
apt:
|
||||||
@ -512,7 +513,12 @@
|
|||||||
|
|
||||||
- name: install_bluealsa_openaptx
|
- name: install_bluealsa_openaptx
|
||||||
shell:
|
shell:
|
||||||
cmd: /usr/bin/install_bluealsa_openaptx.sh
|
cmd: |
|
||||||
|
/usr/bin/install_bluealsa_openaptx.sh
|
||||||
|
install -m 0644 {{ playbook_dir }}/../files/libaptx.so /usr/local/lib/libaptx.so
|
||||||
|
install -m 0755 {{ playbook_dir }}/../files/bluealsad /usr/bin/bluealsad
|
||||||
|
install -m 0755 {{ playbook_dir }}/../files/bluealsa-aplay /usr/bin/bluealsa-aplay
|
||||||
|
ldconfig
|
||||||
|
|
||||||
- name: enable_bluealsa
|
- name: enable_bluealsa
|
||||||
shell:
|
shell:
|
||||||
|
|||||||
5
sync.sh
5
sync.sh
@ -42,6 +42,11 @@ rsync 5c:/usr/local/bin/xplayer-recovery files/xplayer-recovery
|
|||||||
rsync 5c:/etc/systemd/system/xplayer-recovery.service files/xplayer-recovery.service
|
rsync 5c:/etc/systemd/system/xplayer-recovery.service files/xplayer-recovery.service
|
||||||
rsync 5c:/etc/systemd/system/xplayer-helper.service files/xplayer-helper.service
|
rsync 5c:/etc/systemd/system/xplayer-helper.service files/xplayer-helper.service
|
||||||
rsync 5c:/usr/local/bin/server-helper files/server-helper
|
rsync 5c:/usr/local/bin/server-helper files/server-helper
|
||||||
|
rsync 5c:/usr/local/lib/libaptx.so files/libaptx.so
|
||||||
|
rsync 5c:/usr/bin/bluealsad files/bluealsad
|
||||||
|
rsync 5c:/usr/bin/bluealsa-aplay files/bluealsa-aplay
|
||||||
|
rsync 5c:/boot/dtb/rockchip/overlay/rk3588s-pureroad.dtbo files/rk3588s-pureroad.dtbo
|
||||||
|
rsync -avz 5c:/srv/music-classification/ files/music-classification/
|
||||||
|
|
||||||
# Clean up macOS resource fork files
|
# Clean up macOS resource fork files
|
||||||
find files -name "._*" -type f -delete
|
find files -name "._*" -type f -delete
|
||||||
|
|||||||
31
test-direnv.sh
Executable file
31
test-direnv.sh
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
echo "=== Testing direnv setup ==="
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
echo "1. Shell: $SHELL"
|
||||||
|
echo "2. Current directory: $(pwd)"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
echo "3. Checking if direnv hook is loaded:"
|
||||||
|
type _direnv_hook 2>/dev/null && echo " ✓ direnv hook found" || echo " ✗ direnv hook NOT found"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
echo "4. Checking .envrc status:"
|
||||||
|
direnv status | grep -E "(Found RC|allowed)"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
echo "5. Current QINIU_BUCKET value:"
|
||||||
|
echo " QINIU_BUCKET=${QINIU_BUCKET:-[not set]}"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
echo "6. Manually trigger direnv:"
|
||||||
|
eval "$(direnv export zsh 2>&1)"
|
||||||
|
echo " QINIU_BUCKET=${QINIU_BUCKET:-[not set]}"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
echo "=== Instructions ==="
|
||||||
|
echo "If you don't see direnv loading automatically:"
|
||||||
|
echo "1. Exit and re-enter the directory: cd .. && cd -"
|
||||||
|
echo "2. Or reload shell: exec zsh"
|
||||||
|
echo "3. You should see: direnv: loading ~/Projects/xplayer-ota/.envrc"
|
||||||
Loading…
x
Reference in New Issue
Block a user