tasks.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. "label": "build_flowy_sdk",
  14. "type": "shell",
  15. "command": "sh ./scripts/build_sdk.sh",
  16. "windows": {
  17. "options": {
  18. "env": {
  19. "FLOWY_DEV_ENV": "Windows",
  20. },
  21. "shell": {
  22. "executable": "cmd.exe",
  23. "args": [
  24. "/d",
  25. "/c",
  26. ".\\scripts\\build_sdk.cmd"
  27. ]
  28. }
  29. }
  30. },
  31. "linux": {
  32. "options": {
  33. "env": {
  34. "FLOWY_DEV_ENV": "Linux-x86",
  35. }
  36. },
  37. },
  38. "osx": {
  39. "options": {
  40. "env": {
  41. "FLOWY_DEV_ENV": "macOS",
  42. }
  43. },
  44. },
  45. "group": "build",
  46. "options": {
  47. "cwd": "${workspaceFolder}/../"
  48. },
  49. // "problemMatcher": [
  50. // "$rustc"
  51. // ],
  52. },
  53. {
  54. "label": "Generate Language Files",
  55. "type": "shell",
  56. "command": "sh ./scripts/generate_language_files.sh",
  57. "windows": {
  58. "options": {
  59. "shell": {
  60. "executable": "cmd.exe",
  61. "args": [
  62. "/d",
  63. "/c",
  64. ".\\scripts\\generate_language_files.cmd"
  65. ]
  66. }
  67. }
  68. },
  69. "group": "build",
  70. "options": {
  71. "cwd": "${workspaceFolder}/../"
  72. },
  73. }
  74. ]
  75. }