module not building?
tkuebler opened this issue · comments
checking out the project and running 'go build' doesn't work, new to go - what am I missing? Wanting to build a mac version.
Hi, The module is layed out as
# tree
.
├── cmd
│ ├── dungeondraft-pack
│ │ └── dungeondraft-pack.go
│ └── dungeondraft-unpack
│ └── dungeondraft-unpack.go
├── internal
└── pkg
├── pack
└── unpack
This so so that the packages in pkg/
can be reused in other projects. the commandline utilities are stored in cmd/
you can explicitly build the binaries by useing
$ go build /cmd/dungeondraft-pack
$ go build /cmd/dungeondraft-unpack
or you can use
go install ./...
to build and install them to your $GOPATH/bin
alternatively, if you just need windows binaries you can get prebuilt ones from https://github.com/Ryex/Dungeondraft-GoPackager/releases
Thanks!! Worked a charm, mac binaries! Experienced dev, but haven't dealt with go modules yet, played with go early days. :)
Also, thanks for this functionality, real time saver.
let me know how they work! there is windows specific logic to correct command line argument passing and path separators but those checks if the platform is windows. so it should work. but let me know if you have any problems.