Skip to content

Commit 9f41cb9

Browse files
authored
Merge pull request #240 from sipcapture/goreleaser
fixed versions
2 parents acb7e54 + 4e2982f commit 9f41cb9

File tree

3 files changed

+11
-20
lines changed

3 files changed

+11
-20
lines changed

example/heplify.yaml

+9-17
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,17 @@ replaces:
99
- heplify
1010
provides:
1111
- heplify
12-
maintainer: "QXIP SIPCapture <[email protected]>"
12+
maintainer: "QXIP Sipcapture <[email protected]>"
1313
description: |
1414
HEP Capture Agent for HOMER/SIPCAPTURE
1515
vendor: "QXIP"
1616
homepage: "http://qxip.net"
1717
license: "AGPLv3"
18-
bindir: "/usr/local/bin"
19-
files:
20-
/tmp/pkg/heplify: "/usr/local/bin/heplify"
21-
config_files:
22-
/tmp/pkg/example/heplify.service: "/lib/systemd/system/heplify.service"
23-
# /tmp/pkg/etc/heplify.toml: "/opt/heplify/heplify.toml"
24-
#overrides:
25-
# rpm:
26-
# scripts:
27-
# preinstall: ./scripts/preinstall.sh
28-
# postremove: ./scripts/postremove.sh
29-
# deb:
30-
# scripts:
31-
# postinstall: ./scripts/postinstall.sh
32-
# preremove: ./scripts/preremove.sh
33-
18+
contents:
19+
# Basic file that applies to all packagers
20+
- src: /tmp/pkg/heplify
21+
dst: /usr/local/bin/heplify
22+
# Simple config file
23+
- src: /tmp/pkg/example/heplify.service
24+
dst: /lib/systemd/system/heplify.service
25+
type: config

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/sipcapture/heplify/sniffer"
1313
)
1414

15-
const version = "heplify 1.64"
15+
const version = "heplify 1.65.1"
1616

1717
func createFlags() {
1818

scripts/build_package.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
VERSION=$(cat $PWD/main.go | grep "const version" | grep -Po '\d.\d+')
3+
VERSION=$(cat $PWD/main.go | grep "const version" | grep -Po '\d.\d+.\d+')
44

55
PACKAGE=${PACKAGE:-"heplify"}
66
RELEASE=${VERSION:-"1.5.3"}
@@ -26,4 +26,3 @@ docker run --rm \
2626
-v $PWD:/tmp/pkg \
2727
-e VERSION="$RELEASE" \
2828
goreleaser/nfpm pkg --config /tmp/pkg/example/$PACKAGE.yaml --target "/tmp/pkg/$PACKAGE-$RELEASE-$ARCH.$EXT"
29-

0 commit comments

Comments
 (0)