2024-07-13 23:30:01 +00:00
|
|
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
|
|
|
version: 2
|
2020-08-01 23:36:27 +00:00
|
|
|
project_name: jfa-go
|
|
|
|
release:
|
|
|
|
github:
|
|
|
|
owner: hrfee
|
|
|
|
name: jfa-go
|
2020-08-02 01:11:50 +00:00
|
|
|
name_template: "v{{.Version}}"
|
2020-08-01 20:20:02 +00:00
|
|
|
before:
|
|
|
|
hooks:
|
2024-08-06 19:45:11 +00:00
|
|
|
- npm i
|
2024-08-11 15:28:21 +00:00
|
|
|
- make precompile
|
2020-08-01 20:20:02 +00:00
|
|
|
builds:
|
2021-05-16 20:01:31 +00:00
|
|
|
- id: notray
|
|
|
|
dir: ./
|
2024-08-11 15:28:21 +00:00
|
|
|
flags:
|
|
|
|
- -tags={{ .Env.JFA_GO_TAG }}
|
2021-03-07 15:23:44 +00:00
|
|
|
ldflags:
|
2024-08-11 16:39:58 +00:00
|
|
|
- -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}}"
|
2020-08-01 23:36:27 +00:00
|
|
|
goos:
|
2024-08-11 17:53:00 +00:00
|
|
|
- linux
|
2020-08-01 23:36:27 +00:00
|
|
|
- darwin
|
2023-10-19 15:25:00 +00:00
|
|
|
- windows
|
2020-08-16 13:55:39 +00:00
|
|
|
goarch:
|
|
|
|
- arm
|
|
|
|
- arm64
|
2021-05-16 21:44:04 +00:00
|
|
|
- amd64
|
2024-08-10 20:11:11 +00:00
|
|
|
- id: notray-e2ee
|
|
|
|
dir: ./
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=1
|
2024-08-10 20:43:16 +00:00
|
|
|
- CC={{ if eq .Arch "amd64" }}x86_64{{ else if eq .Arch "arm64" }}aarch64{{ else }}{{ .Arch }}{{ end }}-linux-gnu{{ if eq .Arch "arm" }}eabihf{{ end }}-gcc
|
|
|
|
- CXX={{ if eq .Arch "amd64" }}x86_64{{ else if eq .Arch "arm64" }}aarch64{{ else }}{{ .Arch }}{{ end }}-linux-gnu{{ if eq .Arch "arm" }}eabihf{{ end }}-gcc
|
2024-08-11 15:28:21 +00:00
|
|
|
- PKG_CONFIG_PATH=/usr/lib/{{ if eq .Arch "amd64" }}x86_64{{ else if eq .Arch "arm64" }}aarch64{{ else }}{{ .Arch }}{{ end }}-linux-gnu{{ if eq .Arch "arm" }}eabihf{{ end }}/pkgconfig:$PKG_CONFIG_PATH
|
2024-08-10 20:11:11 +00:00
|
|
|
- GOARM={{ if eq .Arch "arm" }}7{{ end }}
|
|
|
|
flags:
|
2024-08-11 15:28:21 +00:00
|
|
|
- -tags=e2ee,{{ .Env.JFA_GO_TAG }}
|
2024-08-10 20:11:11 +00:00
|
|
|
ldflags:
|
2024-08-11 16:39:58 +00:00
|
|
|
- -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}}"
|
2024-08-10 20:11:11 +00:00
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
goarch:
|
|
|
|
- arm
|
|
|
|
- arm64
|
|
|
|
- amd64
|
2021-05-16 20:01:31 +00:00
|
|
|
- id: windows-tray
|
|
|
|
dir: ./
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=1
|
|
|
|
- CC=x86_64-w64-mingw32-gcc
|
|
|
|
- CXX=x86_64-w64-mingw32-g++
|
|
|
|
flags:
|
2024-08-11 15:28:21 +00:00
|
|
|
- -tags=tray,{{ .Env.JFA_GO_TAG }}
|
2021-05-16 20:01:31 +00:00
|
|
|
ldflags:
|
2024-08-11 16:39:58 +00:00
|
|
|
- -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}}" -H=windowsgui
|
2021-05-16 20:01:31 +00:00
|
|
|
goos:
|
|
|
|
- windows
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- id: linux-tray
|
|
|
|
dir: ./
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=1
|
2024-07-26 11:42:38 +00:00
|
|
|
- CC=x86_64-linux-gnu-gcc
|
|
|
|
- CXX=x86_64-linux-gnu-gcc
|
2024-08-11 15:28:21 +00:00
|
|
|
- PKG_CONFIG_PATH=/usr/lib/{{ if eq .Arch "amd64" }}x86_64{{ else if eq .Arch "arm64" }}aarch64{{ else }}{{ .Arch }}{{ end }}-linux-gnu{{ if eq .Arch "arm" }}eabihf{{ end }}/pkgconfig:$PKG_CONFIG_PATH
|
2021-05-16 20:01:31 +00:00
|
|
|
flags:
|
2024-08-11 15:28:21 +00:00
|
|
|
- -tags=tray,e2ee,{{ .Env.JFA_GO_TAG }}
|
2021-05-16 20:01:31 +00:00
|
|
|
ldflags:
|
2024-08-11 16:39:58 +00:00
|
|
|
- -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}}"
|
2021-05-16 20:01:31 +00:00
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
goarch:
|
|
|
|
- amd64
|
2020-08-01 20:20:02 +00:00
|
|
|
archives:
|
2021-05-16 20:01:31 +00:00
|
|
|
- id: windows-tray
|
|
|
|
builds:
|
|
|
|
- windows-tray
|
|
|
|
format: zip
|
2023-06-23 12:00:46 +00:00
|
|
|
name_template: >-
|
|
|
|
{{ .ProjectName }}_{{ .Version }}_TrayIcon_
|
|
|
|
{{- if eq .Os "darwin" }}macOS
|
|
|
|
{{- else }}{{- title .Os }}{{ end }}_
|
|
|
|
{{- if eq .Arch "amd64" }}x86_64
|
|
|
|
{{- else }}{{ .Arch }}{{ end }}
|
2021-05-16 20:01:31 +00:00
|
|
|
- id: linux-tray
|
|
|
|
builds:
|
|
|
|
- linux-tray
|
|
|
|
format: zip
|
2023-06-23 12:00:46 +00:00
|
|
|
name_template: >-
|
|
|
|
{{ .ProjectName }}_{{ .Version }}_TrayIcon_
|
|
|
|
{{- if eq .Os "darwin" }}macOS
|
|
|
|
{{- else }}{{- title .Os }}{{ end }}_
|
|
|
|
{{- if eq .Arch "amd64" }}x86_64
|
|
|
|
{{- else }}{{ .Arch }}{{ end }}
|
2021-05-16 20:01:31 +00:00
|
|
|
- id: notray
|
|
|
|
builds:
|
|
|
|
- notray
|
|
|
|
format: zip
|
2023-06-23 12:00:46 +00:00
|
|
|
name_template: >-
|
|
|
|
{{ .ProjectName }}_{{ .Version }}_
|
|
|
|
{{- if eq .Os "darwin" }}macOS
|
|
|
|
{{- else }}{{- title .Os }}{{ end }}_
|
|
|
|
{{- if eq .Arch "amd64" }}x86_64
|
|
|
|
{{- else }}{{ .Arch }}{{ end }}
|
2024-08-11 17:53:00 +00:00
|
|
|
- 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 }}
|
2020-08-01 20:20:02 +00:00
|
|
|
checksum:
|
2020-08-01 23:36:27 +00:00
|
|
|
name_template: 'checksums.txt'
|
2020-08-01 20:20:02 +00:00
|
|
|
snapshot:
|
2024-08-26 16:47:40 +00:00
|
|
|
version_template: "0.0.0-{{ .Env.JFA_GO_NFPM_EPOCH }}"
|
2020-08-01 20:20:02 +00:00
|
|
|
changelog:
|
2020-08-01 23:36:27 +00:00
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- '^docs:'
|
|
|
|
- '^test:'
|
2021-05-16 21:44:04 +00:00
|
|
|
nfpms:
|
|
|
|
- id: notray
|
2021-05-24 17:46:54 +00:00
|
|
|
file_name_template: '{{ .ProjectName }}{{ if .IsSnapshot }}-git{{ end }}_{{ .Arch }}_{{ if .IsSnapshot }}{{ .ShortCommit }}{{ else }}v{{ .Version }}{{ end }}'
|
2021-05-24 18:53:53 +00:00
|
|
|
package_name: jfa-go
|
2021-05-16 21:44:04 +00:00
|
|
|
homepage: https://github.com/hrfee/jfa-go
|
|
|
|
description: A web app for managing users on Jellyfin
|
|
|
|
maintainer: Harvey Tindall <hrfee@hrfee.dev>
|
|
|
|
license: MIT
|
|
|
|
vendor: hrfee.dev
|
|
|
|
version_metadata: git
|
|
|
|
builds:
|
2024-08-11 16:23:38 +00:00
|
|
|
- notray-e2ee
|
2021-05-16 21:44:04 +00:00
|
|
|
contents:
|
|
|
|
- src: ./LICENSE
|
|
|
|
dst: /usr/share/licenses/jfa-go
|
|
|
|
formats:
|
|
|
|
- apk
|
|
|
|
- deb
|
|
|
|
- rpm
|
2024-08-11 17:53:00 +00:00
|
|
|
overrides:
|
|
|
|
deb:
|
|
|
|
dependencies:
|
|
|
|
- libolm-dev
|
|
|
|
rpm:
|
|
|
|
dependencies:
|
|
|
|
- libolm
|
|
|
|
apk:
|
|
|
|
dependencies:
|
|
|
|
- olm
|
2021-05-16 21:44:04 +00:00
|
|
|
- id: tray
|
2021-05-24 17:46:54 +00:00
|
|
|
file_name_template: '{{ .ProjectName }}{{ if .IsSnapshot }}-git{{ end }}_TrayIcon_{{ .Arch }}_{{ if .IsSnapshot }}{{ .ShortCommit }}{{ else }}v{{ .Version }}{{ end }}'
|
2021-05-24 18:53:53 +00:00
|
|
|
package_name: jfa-go-tray
|
2021-05-16 21:44:04 +00:00
|
|
|
homepage: https://github.com/hrfee/jfa-go
|
|
|
|
description: A web app for managing users on Jellyfin
|
|
|
|
maintainer: Harvey Tindall <hrfee@hrfee.dev>
|
|
|
|
license: MIT
|
|
|
|
vendor: hrfee.dev
|
|
|
|
version_metadata: git
|
|
|
|
builds:
|
|
|
|
- linux-tray
|
|
|
|
contents:
|
|
|
|
- src: ./LICENSE
|
|
|
|
dst: /usr/share/licenses/jfa-go
|
|
|
|
formats:
|
|
|
|
- apk
|
|
|
|
- deb
|
|
|
|
- rpm
|
|
|
|
overrides:
|
|
|
|
deb:
|
2021-05-24 17:37:26 +00:00
|
|
|
conflicts:
|
|
|
|
- jfa-go
|
|
|
|
replaces:
|
|
|
|
- jfa-go
|
2021-05-16 21:44:04 +00:00
|
|
|
dependencies:
|
2023-06-23 12:00:46 +00:00
|
|
|
- libayatana-appindicator
|
2024-08-11 17:53:00 +00:00
|
|
|
- libolm-dev
|
2021-05-16 21:44:04 +00:00
|
|
|
rpm:
|
|
|
|
dependencies:
|
|
|
|
- libappindicator-gtk3
|
2024-08-11 17:53:00 +00:00
|
|
|
- libolm
|
2021-05-16 21:44:04 +00:00
|
|
|
apk:
|
|
|
|
dependencies:
|
2023-06-23 12:00:46 +00:00
|
|
|
- libayatana-appindicator
|
2024-08-11 17:53:00 +00:00
|
|
|
- olm
|