Skip to content

Commit

Permalink
Added a bin and x509 directory to the data directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Ne0nd0g committed Jun 10, 2017
1 parent 70d7994 commit 1062f0c
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
62 changes: 62 additions & 0 deletions data/bin/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Merlin Binaries

This directory contains compiled binaries for different operating
systems and architectures. A list of golang supported operating
systems and architectures can be found here:
https://golang.org/doc/install/source#environment

This directory is here because the `bin` in the root of the Merlin's
folders is used and created by golang for subsequent binaries.

The agent & server can be cross-compiled using:
`GOOS=darwin GOARCH=amd64 go build -o bin\merlinserver.dmg merlinserver.go`


The gomobile library can be used to compile for Android and iOS:
https://godoc.org/golang.org/x/mobile/cmd/gomobile


$GOOS | $GOARCH
--- | ---
android | arm
darwin | 386
darwin | amd64
darwin | arm
darwin | arm64
dragonfly | amd64
freebsd | 386
freebsd | amd64
freebsd | arm
linux | 386
linux | amd64
linux | arm
linux | arm64
linux | ppc64
linux | ppc64le
linux | mips
linux | mipsle
linux | mips64
linux | mips64le
netbsd | 386
netbsd | amd64
netbsd | arm
openbsd | 386
openbsd | amd64
openbsd | arm
plan9 | 386
plan9 | amd64
solaris | amd64
windows | 386
windows | amd64

# Compile for Android
These instructions can be followed to compile for Android

* Install Android SDK
https://developer.android.com/ndk/guides/index.html
* Install gomobile
`go get golang.org/x/mobile/cmd/gomobile`
* Initialize gomobile
`bin\gomobile init
-ndk=C:\Users\[username]\AppData\Local\Android\Sdk\ndk-bundle`
* Build the APK `bin\gomobile build -target=android merlinagent`
2 changes: 2 additions & 0 deletions data/x509/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Merlin's x.509 Certificates
Generate x.509 certificates for Merlin's server and store them here.

0 comments on commit 1062f0c

Please sign in to comment.