You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.2 KiB

  1. {
  2. "version": "2.0.0",
  3. "tasks": [
  4. {
  5. "taskName": "Build",
  6. "type": "shell",
  7. "command": "go",
  8. "group": "build",
  9. "presentation": {
  10. "echo": true,
  11. "reveal": "always",
  12. "focus": false,
  13. "panel": "shared"
  14. },
  15. "args": ["build"],
  16. "linux": {
  17. "args": [ "-o", "gitea", "${workspaceRoot}/main.go" ]
  18. },
  19. "osx": {
  20. "args": [ "-o", "gitea", "${workspaceRoot}/main.go" ]
  21. },
  22. "windows": {
  23. "args": [ "-o", "gitea.exe", "\"${workspaceRoot}\\main.go\""]
  24. },
  25. "problemMatcher": ["$go"]
  26. },
  27. {
  28. "taskName": "Build (with SQLite3)",
  29. "type": "shell",
  30. "command": "go",
  31. "group": "build",
  32. "presentation": {
  33. "echo": true,
  34. "reveal": "always",
  35. "focus": false,
  36. "panel": "shared"
  37. },
  38. "args": ["build", "-tags=\"sqlite\""],
  39. "linux": {
  40. "args": ["-o", "gitea", "${workspaceRoot}/main.go"]
  41. },
  42. "osx": {
  43. "args": ["-o", "gitea", "${workspaceRoot}/main.go"]
  44. },
  45. "windows": {
  46. "args": ["-o", "gitea.exe", "\"${workspaceRoot}\\main.go\""]
  47. },
  48. "problemMatcher": ["$go"]
  49. }
  50. ]
  51. }