From 48be756e48ca8c0de4b7dec27055a68d13add42a Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sun, 11 Aug 2024 18:53:00 +0100 Subject: [PATCH] build: e2ee as separate build Forgot that E2EE adds the libolm dependency, which is fine for the package manager versions (where it is now marked a a dep) and docker, but not the best for binary distributions. As a result, Linux versions with and without E2EE are now distributed, the former now including "MatrixE2EE" in its filename. --- .goreleaser.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 4409527..10004b9 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -18,6 +18,7 @@ builds: ldflags: - -X main.version={{.Env.JFA_GO_VERSION}} -X main.commit={{.ShortCommit}} -X main.updater={{.Env.JFA_GO_UPDATER}} {{.Env.JFA_GO_STRIP}} -X main.cssVersion={{.Env.JFA_GO_CSS_VERSION}} -X main.buildTimeUnix={{.Env.JFA_GO_BUILD_TIME}} -X main.builtBy="{{.Env.JFA_GO_BUILT_BY}}" goos: + - linux - darwin - windows goarch: @@ -95,7 +96,6 @@ archives: - id: notray builds: - notray - - notray-e2ee format: zip name_template: >- {{ .ProjectName }}_{{ .Version }}_ @@ -103,6 +103,16 @@ archives: {{- else }}{{- title .Os }}{{ end }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else }}{{ .Arch }}{{ end }} + - id: notray-e2ee + builds: + - notray-e2ee + format: zip + name_template: >- + {{ .ProjectName }}_{{ .Version }}_MatrixE2EE_ + {{- if eq .Os "darwin" }}macOS + {{- else }}{{- title .Os }}{{ end }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else }}{{ .Arch }}{{ end }} checksum: name_template: 'checksums.txt' snapshot: @@ -132,6 +142,16 @@ nfpms: - apk - deb - rpm + overrides: + deb: + dependencies: + - libolm-dev + rpm: + dependencies: + - libolm + apk: + dependencies: + - olm - id: tray file_name_template: '{{ .ProjectName }}{{ if .IsSnapshot }}-git{{ end }}_TrayIcon_{{ .Arch }}_{{ if .IsSnapshot }}{{ .ShortCommit }}{{ else }}v{{ .Version }}{{ end }}' package_name: jfa-go-tray @@ -158,9 +178,12 @@ nfpms: - jfa-go dependencies: - libayatana-appindicator + - libolm-dev rpm: dependencies: - libappindicator-gtk3 + - libolm apk: dependencies: - libayatana-appindicator + - olm