Files

111 lines
2.2 KiB
JSON
Raw Permalink Normal View History

2021-09-25 14:52:11 +10:00
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"options": {
2022-07-08 20:33:49 +10:00
"cwd": "${workspaceFolder}",
"env": {
"CGO_ENABLED": "1"
}
},
"osx": {
"options": {
"env": {
"CGO_CFLAGS": "-mmacosx-version-min=10.13",
"CGO_LDFLAGS": "-framework UniformTypeIdentifiers -mmacosx-version-min=10.13"
}
}
},
"windows": {
"options": {
"env": {
"CGO_ENABLED": "0"
}
}
2021-09-25 14:52:11 +10:00
},
"command": "go",
"args": [
"build",
"-tags",
2022-03-16 21:13:56 +11:00
"production,desktop",
"-gcflags",
"all=-N -l",
"-o",
"{{.PathToDesktopBinary}}"
]
},
{
"label": "build debug",
"type": "shell",
"options": {
2022-07-08 20:33:49 +10:00
"cwd": "${workspaceFolder}",
"env": {
"CGO_ENABLED": "1"
}
},
"osx": {
"options": {
"env": {
"CGO_CFLAGS": "-mmacosx-version-min=10.13",
"CGO_LDFLAGS": "-framework UniformTypeIdentifiers -mmacosx-version-min=10.13"
}
}
},
"windows": {
"options": {
"env": {
"CGO_ENABLED": "0"
}
}
2022-03-16 21:13:56 +11:00
},
"command": "go",
"args": [
"build",
"-tags",
"production,desktop,debug",
2021-09-25 14:52:11 +10:00
"-gcflags",
"all=-N -l",
"-o",
"{{.PathToDesktopBinary}}"
]
2022-07-08 20:33:49 +10:00
},
{
"label": "build dev",
"type": "shell",
"options": {
"cwd": "${workspaceFolder}",
"env": {
"CGO_ENABLED": "1"
}
},
"osx": {
"options": {
"env": {
"CGO_CFLAGS": "-mmacosx-version-min=10.13",
"CGO_LDFLAGS": "-framework UniformTypeIdentifiers -mmacosx-version-min=10.13"
}
}
},
"windows": {
"options": {
"env": {
"CGO_ENABLED": "0"
}
}
},
"command": "go",
"args": [
"build",
"-tags",
"dev",
"-gcflags",
"all=-N -l",
"-o",
"{{.PathToDesktopBinary}}"
]
2021-09-25 14:52:11 +10:00
}
]
}