1
0

Taskfile.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. version: '3'
  2. vars:
  3. APP_NAME: "mpckit" # file names: bin/mpckit, mpckit.exe, mpckit.app
  4. PRODUCT_NAME: "MPCkit" # the name people see, e.g. in the Linux menu
  5. # Shown in the About dialog of production builds: the version, and the
  6. # commit it was built from ("-dirty" if there were uncommitted changes).
  7. # Keep APP_VERSION in step with `version` in build/config.yml.
  8. APP_VERSION: "0.5.1"
  9. COMMIT:
  10. sh: git describe --always --dirty --exclude "*" 2>/dev/null || echo unknown
  11. BIN_DIR: "bin"
  12. PACKAGE_MANAGER: '{{.PACKAGE_MANAGER | default "npm"}}'
  13. VITE_PORT: '{{.WAILS_VITE_PORT | default 9245}}'
  14. # Target OS for build/package/run. Defaults to the host OS, and is overridden
  15. # by `wails3 build GOOS=...` (or the GOOS env var) for cross-compilation. The
  16. # tasks below dispatch to the matching platform Taskfile via this variable.
  17. GOOS: '{{.GOOS | default OS}}'
  18. includes:
  19. common: ./build/Taskfile.yml
  20. windows: ./build/windows/Taskfile.yml
  21. darwin: ./build/darwin/Taskfile.yml
  22. linux: ./build/linux/Taskfile.yml
  23. tasks:
  24. build:
  25. summary: Builds the application
  26. cmds:
  27. - task: "{{.GOOS}}:build"
  28. package:
  29. summary: Packages a production build of the application
  30. cmds:
  31. - task: "{{.GOOS}}:package"
  32. run:
  33. summary: Runs the application
  34. cmds:
  35. - task: "{{.GOOS}}:run"
  36. dev:
  37. summary: Runs the application in development mode
  38. cmds:
  39. - wails3 dev -config ./build/config.yml -port {{.VITE_PORT}}
  40. build:server:
  41. summary: Builds the application in server mode (no GUI, HTTP server only)
  42. cmds:
  43. - task: common:build:server
  44. run:server:
  45. summary: Runs the application in server mode
  46. cmds:
  47. - task: common:run:server