diff options
author | sfan5 <sfan5@live.de> | 2022-09-27 15:32:21 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-11-01 16:30:59 +0100 |
commit | 7f5bcd72442b16b22d1f27e2f4a09e9e049db05d (patch) | |
tree | b0d46de9428c71ef5a22d942c58d879f2ad35b42 /ci | |
parent | f67a56b830e83b68b67cc5fc8927f541c9b1fcab (diff) | |
download | mpv-7f5bcd72442b16b22d1f27e2f4a09e9e049db05d.tar.bz2 mpv-7f5bcd72442b16b22d1f27e2f4a09e9e049db05d.tar.xz |
ci: upload resulting binary of mingw64 build
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/build-mingw64.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ci/build-mingw64.sh b/ci/build-mingw64.sh index 5daf6979f4..46e037b62a 100755 --- a/ci/build-mingw64.sh +++ b/ci/build-mingw64.sh @@ -211,3 +211,18 @@ elif [ "$1" = "waf" ]; then ./waf build --verbose fi + +if [ "$2" = pack ]; then + mkdir -p artifact + echo "Copying:" + cp -pv build/mpv.{com,exe} "$prefix_dir/bin/"*.dll artifact/ + # ship everything and the kitchen sink + shopt -s nullglob + for file in /usr/lib/gcc/$TARGET/*-posix/*.dll /usr/$TARGET/lib/*.dll; do + cp -pv "$file" artifact/ + done + echo "Archiving:" + pushd artifact + zip -9r "../mpv-git-$(date +%F)-$(git rev-parse --short HEAD)-${TARGET%%-*}.zip" -- * + popd +fi |