mage: fixup packaging and docker rules

This commit is contained in:
Cadey Ratio 2017-09-30 14:20:50 -07:00
parent 1ef8f06268
commit 92871b43ed
No known key found for this signature in database
GPG Key ID: D607EE27C2E7F89A
1 changed files with 4 additions and 4 deletions

View File

@ -116,7 +116,7 @@ func Docker() {
qod.ANE(err) qod.ANE(err)
shouldWork(ctx, nil, wd, "box", "box.rb") shouldWork(ctx, nil, wd, "box", "box.rb")
shouldWork(ctx, nil, wd, "docker", "tag", "xena/route:"+ver) shouldWork(ctx, nil, wd, "docker", "tag", "xena/route:latest", "xena/route:"+ver)
} }
// Linux builds binaries for linux // Linux builds binaries for linux
@ -176,11 +176,11 @@ func Package() {
if osname == "windows" { if osname == "windows" {
file = file + ".exe" file = file + ".exe"
} }
shouldWork(ctx, nil, filepath.Join(wd, "bin", osname), "cp", "-vrf", file, dir) shouldWork(ctx, nil, filepath.Join(wd, "bin", osname), "cp", "-rf", file, dir)
} }
shouldWork(ctx, nil, wd, "cp", "-vrf", "doc", dir) shouldWork(ctx, nil, wd, "cp", "-rf", "doc", dir)
shouldWork(ctx, nil, wd, "cp", "-vrf", "README.md", dir) shouldWork(ctx, nil, wd, "cp", "-rf", "README.md", dir)
shouldWork(ctx, nil, dir, "tar", "czf", filepath.Join(wd, "bin", fmt.Sprintf("route-%s-%s.tar.gz", ver, osname)), ".") shouldWork(ctx, nil, dir, "tar", "czf", filepath.Join(wd, "bin", fmt.Sprintf("route-%s-%s.tar.gz", ver, osname)), ".")
} }