build: add sha256 checksum file for published binaries
This commit is contained in:
parent
eb057d0415
commit
e98e16e45a
2 changed files with 16 additions and 5 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
@ -1,6 +1,7 @@
|
||||||
miniflux-*
|
./*.sha256
|
||||||
./miniflux
|
./miniflux
|
||||||
*.rpm
|
|
||||||
*.deb
|
|
||||||
.idea
|
.idea
|
||||||
.vscode
|
.vscode
|
||||||
|
*.deb
|
||||||
|
*.rpm
|
||||||
|
miniflux-*
|
12
Makefile
12
Makefile
|
@ -51,33 +51,43 @@ miniflux-no-pie:
|
||||||
|
|
||||||
linux-amd64:
|
linux-amd64:
|
||||||
@ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
@ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
||||||
|
@ sha256sum $(APP)-$@ > $(APP)-$@.sha256
|
||||||
|
|
||||||
linux-arm64:
|
linux-arm64:
|
||||||
@ CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
@ CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
||||||
|
@ sha256sum $(APP)-$@ > $(APP)-$@.sha256
|
||||||
|
|
||||||
linux-armv7:
|
linux-armv7:
|
||||||
@ CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
@ CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
||||||
|
@ sha256sum $(APP)-$@ > $(APP)-$@.sha256
|
||||||
|
|
||||||
linux-armv6:
|
linux-armv6:
|
||||||
@ CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
@ CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
||||||
|
@ sha256sum $(APP)-$@ > $(APP)-$@.sha256
|
||||||
|
|
||||||
linux-armv5:
|
linux-armv5:
|
||||||
@ CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=5 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
@ CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=5 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
||||||
|
@ sha256sum $(APP)-$@ > $(APP)-$@.sha256
|
||||||
|
|
||||||
darwin-amd64:
|
darwin-amd64:
|
||||||
@ GOOS=darwin GOARCH=amd64 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
@ GOOS=darwin GOARCH=amd64 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
||||||
|
@ sha256sum $(APP)-$@ > $(APP)-$@.sha256
|
||||||
|
|
||||||
darwin-arm64:
|
darwin-arm64:
|
||||||
@ GOOS=darwin GOARCH=arm64 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
@ GOOS=darwin GOARCH=arm64 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
||||||
|
@ sha256sum $(APP)-$@ > $(APP)-$@.sha256
|
||||||
|
|
||||||
freebsd-amd64:
|
freebsd-amd64:
|
||||||
@ CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
@ CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
||||||
|
@ sha256sum $(APP)-$@ > $(APP)-$@.sha256
|
||||||
|
|
||||||
openbsd-amd64:
|
openbsd-amd64:
|
||||||
@ GOOS=openbsd GOARCH=amd64 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
@ GOOS=openbsd GOARCH=amd64 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@ main.go
|
||||||
|
@ sha256sum $(APP)-$@ > $(APP)-$@.sha256
|
||||||
|
|
||||||
windows-amd64:
|
windows-amd64:
|
||||||
@ GOOS=windows GOARCH=amd64 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@.exe main.go
|
@ GOOS=windows GOARCH=amd64 go build -ldflags=$(LD_FLAGS) -o $(APP)-$@.exe main.go
|
||||||
|
@ sha256sum $(APP)-$@.exe > $(APP)-$@.exe.sha256
|
||||||
|
|
||||||
build: linux-amd64 linux-arm64 linux-armv7 linux-armv6 linux-armv5 darwin-amd64 darwin-arm64 freebsd-amd64 openbsd-amd64 windows-amd64
|
build: linux-amd64 linux-arm64 linux-armv7 linux-armv6 linux-armv5 darwin-amd64 darwin-arm64 freebsd-amd64 openbsd-amd64 windows-amd64
|
||||||
|
|
||||||
|
@ -104,7 +114,7 @@ run:
|
||||||
@ LOG_DATE_TIME=1 LOG_LEVEL=debug RUN_MIGRATIONS=1 CREATE_ADMIN=1 ADMIN_USERNAME=admin ADMIN_PASSWORD=test123 go run main.go
|
@ LOG_DATE_TIME=1 LOG_LEVEL=debug RUN_MIGRATIONS=1 CREATE_ADMIN=1 ADMIN_USERNAME=admin ADMIN_PASSWORD=test123 go run main.go
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@ rm -f $(APP)-* $(APP) $(APP)*.rpm $(APP)*.deb $(APP)*.exe
|
@ rm -f $(APP)-* $(APP) $(APP)*.rpm $(APP)*.deb $(APP)*.exe $(APP)*.sha256
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test -cover -race -count=1 ./...
|
go test -cover -race -count=1 ./...
|
||||||
|
|
Loading…
Reference in a new issue