From 9d3ec71e43bb00e9750c53cfd8f5ac095d392f5a Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 8 Mar 2016 05:04:51 +0100 Subject: travis: trying to create windows zip --- build-aux/build-travis.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/build-aux/build-travis.sh b/build-aux/build-travis.sh index eb6262a..0d656e3 100755 --- a/build-aux/build-travis.sh +++ b/build-aux/build-travis.sh @@ -29,3 +29,17 @@ pushd build > /dev/null popd > /dev/null make -C build "${MAKE_TARGET}" + +if [[ "x${TARGET}" = xw* ]]; then + VERSION="$(grep PACKAGE_VERSION config.h | cut -d\" -f2)" + DEST_DIR="blogc-${VERSION}-${TARGET}" + + rm -rf "${DEST_DIR}" + mkdir -p "${DEST_DIR}" + + cp build/.libs/blogc.exe "${DEST_DIR}/" + cp LICENSE "${DEST_DIR}/" + cp README.md "${DEST_DIR}/" + + zip "${DEST_DIR}.zip" "${DEST_DIR}"/* +fi -- cgit v1.2.3-18-g5258