Files
kopia/install.cmd
Jarek Kowalski 771fec1077 build: added simple Windows-based build script
This orchestrates building HTMLUI and main binary, only uses built-in shell script and avoids having any dependencies on Unix tools. Latest go and npm are required.
2019-12-18 19:35:40 -08:00

22 lines
433 B
Batchfile

@echo Installing tools...
pushd tools
call install.cmd
popd
@echo Building HTML UI...
pushd htmlui
call build.cmd
popd
@echo Building embedded data...
pushd htmlui\build
echo on
..\..\tools\.tools\go-bindata.exe -fs -tags embedhtml -o ..\..\internal\server\htmlui_bindata.go -pkg server -ignore .map . static/css static/js static/media
popd
@echo Building binary...
go build -o kopia.exe -tags embedhtml github.com/kopia/kopia