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.
 
 
 
 
 

55 lines
1.6 KiB

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build linux",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"panel": "new"
},
"options": {
"cwd": "${workspaceRoot}",
"env": {
"APP": "pakitara",
"GOOS": "linux",
"GOARCH": "amd64",
"GOBIN": "${env:GOPATH}/bin"
},
"args": [
"ldflags '-s -w'"
]
},
"command": "go build -o $GOBIN/$APP-$GOOS-$GOARCH -ldflags \"-s -w\" $APP.go",
"problemMatcher": []
},
{
"label": "build windows",
"type": "shell",
"group": "build",
"presentation": {
"echo": true,
"panel": "new"
},
"options": {
"cwd": "${workspaceRoot}",
"env": {
"APP": "pakitara",
"GOOS": "windows",
"GOARCH": "amd64",
"GOBIN": "${env:GOPATH}/bin"
},
"args": [
"ldflags '-s -w'"
]
},
"command": "go build -o $GOBIN\\$APP-$GOOS-$GOARCH.exe -ldflags \"-s -w\" $APP.go"
}
]
}