put version in binary properly (#73)

Addresses #71 :

    Set version on the CLI framework.
    Add a build.sh script that injects variables into the build tooling using git and a version file.
    Set version in config.
This commit is contained in:
Tobi Smethurst 2021-06-28 12:17:20 +02:00 committed by GitHub
commit 4f3b3f5c0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 38 additions and 11 deletions

View file

@ -30,7 +30,7 @@ To get started, you first need to have Go installed. GTS was developed with Go 1
Once you've got go installed, clone this repository into your Go path. Normally, this should be `~/go/src/github.com/superseriousbusiness/gotosocial`.
Once that's done, you can try building the project: `go build ./cmd/gotosocial`. This will build the `gotosocial` binary.
Once that's done, you can try building the project: `./build.sh`. This will build the `gotosocial` binary.
If there are no errors, great, you're good to go!