build: on windows, ignore linux packaging

pull/8734/head
Daniel Lee 8 years ago
parent 8973b48f96
commit 91ad260517
  1. 1
      appveyor.yml
  2. 10
      build.go

@ -29,6 +29,7 @@ install:
build_script:
- go run build.go build
- go test -v ./pkg/...
- grunt release
- go run build.go sha-dist
- cp dist/* .

@ -95,7 +95,9 @@ func main() {
case "package":
grunt(gruntBuildArg("release")...)
createLinuxPackages()
if runtime.GOOS != "windows" {
createLinuxPackages()
}
case "pkg-rpm":
grunt(gruntBuildArg("release")...)
@ -345,7 +347,11 @@ func ChangeWorkingDir(dir string) {
}
func grunt(params ...string) {
runPrint("./node_modules/.bin/grunt", params...)
if runtime.GOOS == "windows" {
runPrint(`.\node_modules\.bin\grunt`, params...)
} else {
runPrint("./node_modules/.bin/grunt", params...)
}
}
func gruntBuildArg(task string) []string {

Loading…
Cancel
Save