diff --git a/CHANGELOG.md b/CHANGELOG.md index 21be6b34..ae9aa621 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # CHANGELOG -## Unreleased +## [0.8.9](https://github.com/uhppoted/uhppoted-httpd/releases/tag/v0.8.9) - 2024-09-06 ### Added 1. Implemented TCP/IP transport support. diff --git a/Makefile b/Makefile index 72d73a2c..d3ca5352 100644 --- a/Makefile +++ b/Makefile @@ -82,17 +82,19 @@ benchmark: coverage: build go test -cover ./... -build-all: test vet lint - mkdir -p dist/$(DIST)/windows - mkdir -p dist/$(DIST)/darwin +build-all: build test vet lint mkdir -p dist/$(DIST)/linux mkdir -p dist/$(DIST)/arm mkdir -p dist/$(DIST)/arm7 - env GOOS=linux GOARCH=amd64 GOWORK=off go build -trimpath -o dist/$(DIST)/linux ./... - env GOOS=linux GOARCH=arm64 GOWORK=off go build -trimpath -o dist/$(DIST)/arm ./... - env GOOS=linux GOARCH=arm GOARM=7 GOWORK=off go build -trimpath -o dist/$(DIST)/arm7 ./... - env GOOS=darwin GOARCH=amd64 GOWORK=off go build -trimpath -o dist/$(DIST)/darwin ./... - env GOOS=windows GOARCH=amd64 GOWORK=off go build -trimpath -o dist/$(DIST)/windows ./... + mkdir -p dist/$(DIST)/darwin-x64 + mkdir -p dist/$(DIST)/darwin-arm64 + mkdir -p dist/$(DIST)/windows + env GOOS=linux GOARCH=amd64 GOWORK=off go build -trimpath -o dist/$(DIST)/linux ./... + env GOOS=linux GOARCH=arm64 GOWORK=off go build -trimpath -o dist/$(DIST)/arm ./... + env GOOS=linux GOARCH=arm GOARM=7 GOWORK=off go build -trimpath -o dist/$(DIST)/arm7 ./... + env GOOS=darwin GOARCH=amd64 GOWORK=off go build -trimpath -o dist/$(DIST)/darwin-x64 ./... + env GOOS=darwin GOARCH=arm64 GOWORK=off go build -trimpath -o dist/$(DIST)/darwin-arm64 ./... + env GOOS=windows GOARCH=amd64 GOWORK=off go build -trimpath -o dist/$(DIST)/windows ./... cp -r httpd/html dist/$(DIST) build-quickstart: @@ -104,13 +106,22 @@ build-quickstart: release: update-release build-all find . -name ".DS_Store" -delete - tar --directory=dist --exclude=".DS_Store" -cvzf dist/$(DIST).tar.gz $(DIST) - cd dist; zip --recurse-paths $(DIST).zip $(DIST) + tar --directory=dist/$(DIST)/linux --exclude=".DS_Store" -cvzf dist/$(DIST)-linux-x64.tar.gz . + tar --directory=dist/$(DIST)/arm --exclude=".DS_Store" -cvzf dist/$(DIST)-arm-x64.tar.gz . + tar --directory=dist/$(DIST)/arm7 --exclude=".DS_Store" -cvzf dist/$(DIST)-arm7.tar.gz . + tar --directory=dist/$(DIST)/darwin-x64 --exclude=".DS_Store" -cvzf dist/$(DIST)-darwin-x64.tar.gz . + tar --directory=dist/$(DIST)/darwin-arm64 --exclude=".DS_Store" -cvzf dist/$(DIST)-darwin-arm64.tar.gz . + cd dist/$(DIST)/windows && zip --recurse-paths ../../$(DIST)-windows-x64.zip . -x ".DS_Store" publish: release echo "Releasing version $(VERSION)" - rm -f dist/development.tar.gz - gh release create "$(VERSION)" "./dist/uhppoted-httpd_$(VERSION).tar.gz" "./dist/uhppoted-httpd_$(VERSION).zip" --draft --prerelease --title "$(VERSION)-beta" --notes-file release-notes.md + gh release create "$(VERSION)" "./dist/$(DIST)-arm-x64.tar.gz" \ + "./dist/$(DIST)-arm7.tar.gz" \ + "./dist/$(DIST)-darwin-arm64.tar.gz" \ + "./dist/$(DIST)-darwin-x64.tar.gz" \ + "./dist/$(DIST)-linux-x64.tar.gz" \ + "./dist/$(DIST)-windows-x64.zip" \ + --draft --prerelease --title "$(VERSION)-beta" --notes-file release-notes.md debug: build $(CMD) --debug --console diff --git a/README.md b/README.md index d4cf6d34..c376584c 100644 --- a/README.md +++ b/README.md @@ -59,10 +59,17 @@ _CAVEAT EMPTOR_ ### Current Release -**[v0.8.8](https://github.com/uhppoted/uhppoted-httpd/releases/tag/v0.8.8) - 2024-03-27** - -1. Added public Docker image to ghcr.io. -2. Bumped Go version to 1.22. +**[v0.8.9](https://github.com/uhppoted/uhppoted-httpd/releases/tag/v0.8.9) - 2024-09-06** + +1. Added TCP/IP transport support. +2. Fixed bug in authentication that allowed deleted user to login unless system had been restarted. +3. On startup, redirects to 'setup' page to create an admin user if none exists. +4. Added configurable _admin_ role. +5. Removed creation of admin user in _daemonize_. +6. Added ADMIN role check to default _grules_ rulesets. +7. Added support for configurable default card start and end dates. +8. Excluded cards with missing start or end dates from the ACL loaded to the controllers. +9. Updated to Go 1.23. ## Installation diff --git a/go.mod b/go.mod index 9e41b927..19daa791 100644 --- a/go.mod +++ b/go.mod @@ -7,8 +7,8 @@ require ( github.com/google/uuid v1.6.0 github.com/hyperjumptech/grule-rule-engine v1.15.0 github.com/pquerna/otp v1.3.0 - github.com/uhppoted/uhppote-core v0.8.9-0.20240823182843-e0981da9c4a4 - github.com/uhppoted/uhppoted-lib v0.8.9-0.20240827173223-f5262c207d8b + github.com/uhppoted/uhppote-core v0.8.9 + github.com/uhppoted/uhppoted-lib v0.8.9 golang.org/x/sys v0.25.0 ) diff --git a/go.sum b/go.sum index 83eeaa08..e0e01652 100644 --- a/go.sum +++ b/go.sum @@ -87,10 +87,10 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/uhppoted/uhppote-core v0.8.9-0.20240823182843-e0981da9c4a4 h1:7zcs93hYt0sBp+kCIbgju4Tgc1zvaRVgReksSs4K1uM= -github.com/uhppoted/uhppote-core v0.8.9-0.20240823182843-e0981da9c4a4/go.mod h1:oUQdz4NBMXkcwzEHUd6lYQgF6He32+jnb+FMwehZRwg= -github.com/uhppoted/uhppoted-lib v0.8.9-0.20240827173223-f5262c207d8b h1:ItQCO+PnhGKlyOwn4SEpxq+pw7VXRy/+72mz4TM+yaE= -github.com/uhppoted/uhppoted-lib v0.8.9-0.20240827173223-f5262c207d8b/go.mod h1:vz01fBAy8QYbwUGBCfFEZh5naPt9Ma6SHlzp/SIRLcE= +github.com/uhppoted/uhppote-core v0.8.9 h1:1+PE/rSS5fWJfPZ97UXkRBWHmp/h80QLgQ+P3942WZU= +github.com/uhppoted/uhppote-core v0.8.9/go.mod h1:oUQdz4NBMXkcwzEHUd6lYQgF6He32+jnb+FMwehZRwg= +github.com/uhppoted/uhppoted-lib v0.8.9 h1:PQmlZeESlYhLfkGpBxTeRyQaD2b3melImtcsgb8VVhw= +github.com/uhppoted/uhppoted-lib v0.8.9/go.mod h1:tQgA5Jno0R2g8hlv7Wi52vVZYmdB9DFFLehLWLHuuKU= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=