summaryrefslogtreecommitdiffstats
path: root/goreleaser.yml
blob: 0762b44e79f6d27dcecdd598dee8524ebc60e8e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Run with `ctl.sh release` to get ENV vars

project_name: browsh
builds:
  - binary: browsh
    env:
      - CGO_ENABLED=0
    main: cmd/browsh/main.go
    goos:
      - windows
      - darwin
      - linux
      - freebsd
      - openbsd
    goarch:
      - 386
      - amd64
      - arm
      - arm64
    goarm:
      - 6
      - 7
    ignore:
      - goos: darwin
        goarch: 386
      - goarch: arm64
        goos: windows
    ldflags: -s -w

archives:
  - format_overrides:
    - goos: windows
      format: binary
    - goos: linux
      format: binary
    - goos: freebsd
      format: binary
    - goos: openbsd
      format: binary

nfpms:
  - vendor: Browsh
    homepage: https://www.brow.sh
    maintainer: Thomas Buckley-Houston <tom@tombh.co.uk>
    description: The modern, text-based browser
    license: GPL v3
    formats:
      - deb
      - rpm
    dependencies:
      - firefox
    overrides:
      deb:
        dependencies:
          - 'firefox | firefox-esr'

brews:
  - name: browsh
    tap:
      name: homebrew-browsh
    homepage: "https://www.brow.sh"
    description: "The modern, text-based browser"
    caveats: "You need Firefox 57 or newer to run Browsh"
    # We do the upload manually because Goreleaser doesn't support Deploy Keys and Github
    # doesn't support repo-specific Access Tokens 🙄
    skip_upload: true

release:
  extra_files:
    - glob: ./browsh-*.xpi