diff --git a/msys-dist.sh b/msys-dist.sh new file mode 100755 index 00000000..f2e59418 --- /dev/null +++ b/msys-dist.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +if [[ ! -x melonDS.exe ]]; then + echo "Run this script from the directory you built melonDS." + exit 1 +fi + +mkdir -p dist + +for lib in $(ldd melonDS.exe | grep mingw | sed "s/.*=> //" | sed "s/(.*)//"); do + cp "${lib}" dist +done + +cp melonDS.exe romlist.bin dist