Skip to content

Commit

Permalink
Release 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
edernucci committed Oct 20, 2021
1 parent a55f8c4 commit cf6ca15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#!/bin/bash

version=2.4.0-rc3
version=2.5.0

# make normalized folders
find SOUNDS -type d | xargs -I % mkdir -p normalized/%

# normalize each file and replace source
for file in $(find SOUNDS -type f)
do
ffmpeg -i $file -af "volume=4.5dB,silenceremove=start_periods=1:start_silence=0.1:start_threshold=-50dB,areverse,silenceremove=start_periods=1:start_silence=0.1:start_threshold=-50dB,areverse" normalized/$file && \
ffmpeg -i $file -af "volume=6.0dB,silenceremove=start_periods=1:start_silence=0.1:start_threshold=-50dB,areverse,silenceremove=start_periods=1:start_silence=0.1:start_threshold=-50dB,areverse" normalized/$file && \
mv -f normalized/$file $file
done

# compress the release files
for lang in $(ls SOUNDS)
do
find SOUNDS/$lang -type f | zip -@ edgetx-sdcard-sounds-$lang-$version.zip
done
done

0 comments on commit cf6ca15

Please sign in to comment.