Skip to content

Commit

Permalink
feat(scripts): remove unused sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
duhow committed Dec 11, 2024
1 parent 4da54a6 commit 95e109b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/40_sounds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ for NAME in aux_on aux_off aux_stop_tip \
reset_wait reset service_timeout setup_failure tts_vendor_demo unknown_action unknown_domain \
unknown_service upgrade_later upgrade_now wakeup_ei_01 wakeup_ei_02 wakeup_mitv wakeup_wozai_01 \
wakeup_zai_01 wakeup_zai_02 weak_network welcome wifi_disconnect alarmDefault first_voice \
network_done_init network_done_miio; do
network_done_init network_done_miio reminder_default timer_default alarmDefault7s; do
rm -vf $SOUND_FOLDER/original/$NAME.*
done

Expand Down
5 changes: 5 additions & 0 deletions scripts/92_copy_build_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ for FILE in libxml2.so.2.9.7 libxml2.so.2.9.3 libstdc++.so.6.0.22* libsbc.so.1.2
rm -vf $ROOTFS/usr/lib/$FILE
done

# delete alsa sounds, keep only Front_Left
for FILE in Front_Right Front_Center Noise ; do
rm -vf $ROOTFS/usr/share/sounds/alsa/${FILE}.wav
done

# delete unwanted binaries, both from source root image or compiled
for FILE in wget-ssl libtool libtoolize; do
rm -vf $ROOTFS/usr/bin/$FILE
Expand Down

0 comments on commit 95e109b

Please sign in to comment.