diff --git a/.gitignore b/.gitignore index 83a96cb..c2e9582 100644 --- a/.gitignore +++ b/.gitignore @@ -2,10 +2,9 @@ *.swp bin __pycache__ - shared-lib/lib shared-lib/examples/c/example shared-lib/c++/example/example shared-lib/c#/example/example.exe - shared-lib/test/c/test +release-notes.md \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 411e623..9c247a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,18 @@ # CHANGELOG +## [0.8.3](https://github.com/uhppoted/uhppote-core/releases/tag/v0.8.3) - 2022-12-16 + +1. Maintenance release for version compatibility. + + ## [0.8.2](https://github.com/uhppoted/uhppote-core/releases/tag/v0.8.2) - 2022-10-14 ### Changed 1. Updated go.mod to Go 1.19. + ## [0.8.1](https://github.com/uhppoted/uhppote-core/releases/tag/v0.8.1) - 2022-08-01 -### Changed 1. Maintenance release to update dependencies. @@ -16,6 +21,7 @@ ### Changed 1. Date.UnmarshalJSON: unmarshalled "" to zero value + ## [0.7.3](https://github.com/uhppoted/uhppote-core/releases/tag/v0.7.3) - 2022-06-01 ### Changed @@ -24,6 +30,7 @@ 3. Reworked types.DateTime to use zero value as invalid 4. Added ModeUnknown for door control state + ## [0.7.2](https://github.com/uhppoted/uhppote-core/releases/tag/v0.7.2) - 2022-01-26 ### Changed diff --git a/Makefile b/Makefile index 132d8af..02e381d 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,7 @@ all: test \ clean: go clean rm -rf bin + rm -rf dist format: go fmt ./... @@ -46,7 +47,11 @@ build-all: test vet env GOOS=darwin GOARCH=amd64 GOWORK=off go build -trimpath ./... env GOOS=windows GOARCH=amd64 GOWORK=off go build -trimpath ./... -release: build-all +release: clean build-all + +publish: release + echo "Releasing version v$(VERSION)" + # gh release create "v$(VERSION)"" ./dist/*.tar.gz --draft --prerelease --title "v($VERSION)-beta" --notes-file release-notes.md debug: build go test ./... -run TestTSVUnmarshalTasks diff --git a/README.md b/README.md index 6a707d0..b91e8e4 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Supported operating systems: | *Version* | *Description* | | --------- | ----------------------------------------------------------------------------------------- | +| v0.8.3 | Maintenance release | | v0.8.2 | Bumping Go version to 1.19 | | v0.8.1 | Maintenance release | | v0.8.0 | Fixed Date unmarshalling for "" | diff --git a/uhppote/uhppote.go b/uhppote/uhppote.go index f74afc5..4384f52 100644 --- a/uhppote/uhppote.go +++ b/uhppote/uhppote.go @@ -28,7 +28,13 @@ type uhppote struct { driver driver } -func NewUHPPOTE(bindAddr types.BindAddr, broadcastAddr types.BroadcastAddr, listenAddr types.ListenAddr, timeout time.Duration, devices []Device, debug bool) IUHPPOTE { +func NewUHPPOTE( + bindAddr types.BindAddr, + broadcastAddr types.BroadcastAddr, + listenAddr types.ListenAddr, + timeout time.Duration, + devices []Device, + debug bool) IUHPPOTE { bind := net.UDPAddr(bindAddr) broadcast := net.UDPAddr(broadcastAddr) listen := net.UDPAddr(listenAddr)