From 38f23970dea3221a8f94acc44773f3ac4ce8c386 Mon Sep 17 00:00:00 2001 From: Mitchell Date: Tue, 27 Feb 2018 15:21:54 -0600 Subject: [PATCH] add makefile for cross compiling --- .gitignore | 1 + makefile | 13 +++++++++++++ readme.md | 2 ++ 3 files changed, 16 insertions(+) create mode 100644 makefile diff --git a/.gitignore b/.gitignore index c747cbd..a70cc12 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ vendor *.db tmail +build diff --git a/makefile b/makefile new file mode 100644 index 0000000..e21181f --- /dev/null +++ b/makefile @@ -0,0 +1,13 @@ +linux: + go build -o ./build/tmail-linux ./main.go + +mac: + GOOS=darwin GOARCH=amd64 go build -o ./build/tmail-mac ./main.go + +windows: + GOOS=windows GOARCH=386 go build -o ./build/tmail-windows.exe ./main.go + +clean: + rm -rf ./build + +all: linux mac windows diff --git a/readme.md b/readme.md index a1fc934..e226fea 100644 --- a/readme.md +++ b/readme.md @@ -7,6 +7,8 @@ A throwaway smtp mail server with an API to retrieve emails. - all emails sent to *@ are stored in `mail.db` - hit these end points to check the email +[Download the latest release here.](https://github.com/mgerb/tmail/releases) + ``` All mail: http://host:8090/api/mail