shithub: moonfish

Download patch

ref: 1c280503ec443f76b4ce15308e6b2a4800d7a08c
parent: 0cb2e6a1ed56bfebbc7904123ba195d1d64de748
author: zamfofex <zamfofex@twdb.moe>
date: Mon Dec 11 14:57:31 EST 2023

add prebuilt binary archive

--- a/.build.yml
+++ b/.build.yml
@@ -2,11 +2,14 @@
 # copyright 2023 zamfofex
 
 image: alpine/latest
+secrets:
+  - 72a028fc-f8df-43d3-a315-305d80720e45
 packages:
   - build-base
   - bearssl-dev
   - xz
   - mingw-w64-gcc
+  - curl
 sources:
   - https://git.sr.ht/~zamfofex/moonfish
   - https://github.com/DaveGamble/cJSON#v1.7.16
@@ -25,6 +28,19 @@
   - windows-build: |
       cd moonfish
       make CC=x86_64-w64-mingw32-gcc LDFLAGS=-static moonfish.exe
+  - deploy: |
+      set +x
+      test "$GIT_REF" = refs/heads/main || exit
+      test -f neocities-token.txt || exit
+      cd moonfish
+      curl -fsSL --oauth2-bearer "$(cat ~/neocities-token.txt)" \
+        -F moonfish=@moonfish \
+        -F play=@play \
+        -F lichess=@lichess \
+        -F analyse=@analyse \
+        -F moonfish.sh=@moonfish.sh \
+        -F moonfish.exe=@moonfish.exe \
+        https://neocities.org/api/upload
 artifacts:
   - moonfish/moonfish
   - moonfish/play
--- a/README.md
+++ b/README.md
@@ -37,6 +37,11 @@
 - no support for `go infinite` or `go mate`
 - no move name or FEN validation (may lead to potential exploits)
 
+download
+---
+
+Prebuilt executables for Linux of moonfish (and its tools) may be found at <https://moonfish.neocities.org>
+
 building
 ---
 
--