From b7dbda0db65e24c8ad2549639cd22388db837e1f Mon Sep 17 00:00:00 2001 From: Ralph Slooten Date: Sat, 30 Jul 2022 00:01:17 +1200 Subject: [PATCH 1/2] Don't include checksums --- .github/workflows/release-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 8fb4c6dab..3c26318dd 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -40,4 +40,5 @@ jobs: binary_name: "mailpit" asset_name: mailpit-${{ matrix.goos }}-${{ matrix.goarch }} extra_files: LICENSE README.md + md5sum: false ldflags: -w -X "github.com/axllent/mailpit/cmd.Version=${{ steps.tag.outputs.tag }}" From 0799a6d67cfd65d0228014478632f85780ed5517 Mon Sep 17 00:00:00 2001 From: Ralph Slooten Date: Sat, 30 Jul 2022 00:05:27 +1200 Subject: [PATCH 2/2] Ensure self-updater binary test works --- updater/updater.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updater/updater.go b/updater/updater.go index 8daa789bf..31b52aae9 100644 --- a/updater/updater.go +++ b/updater/updater.go @@ -170,7 +170,7 @@ func GithubUpdate(repo, appName, currentVersion string) (string, error) { // ensure the new binary is executable (mainly for inconsistent darwin builds) /* #nosec G204 */ - cmd := exec.Command(newExec) + cmd := exec.Command(newExec, "-h") if err := cmd.Run(); err != nil { return "", err }