Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

Commit

Permalink
Updated the naming convention of the package process
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterclaerhout committed Oct 18, 2019
1 parent 89c65b9 commit 879f1ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/packager/dist.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions internal/packager/packager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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"
}
Expand Down

0 comments on commit 879f1ff

Please sign in to comment.