From 55f34fa83ce75d14e585d242ba3ed4ac0d03f751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Kov=C3=A1cs?= Date: Mon, 28 Oct 2024 12:16:54 +0100 Subject: [PATCH] Add a zip creator for Windows --- tools/create-windows-zip | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 tools/create-windows-zip diff --git a/tools/create-windows-zip b/tools/create-windows-zip new file mode 100755 index 00000000..dee1dbdf --- /dev/null +++ b/tools/create-windows-zip @@ -0,0 +1,28 @@ +#!/bin/bash + +set -e + +# This script creates a zip bundle for the Windows version. +# It is assumed that the script deploy-win.bat has already been run. + +which zip >/dev/null || { + echo "Please install zip first" + exit 1 + } + +test -x ../installer/packages/net.sourceforge.xaos/data || { + echo "Run deploy-win.bat first." + exit 2 + +test -r ../src/include/config.h || { + echo "Please run this script from the \"tools/\" folder." + exit 3 + } + +XAOS_VERSION=`cat ../src/include/config.h | grep XaoS_VERSION | awk '{print $3}' | tr -d \"` + +mkdir xaos-$XAOS_VERSION + +cp -a ../installer/packages/net.sourceforge.xaos/data/* xaos-$XAOS_VERSION + +zip -9r xaos-$XAOS_VERSION.zip xaos-$XAOS_VERSION