Add portable .zip build for windows

This commit is contained in:
Jean-Rémy Buchs 2017-09-09 23:29:11 +02:00 committed by Paul Chote
parent 45658528dc
commit bc310ff216
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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}"