Browse Source

The (actual) Taskfile definition

Sacha Ligthert 2 năm trước cách đây
mục cha
commit
b08e0ea3e8
1 tập tin đã thay đổi với 13 bổ sung0 xóa
  1. 13 0
      Taskfile.dist.yaml

+ 13 - 0
Taskfile.dist.yaml

@@ -0,0 +1,13 @@
+version: '3'
+
+tasks:
+  default:
+    cmds:
+      - go run .
+  build:
+    cmds:
+      - mkdir -p builds
+      - rm builds/* || true
+      - go tool dist list | grep -v android | grep -v ios | grep -v wasip1 | awk -F '/' '{printf "echo Compiling %s/%s; env CGO_ENABLED=1 GOOS=%s GOARCH=%s go build -o builds/rowboz.%s-%s\n",$1,$2,$1,$2,$1,$2 }' | sh
+      - for i in `ls builds/*windows*`; do mv -v $i $i.exe; done
+