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:
|
|
|
|
- go mod download
|
2021-01-05 18:16:23 +00:00
|
|
|
- rm -rf data/web
|
|
|
|
- mkdir -p data
|
|
|
|
- cp -r static data/web
|
|
|
|
- npm install
|
2021-02-11 18:21:21 +00:00
|
|
|
- npm install esbuild
|
2021-01-23 18:53:14 +00:00
|
|
|
- mkdir -p data/web/css
|
2021-01-05 18:16:23 +00:00
|
|
|
- cp node_modules/remixicon/fonts/remixicon.css node_modules/remixicon/fonts/remixicon.woff2 data/web/css/
|
|
|
|
- cp -r html data/
|
2022-01-04 20:12:19 +00:00
|
|
|
- node scripts/missing-colors.js html data/html
|
2021-01-05 18:16:23 +00:00
|
|
|
- cp -r lang data/
|
2021-03-07 16:45:35 +00:00
|
|
|
- cp LICENSE data/
|
2021-12-29 23:29:34 +00:00
|
|
|
- cp jfa-go.service data/
|
2021-02-17 14:32:03 +00:00
|
|
|
- python3 scripts/enumerate_config.py -i config/config-base.json -o data/config-base.json
|
|
|
|
- python3 scripts/generate_ini.py -i config/config-base.json -o data/config-default.ini
|
|
|
|
- python3 scripts/compile_mjml.py -o data/
|
2022-01-04 20:12:19 +00:00
|
|
|
- rm -rf tempts
|
|
|
|
- cp -r ts tempts
|
|
|
|
- scripts/dark-variant.sh tempts
|
|
|
|
- scripts/dark-variant.sh tempts/modules
|
|
|
|
- npx esbuild --bundle tempts/admin.ts --outfile=./data/web/js/admin.js --minify
|
|
|
|
- npx esbuild --bundle tempts/pwr.ts --outfile=./data/web/js/pwr.js --minify
|
|
|
|
- npx esbuild --bundle tempts/form.ts --outfile=./data/web/js/form.js --minify
|
|
|
|
- npx esbuild --bundle tempts/setup.ts --outfile=./data/web/js/setup.js --minify
|
|
|
|
- npx esbuild --bundle tempts/crash.ts --outfile=./data/crash.js --minify
|
|
|
|
- rm -r tempts
|
|
|
|
- npx esbuild --bundle css/base.css --outfile=./data/web/css/bundle.css --external:remixicon.css --minify
|
2021-06-11 22:14:16 +00:00
|
|
|
- cp html/crash.html data/
|
2022-01-26 15:45:13 +00:00
|
|
|
- npx tailwindcss -i data/web/css/bundle.css -o data/bundle.css --content "html/crash.html"
|
2021-11-14 14:51:41 +00:00
|
|
|
- node scripts/inline.js root data data/crash.html data/crash.html
|
2021-06-11 22:39:38 +00:00
|
|
|
- rm data/bundle.css
|
2022-01-04 20:12:19 +00:00
|
|
|
- npx tailwindcss -i data/web/css/bundle.css -o data/web/css/bundle.css
|
2021-06-11 22:14:16 +00:00
|
|
|
- mv data/crash.html data/html/
|
2020-10-08 20:25:34 +00:00
|
|
|
- go get -u github.com/swaggo/swag/cmd/swag
|
2020-09-24 23:11:52 +00:00
|
|
|
- swag init -g main.go
|
2022-01-08 16:42:36 +00:00
|
|
|
- mv data/web/css/bundle.css data/web/css/{{.Env.JFA_GO_CSS_VERSION}}bundle.css
|
2020-08-01 20:20:02 +00:00
|
|
|
builds:
|
2021-05-16 20:01:31 +00:00
|
|
|
- id: notray
|
|
|
|
dir: ./
|
2020-08-01 23:36:27 +00:00
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
2021-03-07 15:23:44 +00:00
|
|
|
ldflags:
|
2022-01-08 16:42:36 +00:00
|
|
|
- -s -w -X main.version={{.Env.JFA_GO_VERSION}} -X main.commit={{.ShortCommit}} -X main.updater=binary -X main.cssVersion={{.Env.JFA_GO_CSS_VERSION}}
|
2020-08-01 23:36:27 +00:00
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
- darwin
|
2020-08-16 13:55:39 +00:00
|
|
|
goarch:
|
|
|
|
- arm
|
|
|
|
- arm64
|
2021-05-16 21:44:04 +00:00
|
|
|
- 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:
|
|
|
|
- -tags=tray
|
|
|
|
ldflags:
|
2022-01-13 21:49:56 +00:00
|
|
|
- -s -w -X main.version={{.Env.JFA_GO_VERSION}} -X main.commit={{.ShortCommit}} -X main.updater=binary -X main.cssVersion={{.Env.JFA_GO_CSS_VERSION}} -H=windowsgui
|
2021-05-16 20:01:31 +00:00
|
|
|
goos:
|
|
|
|
- windows
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- id: linux-tray
|
|
|
|
dir: ./
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=1
|
|
|
|
flags:
|
|
|
|
- -tags=tray
|
|
|
|
ldflags:
|
2022-01-13 21:49:56 +00:00
|
|
|
- -s -w -X main.version={{.Env.JFA_GO_VERSION}} -X main.commit={{.ShortCommit}} -X main.updater=binary -X main.cssVersion={{.Env.JFA_GO_CSS_VERSION}}
|
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
|
2021-05-16 21:44:04 +00:00
|
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_TrayIcon_{{ .Os }}_{{ .Arch }}"
|
2021-05-16 20:01:31 +00:00
|
|
|
replacements:
|
|
|
|
darwin: macOS
|
|
|
|
linux: Linux
|
|
|
|
windows: Windows
|
|
|
|
amd64: x86_64
|
|
|
|
- id: linux-tray
|
|
|
|
builds:
|
|
|
|
- linux-tray
|
|
|
|
format: zip
|
2021-05-16 21:44:04 +00:00
|
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_TrayIcon_{{ .Os }}_{{ .Arch }}"
|
2021-05-16 20:01:31 +00:00
|
|
|
replacements:
|
|
|
|
darwin: macOS
|
|
|
|
linux: Linux
|
|
|
|
windows: Windows
|
|
|
|
amd64: x86_64
|
|
|
|
- id: notray
|
|
|
|
builds:
|
|
|
|
- notray
|
|
|
|
format: zip
|
2021-05-16 21:44:04 +00:00
|
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
2021-05-16 20:01:31 +00:00
|
|
|
replacements:
|
2021-02-17 16:53:15 +00:00
|
|
|
darwin: macOS
|
2020-08-01 23:36:27 +00:00
|
|
|
linux: Linux
|
|
|
|
windows: Windows
|
|
|
|
amd64: x86_64
|
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:
|
2021-05-31 21:11:43 +00:00
|
|
|
name_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:
|
|
|
|
- notray
|
|
|
|
contents:
|
|
|
|
- src: ./LICENSE
|
|
|
|
dst: /usr/share/licenses/jfa-go
|
|
|
|
formats:
|
|
|
|
- apk
|
|
|
|
- deb
|
|
|
|
- rpm
|
|
|
|
- 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:
|
|
|
|
- libappindicator3-1
|
|
|
|
rpm:
|
|
|
|
dependencies:
|
|
|
|
- libappindicator-gtk3
|
|
|
|
apk:
|
|
|
|
dependencies:
|
|
|
|
- libappindicator
|