1
0
mirror of https://github.com/axllent/mailpit.git synced 2024-12-28 23:06:43 +02:00

Merge branch 'release/0.0.1-beta'

This commit is contained in:
Ralph Slooten 2022-07-29 23:55:28 +12:00
commit a3b34ec32e
2 changed files with 4 additions and 3 deletions

View File

@ -38,5 +38,6 @@ jobs:
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: "mailpit"
asset_name: mailpit-${{ matrix.goos }}-${{ matrix.goarch }}
extra_files: LICENSE README.md
ldflags: -w -X "github.com/axllent/mailpit/cmd.Version=${{ steps.tag.outputs.tag }}"

View File

@ -77,7 +77,7 @@ func GithubLatest(repo, name string) (string, string, string, error) {
return "", "", "", err
}
archiveName := fmt.Sprintf("%s_%s_%s%s", name, linkOS, linkArch, linkExt)
archiveName := fmt.Sprintf("%s-%s-%s%s", name, linkOS, linkArch, linkExt)
// loop through releases
for _, r := range releases {
@ -148,13 +148,13 @@ func GithubUpdate(repo, appName, currentVersion string) (string, error) {
return "", err
}
newExec := filepath.Join(tmpDir, "golp")
newExec := filepath.Join(tmpDir, "mailpit")
if runtime.GOOS == "windows" {
if _, err := Unzip(outFile, tmpDir); err != nil {
return "", err
}
newExec = filepath.Join(tmpDir, "golp.exe")
newExec = filepath.Join(tmpDir, "mailpit.exe")
} else {
if err := TarGZExtract(outFile, tmpDir); err != nil {
return "", err