Fix client path
This commit is contained in:
parent
337b8d3f54
commit
a29e63eb71
2 changed files with 8 additions and 8 deletions
12
Makefile
12
Makefile
|
@ -4,21 +4,21 @@ BUILDDATE!=date '+%Y%m%d'
|
|||
LDFLAGS=-ldflags="-X '${VPKG}.Version=${VER}' -X '${VPKG}.Built=${BUILDDATE}'"
|
||||
GOFLAGS=-v
|
||||
|
||||
all: client/admin/dist
|
||||
all: client/stillbox/dist
|
||||
go build -o stillbox ${GOFLAGS} ${LDFLAGS} ./cmd/stillbox/
|
||||
go build -o calls ${GOFLAGS} ${LDFLAGS} ./cmd/calls/
|
||||
|
||||
buildpprof:
|
||||
go build -o stillbox-pprof ${GOFLAGS} ${LDFLAGS} -tags pprof ./cmd/stillbox
|
||||
|
||||
client/admin/dist:
|
||||
cd client/admin && npm install && ng build -c production
|
||||
client/stillbox/dist:
|
||||
cd client/stillbox && npm install && ng build -c production
|
||||
|
||||
admin:
|
||||
cd client/admin && npm install && ng build -c production
|
||||
web:
|
||||
cd client/stillbox && npm install && ng build -c production
|
||||
|
||||
clean:
|
||||
rm -rf client/calls/ client/admin/dist/ client/admin/node_modules/
|
||||
rm -rf client/calls/ client/stillbox/dist/ client/stillbox/node_modules/
|
||||
rm -f stillbox calls stillbox-pprof
|
||||
|
||||
generate:
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"embed"
|
||||
)
|
||||
|
||||
const Prefix = "admin/dist/admin/browser"
|
||||
const Prefix = "stillbox/dist/stillbox/browser"
|
||||
|
||||
//go:embed admin/dist/admin/browser
|
||||
//go:embed stillbox/dist/stillbox/browser
|
||||
var Client embed.FS
|
||||
|
|
Loading…
Reference in a new issue