Skip to content

Commit

Permalink
Add a zip creator for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kovzol committed Oct 28, 2024
1 parent a49047f commit 55f34fa
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tools/create-windows-zip
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 55f34fa

Please sign in to comment.