From 9f84185a61ed24e706e4c1e904b9a6a2c31fbf9e Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 24 Mar 2021 07:44:58 +0200 Subject: [PATCH 35/35] meson-winbuild.sh: Create 7z package of the build results See osdn #41849 Signed-off-by: Marko Lindqvist --- windows/installer_cross/meson-winbuild.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/windows/installer_cross/meson-winbuild.sh b/windows/installer_cross/meson-winbuild.sh index 53574d8ae3..47b09fb05b 100755 --- a/windows/installer_cross/meson-winbuild.sh +++ b/windows/installer_cross/meson-winbuild.sh @@ -71,7 +71,8 @@ then exit 1 fi -MESON_INSTALL_DIR=$(pwd)/meson-install-${SETUP} +PACKAGENAME=freeciv-${VERREV}-${SETUP} +MESON_INSTALL_DIR=$(pwd)/meson-install/${PACKAGENAME} if ! rm -Rf $MESON_INSTALL_DIR ; then echo "Failed to clear out old install directory!" >&2 @@ -107,3 +108,17 @@ fi ) then exit 1 fi + +if ! mkdir -p Output-meson ; then + echo "Creating Output-meson directory failed" >&2 + exit 1 +fi + +( cd meson-install + + if ! 7z a -r ../Output-meson/${PACKAGENAME}.7z ${PACKAGENAME} + then + echo "7z failed" >&2 + exit 1 + fi +) -- 2.30.2