mirror of
https://github.com/mgerb/tmail
synced 2026-01-09 01:12:47 +00:00
add makefile for cross compiling
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
vendor
|
vendor
|
||||||
*.db
|
*.db
|
||||||
tmail
|
tmail
|
||||||
|
build
|
||||||
|
|||||||
13
makefile
Normal file
13
makefile
Normal file
@@ -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
|
||||||
@@ -7,6 +7,8 @@ A throwaway smtp mail server with an API to retrieve emails.
|
|||||||
- all emails sent to *@<your domain> are stored in `mail.db`
|
- all emails sent to *@<your domain> are stored in `mail.db`
|
||||||
- hit these end points to check the email
|
- hit these end points to check the email
|
||||||
|
|
||||||
|
[Download the latest release here.](https://github.com/mgerb/tmail/releases)
|
||||||
|
|
||||||
```
|
```
|
||||||
All mail:
|
All mail:
|
||||||
http://host:8090/api/mail
|
http://host:8090/api/mail
|
||||||
|
|||||||
Reference in New Issue
Block a user