-
Notifications
You must be signed in to change notification settings - Fork 43
Server Build
Depado edited this page Feb 9, 2018
·
2 revisions
If you don't want to download a pre-compiled version of goploader server you can build it from source. Otherwise you can directly download a pre-compiled binary here.
- A recent version Go installed on your machine
-
$GOPATHshould be set to the appropriate directory - The
deptool must be installed :go get -u github.com/golang/dep/cmd/dep
$ mkdir -p $GOPATH/src/github.com/Depado/
$ cd $GOPATH/src/github.com/Depado/
$ git clone https://github.com/Depado/goploader.git
$ cd goploader/
$ dep ensureNow all you have to do is build the project :
$ go build -o server github.com/Depado/goploader/serverThat's it. Now head to the setup part to see how to
generate or create the conf.yml file that is necessary for goploader to run.
If you want to include all the assets used by goploader server inside the
generated binary you'll have to install the rice tool.
$ go get github.com/GeertJohan/go.rice
$ go get github.com/GeertJohan/go.rice/riceYou can then generate a rice-box.go file by using this command :
$ rice embed-go -i=github.com/Depado/goploader/server
$ # Or by moving directly into the server dir
$ cd server && rice embed-goThis step must be executed before building the binary if you want embedded assets.