mirror of
https://github.com/nzp-team/nzp-team.github.io.git
synced 2024-11-10 06:31:46 +00:00
Use ffmpeg to auto-encode tracks as 8bit .wav for web deployment
This commit is contained in:
parent
e032539b38
commit
4d63db8029
1 changed files with 5 additions and 4 deletions
9
.github/workflows/webgl-update.yml
vendored
9
.github/workflows/webgl-update.yml
vendored
|
@ -16,7 +16,7 @@ jobs:
|
|||
- name: Get apt ready
|
||||
run: |
|
||||
apt update
|
||||
apt install -y zip unzip wget curl git jq bash
|
||||
apt install -y zip unzip wget curl git jq bash ffmpeg
|
||||
- name: Download assets
|
||||
run: |
|
||||
git config --global --add safe.directory $GITHUB_WORKSPACE
|
||||
|
@ -33,7 +33,10 @@ jobs:
|
|||
unzip -q pc-nzp-assets.zip -d tmp/
|
||||
unzip -q fte-nzp-qc.zip -d tmp/nzp/
|
||||
mv build-version.txt tmp/nzp/version.txt
|
||||
cd tmp/nzp/
|
||||
cd tmp/nzp/tracks
|
||||
find . -name '*.ogg' -exec bash -c 'ffmpeg -i $1 -acodec pcm_u8 -ar 16000 ${1%.*}.wav' -- {} \;
|
||||
rm *.ogg
|
||||
cd ../
|
||||
zip -r ../../nzp/game.pk3 ./*
|
||||
- name: Replace WebAssembly files
|
||||
run: |
|
||||
|
@ -55,5 +58,3 @@ jobs:
|
|||
branch: main
|
||||
commit_user_name: Awesome NZ:P Updater Bot
|
||||
commit_user_email: nope@example.org
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue