From 879f1ffa3fca0ad60f6455c6babb2d343a67e5c6 Mon Sep 17 00:00:00 2001 From: Pieter Claerhout Date: Fri, 18 Oct 2019 10:16:31 +0200 Subject: [PATCH] Updated the naming convention of the package process --- internal/packager/dist.go | 2 +- internal/packager/packager.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/packager/dist.go b/internal/packager/dist.go index ec39dde..452f4fe 100644 --- a/internal/packager/dist.go +++ b/internal/packager/dist.go @@ -28,7 +28,7 @@ func (d distribution) String() string { } func (d distribution) DirName() string { - return d.GOOS + "-" + d.GOARCH + return d.GOOS + "_" + d.GOARCH } func (packager Packager) allDistributionsToBuild() ([]distribution, error) { diff --git a/internal/packager/packager.go b/internal/packager/packager.go index 5bcfbfc..b9906f2 100644 --- a/internal/packager/packager.go +++ b/internal/packager/packager.go @@ -30,7 +30,7 @@ func (packager Packager) Execute(project common.Project, cfg config.Config) erro packager.Concurrency = runtime.NumCPU() } - packager.LogInfo("Concurrency", packager.Concurrency) + packager.LogInfo("Using a concurrency of:", packager.Concurrency) distributions, err := packager.allDistributionsToBuild() if err != nil { @@ -109,9 +109,9 @@ func (packager Packager) buildOutputPathForDistribution(cfg config.Config, d dis } func (packager Packager) archiveOutputPathForDistribution(cfg config.Config, d distribution) string { - path := filepath.Join(cfg.Build.OutputPath, cfg.Project.Name+"_"+d.DirName()+"_v"+cfg.Project.Version) + path := filepath.Join(cfg.Build.OutputPath, cfg.Project.Name+"_"+d.DirName()) if d.GOOS == "windows" { - path += ".zip" + path += ".exe.zip" } else { path += ".tgz" }