Add soundtrack export script
This commit is contained in:
parent
655dc82ef8
commit
8e70093fe6
2 changed files with 18 additions and 0 deletions
BIN
assets/music/main-theme.wav
Normal file
BIN
assets/music/main-theme.wav
Normal file
Binary file not shown.
18
scripts/build-soundtrack
Executable file
18
scripts/build-soundtrack
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
OLDWD=$PWD
|
||||
SCRIPTD=$(dirname "$0")
|
||||
ROOTD="$SCRIPTD/.."
|
||||
ASSETS_DIR="$ROOTD/assets"
|
||||
MUSIC_SOURCE_DIR="$ASSETS_DIR/source/music"
|
||||
MUSIC_OUTPUT_DIR="$MUSIC_SOURCE_DIR/target"
|
||||
MUSIC_ASSETS_DIR="$ASSETS_DIR/music"
|
||||
|
||||
cd $MUSIC_SOURCE_DIR
|
||||
|
||||
clj -M prod.clj soundtrack
|
||||
|
||||
cd $OLDWD
|
||||
mv "$MUSIC_OUTPUT_DIR/"*.wav "$MUSIC_ASSETS_DIR/"
|
Loading…
Add table
Reference in a new issue