gobpack is a simple tool for packaging a collection of files into a distributable gob.
I created gobpack to help bundle static assets for Gelyn's Edge into a separate, distributable binary. WebAssembly has restrictions on file access and bundling the assets alongside the game would negatively impact download speeds. This solution, although not perfect, serves my needs for now.
gobpack requires Go 1.18 or higher. Also ensure your $GOPATH/bin
is in the global path.
To install:
$ go install github.com/kinesivan/gopack@latest
$ gobpack -h
Usage of gobpack:
-e string
comma-delimited string of allowed file extensions (default "png,jpg")
-o string
output file (default "out.gob")
-p string
path to folder containing files (default "./assets")
-v enable verbose logging
$ gobpack -p ./assets -o assets.gob
This project is licensed under the MIT License - see the LICENSE.md file for details