Skip to content

Commit

Permalink
Improved docs and release procedure.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronoaldo committed Aug 25, 2021
1 parent 3f292a2 commit 1eb0233
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ https://content.minetest.net and install them into a local `mods` folder.

To install the contentdb cli, you need a working Go (> 1.16) toolchain:

go get github.com/ronoaldo/minetools/cmd/contentdb
git clone https://github.com/ronoaldo/minetools
go install ./minetools/cmd/contentdb

### Usage

To get the online help with all parameters, run

contentdb --help

To search for content, use the `search` subcommand:

contentdb search mesecons
Expand All @@ -26,6 +31,10 @@ To install a mod/modpack, use the `install` subcommand:

contentdb install mod rubenwardy/sfinv

To update all mods in the mods folder, use the `update` subdommand:
To update all mods in the mods folder (including those installed with git!), use the `update` subdommand:

contentdb update

You can check what would be updated by running:

contentdb --dry-run update
3 changes: 2 additions & 1 deletion scripts/make-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ mkdir -p dist
for GOOS in $OSES; do
for GOARCH in $ARCHS; do
echo "Building for GOOS=$GOOS GOARCH=$GOARCH"
GOOS=$GOOS GOARCH=$GOARCH go build -o dist/contentdb-${GOOS}-${GOARCH} ./cmd/contentdb
GOOS=$GOOS GOARCH=$GOARCH go build -o dist/contentdb ./cmd/contentdb
zip dist/contentdb-$GOOS-$GOARCH.zip dist/contentdb README.md LICENSE
done
done

0 comments on commit 1eb0233

Please sign in to comment.