mirror of
https://github.com/kopia/kopia.git
synced 2026-01-21 21:07:51 -05:00
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.
22 lines
433 B
Batchfile
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
|