github.com/secoba/wails/v2@v2.6.4/pkg/templates/ides/vscode/tasks.tmpl.json (about) 1 { 2 "version": "2.0.0", 3 "tasks": [ 4 { 5 "label": "build", 6 "type": "shell", 7 "options": { 8 "cwd": "${workspaceFolder}", 9 "env": { 10 "CGO_ENABLED": "1" 11 } 12 }, 13 "osx": { 14 "options": { 15 "env": { 16 "CGO_CFLAGS": "-mmacosx-version-min=10.13", 17 "CGO_LDFLAGS": "-framework UniformTypeIdentifiers -mmacosx-version-min=10.13" 18 } 19 } 20 }, 21 "windows": { 22 "options": { 23 "env": { 24 "CGO_ENABLED": "0" 25 } 26 } 27 }, 28 "command": "go", 29 "args": [ 30 "build", 31 "-tags", 32 "production,desktop", 33 "-gcflags", 34 "all=-N -l", 35 "-o", 36 "{{.PathToDesktopBinary}}" 37 ] 38 }, 39 { 40 "label": "build debug", 41 "type": "shell", 42 "options": { 43 "cwd": "${workspaceFolder}", 44 "env": { 45 "CGO_ENABLED": "1" 46 } 47 }, 48 "osx": { 49 "options": { 50 "env": { 51 "CGO_CFLAGS": "-mmacosx-version-min=10.13", 52 "CGO_LDFLAGS": "-framework UniformTypeIdentifiers -mmacosx-version-min=10.13" 53 } 54 } 55 }, 56 "windows": { 57 "options": { 58 "env": { 59 "CGO_ENABLED": "0" 60 } 61 } 62 }, 63 "command": "go", 64 "args": [ 65 "build", 66 "-tags", 67 "production,desktop,debug", 68 "-gcflags", 69 "all=-N -l", 70 "-o", 71 "{{.PathToDesktopBinary}}" 72 ] 73 }, 74 { 75 "label": "build dev", 76 "type": "shell", 77 "options": { 78 "cwd": "${workspaceFolder}", 79 "env": { 80 "CGO_ENABLED": "1" 81 } 82 }, 83 "osx": { 84 "options": { 85 "env": { 86 "CGO_CFLAGS": "-mmacosx-version-min=10.13", 87 "CGO_LDFLAGS": "-framework UniformTypeIdentifiers -mmacosx-version-min=10.13" 88 } 89 } 90 }, 91 "windows": { 92 "options": { 93 "env": { 94 "CGO_ENABLED": "0" 95 } 96 } 97 }, 98 "command": "go", 99 "args": [ 100 "build", 101 "-tags", 102 "dev", 103 "-gcflags", 104 "all=-N -l", 105 "-o", 106 "{{.PathToDesktopBinary}}" 107 ] 108 } 109 ] 110 } 111