moth

Monarch Of The Hill game server
git clone https://git.woozle.org/neale/moth.git

moth / build / package
Neale Pickett  ·  2023-12-06

winbuild.sh

 1#! /bin/sh
 2
 3set -e
 4
 5cd $(dirname $0)
 6base=../..
 7
 8VERSION=$(cat $base/CHANGELOG.md | awk -F '[][]' '/^## \[/ {print $2; exit}')
 9
10(
11    zipfile=winmoth.$VERSION.zip
12    echo "=== Building $zipfile"
13    mkdir -p winmoth winmoth/state winmoth/puzzles winmoth/mothballs
14    echo devel > winmoth/state/teamids.txt
15    cp moth-devel.bat winmoth
16    cp -a $base/theme winmoth
17    (
18        cd winmoth
19        GOOS=windows GOARCH=amd64 go build ../$base/cmd/mothd/...
20    )
21    zip -r $zipfile winmoth
22
23    rm -rf winmoth
24)