Skip to content
Snippets Groups Projects
Unverified Commit a7908c7f authored by Massimiliano Adamo's avatar Massimiliano Adamo
Browse files

fixed README

parent 6ca741a4
Branches
Tags
No related merge requests found
......@@ -42,7 +42,8 @@ Options:
--cert-destination=CERTDESTINATION Cert Destination [default: /etc/ssl/certs/<cert-name>.crt]
--fullchain-destination=FULLCHAINDESTINATION Full Chain Destination[default: /etc/ssl/certs/<cert-name>_fullchain.crt]
--key-destination=KEYDESTINATION Key Destination [default: /etc/ssl/private/<cert-name>.key]
--ca-destination=CADESTINATION CA Destination [default: /etc/ssl/certs/COMODO_<type>.crt]```
--ca-destination=CADESTINATION CA Destination [default: /etc/ssl/certs/COMODO_<type>.crt]
--wildcard The certificate type is wildcard```
```
## compatibility
......@@ -51,28 +52,10 @@ Debian/RedHat/Arch OS families
## build
### From Linux for Linux
It compiles on several platforms and architectures.
you can use `build.sh` from this repo
### From Linux for Windows
```bash
PROG_VERSION="1.0"
BUILDTIME=$(date -u '+%Y-%m-%d_%H:%M:%S')
env GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -X main.appVersion=${PROG_VERSION} -X main.buildTime=${BUILDTIME}" .
```
### From Linux for MacOS (not tested)
```bash
PROG_VERSION="1.0"
BUILDTIME=$(date -u '+%Y-%m-%d_%H:%M:%S')
env GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w -X main.appVersion=${PROG_VERSION} -X main.buildTime=${BUILDTIME}" .
```
valud values for GOARC and GOOS can be obtained running the following command:
Please run the script on this repository to check the available options:
```bash
go tool dist list
./build --help
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment