-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Neale Pickett
committed
Dec 6, 2023
1 parent
4710b69
commit fa049db
Showing
7 changed files
with
68 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
__debug_bin | ||
*.tar.gz | ||
transpile | ||
mothd | ||
mothd | ||
winmoth.*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.\mothd.exe -puzzles puzzles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#! /bin/sh | ||
|
||
set -e | ||
|
||
cd $(dirname $0) | ||
base=../.. | ||
|
||
VERSION=$(cat $base/CHANGELOG.md | awk -F '[][]' '/^## \[/ {print $2; exit}') | ||
|
||
( | ||
zipfile=winmoth.$VERSION.zip | ||
echo "=== Building $zipfile" | ||
mkdir -p winmoth winmoth/state winmoth/puzzles winmoth/mothballs | ||
echo devel > winmoth/state/teamids.txt | ||
cp moth-devel.bat winmoth | ||
cp -a $base/theme winmoth | ||
( | ||
cd winmoth | ||
GOOS=windows GOARCH=amd64 go build ../$base/cmd/mothd/... | ||
) | ||
zip -r $zipfile winmoth | ||
|
||
rm -rf winmoth | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/dirtbags/moth/v4 | ||
|
||
go 1.13 | ||
go 1.21 | ||
|
||
require ( | ||
github.com/kr/text v0.2.0 // indirect | ||
|