14 lines
287 B
Bash
14 lines
287 B
Bash
|
#!/bin/bash
|
||
|
#$1 = game data dir
|
||
|
#extracts ogg files from .resource files
|
||
|
dir="~/tmp/extract/"
|
||
|
#get dependency
|
||
|
mkdir -fp "$dir"
|
||
|
cd "$dir"
|
||
|
git clone https://github.com/HearthSim/python-fsb5.git python-fsb5
|
||
|
cd python-fsb5/
|
||
|
for file in "$1/*resource"; do
|
||
|
./extract "$file"
|
||
|
done
|
||
|
nemo "$dir"
|