From 00ad620b8f62d4df93c541b8e7d8537e967fb523 Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Wed, 1 May 2019 06:05:48 +0200 Subject: [PATCH] Add a script to easily grab the needed libraries when building with MSYS2 --- msys-dist.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 msys-dist.sh 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