1
0

Taskfile.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. version: '3'
  2. vars:
  3. APP_NAME: "mpckit"
  4. # Shown in the About dialog of production builds: the git tag (v0.5.0) on
  5. # a tagged commit, otherwise the tag plus commits since and the commit id.
  6. VERSION:
  7. sh: git describe --tags --always --dirty 2>/dev/null || echo dev
  8. BIN_DIR: "bin"
  9. PACKAGE_MANAGER: '{{.PACKAGE_MANAGER | default "npm"}}'
  10. VITE_PORT: '{{.WAILS_VITE_PORT | default 9245}}'
  11. # Target OS for build/package/run. Defaults to the host OS, and is overridden
  12. # by `wails3 build GOOS=...` (or the GOOS env var) for cross-compilation. The
  13. # tasks below dispatch to the matching platform Taskfile via this variable.
  14. GOOS: '{{.GOOS | default OS}}'
  15. includes:
  16. common: ./build/Taskfile.yml
  17. windows: ./build/windows/Taskfile.yml
  18. darwin: ./build/darwin/Taskfile.yml
  19. linux: ./build/linux/Taskfile.yml
  20. tasks:
  21. build:
  22. summary: Builds the application
  23. cmds:
  24. - task: "{{.GOOS}}:build"
  25. package:
  26. summary: Packages a production build of the application
  27. cmds:
  28. - task: "{{.GOOS}}:package"
  29. run:
  30. summary: Runs the application
  31. cmds:
  32. - task: "{{.GOOS}}:run"
  33. dev:
  34. summary: Runs the application in development mode
  35. cmds:
  36. - wails3 dev -config ./build/config.yml -port {{.VITE_PORT}}
  37. build:server:
  38. summary: Builds the application in server mode (no GUI, HTTP server only)
  39. cmds:
  40. - task: common:build:server
  41. run:server:
  42. summary: Runs the application in server mode
  43. cmds:
  44. - task: common:run:server