Commit a7292924 authored by Andreas Wagner's avatar Andreas Wagner
Browse files

Update go install instruction.

parent a5388b89
......@@ -41,7 +41,7 @@ There are several ways of obtaining the software. It is not necessary to install
1. The default way of getting the software is downloading an asset on the [releases page](https://gitlab.gwdg.de/rg-mpg-de/tei2zenodo/-/releases). There are precompiled binaries zipped together with a configuration template on that page.
2. The package is maintained as a [Go](https://golang.org/) repository, so if you have Go installed, you can use it to compile and install the software in one single step: with the command `go install gitlab.gwdg.de/rg-mpg-de/tei2zenodo@latest`. This will put the executable in the `$GOPATH/bin` directory, so that, on a standard Go installation, it can be found automatically from whatever directory you're in. However, you will also need to manually download and modify the [config.json](./configs/config.json.tpl?inline=false) and the [templates directory](./templates)
2. The package is maintained as a [Go](https://golang.org/) repository, so if you have Go installed, you can use it to compile and install the software in one single step: with the command `go install gitlab.gwdg.de/rg-mpg-de/tei2zenodo`. This will put the executable in the `$GOPATH/bin` directory, so that, on a standard Go installation, it can be found automatically from whatever directory you're in. However, you will also need to manually download and modify the [config.json](./configs/config.json.tpl?inline=false) and the [templates directory](./templates)
3. If you want to compile the source code manually yourself, you need the [Go compiler](https://golang.org/) as well. Then, after retrieving the source code, either by cloning the git repository or by using one of the "download source code" options, you can compile it in its main directory with the command `go build -ldflags "-s -w"`. You can even skip the optimization switches (`-ldflags ...`) and just say `go build`, but the longer command is the one I recommend and am using most of the time.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment