Skip to content

Commit

Permalink
Adds apk packages (#9)
Browse files Browse the repository at this point in the history
* Adds apk packages
  • Loading branch information
kimpepper committed Jan 7, 2022
1 parent 5faca12 commit b3239a7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.DS_Store
/bin
/dist
/keys
6 changes: 6 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Documentation at http://goreleaser.com
project_name: skprmail

builds:
- binary: skprmail
Expand All @@ -11,6 +12,11 @@ archives:
darwin: macOS
format: binary

nfpms:
- description: A drop-in replacement for Sendmail which sends email via Amazon SES.
homepage: https://github.com/skpr/mail
formats: [ apk ]

release:
prerelease: auto
github:
Expand Down
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ PROJECT=github.com/skpr/mail
VERSION=$(shell git describe --tags --always)
COMMIT=$(shell git rev-list -1 HEAD)

PRIVATE_KEY=$(CURDIR)/keys/skpr.rsa.priv
PUBLIC_KEY=$(CURDIR)/keys/skpr.rsa.pub

# Builds the project.
build:
gox -os='linux darwin' \
Expand All @@ -22,4 +25,10 @@ lint:
test:
go test -cover ./...

.PHONY: *
# This is a step which is only used for local development.
keys:
mkdir -p keys
openssl genrsa -out $(PRIVATE_KEY) 4096
openssl rsa -in $(PRIVATE_KEY) -pubout -out $(PUBLIC_KEY)

.PHONY: *

0 comments on commit b3239a7

Please sign in to comment.