From bc310ff216f5d30d8c188f12389a12968055bb73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-R=C3=A9my=20Buchs?= Date: Sat, 9 Sep 2017 23:29:11 +0200 Subject: [PATCH] Add portable .zip build for windows --- .travis.yml | 1 + packaging/windows/buildpackage.sh | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 67d9938..1b9efa0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,6 +29,7 @@ deploy: file: - build/${PACKAGING_INSTALLER_NAME}-${TRAVIS_TAG}.exe - build/${PACKAGING_INSTALLER_NAME}-${TRAVIS_TAG}-macOS.zip + - build/${PACKAGING_INSTALLER_NAME}-${TRAVIS_TAG}-winportable.zip skip_cleanup: true on: tags: true diff --git a/packaging/windows/buildpackage.sh b/packaging/windows/buildpackage.sh index 75020d0..52b8eae 100755 --- a/packaging/windows/buildpackage.sh +++ b/packaging/windows/buildpackage.sh @@ -85,5 +85,12 @@ if [ $? -eq 0 ]; then fi popd > /dev/null +echo "Packaging zip archive" +pushd "${BUILTDIR}" > /dev/null +find "${SRC_DIR}/thirdparty/download/windows/" -name '*.dll' -exec cp '{}' '.' ';' +zip "${PACKAGING_INSTALLER_NAME}-${TAG}-winportable" -r -9 * --quiet --symlinks +mv "${PACKAGING_INSTALLER_NAME}-${TAG}-winportable.zip" "${OUTPUTDIR}" +popd > /dev/null + # Cleanup rm -rf "${BUILTDIR}"