tasks.json 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "version": "2.0.0",
  3. // https://code.visualstudio.com/docs/editor/tasks
  4. //https://gist.github.com/deadalusai/9e13e36d61ec7fb72148
  5. // ${workspaceRoot}: the root folder of the team
  6. // ${file}: the current opened file
  7. // ${fileBasename}: the current opened file's basename
  8. // ${fileDirname}: the current opened file's dirname
  9. // ${fileExtname}: the current opened file's extension
  10. // ${cwd}: the current working directory of the spawned process
  11. "tasks": [
  12. {
  13. "type": "shell",
  14. "command": "sh ./scripts/build_sdk.sh",
  15. "windows": {
  16. "options": {
  17. "env": {
  18. "FLOWY_DEV_ENV": "Windows",
  19. },
  20. "shell": {
  21. "executable": "cmd.exe",
  22. "args": [
  23. "/d", "/c", ".\\scripts\\build_sdk.cmd"
  24. ]
  25. }
  26. }
  27. },
  28. "linux": {
  29. "options": {
  30. "env": {
  31. "FLOWY_DEV_ENV": "Linux-x86",
  32. }
  33. },
  34. },
  35. "osx": {
  36. "options": {
  37. "env": {
  38. "FLOWY_DEV_ENV": "macOS",
  39. }
  40. },
  41. },
  42. "group": "build",
  43. "options": {
  44. "cwd": "${workspaceFolder}/../"
  45. },
  46. // "problemMatcher": [
  47. // "$rustc"
  48. // ],
  49. "label": "build_flowy_sdk"
  50. }
  51. ]
  52. }