Fix client path

This commit is contained in:
Daniel Ponte 2024-12-16 16:19:41 -05:00
parent 337b8d3f54
commit a29e63eb71
2 changed files with 8 additions and 8 deletions

View file

@ -4,21 +4,21 @@ BUILDDATE!=date '+%Y%m%d'
LDFLAGS=-ldflags="-X '${VPKG}.Version=${VER}' -X '${VPKG}.Built=${BUILDDATE}'" LDFLAGS=-ldflags="-X '${VPKG}.Version=${VER}' -X '${VPKG}.Built=${BUILDDATE}'"
GOFLAGS=-v GOFLAGS=-v
all: client/admin/dist all: client/stillbox/dist
go build -o stillbox ${GOFLAGS} ${LDFLAGS} ./cmd/stillbox/ go build -o stillbox ${GOFLAGS} ${LDFLAGS} ./cmd/stillbox/
go build -o calls ${GOFLAGS} ${LDFLAGS} ./cmd/calls/ go build -o calls ${GOFLAGS} ${LDFLAGS} ./cmd/calls/
buildpprof: buildpprof:
go build -o stillbox-pprof ${GOFLAGS} ${LDFLAGS} -tags pprof ./cmd/stillbox go build -o stillbox-pprof ${GOFLAGS} ${LDFLAGS} -tags pprof ./cmd/stillbox
client/admin/dist: client/stillbox/dist:
cd client/admin && npm install && ng build -c production cd client/stillbox && npm install && ng build -c production
admin: web:
cd client/admin && npm install && ng build -c production cd client/stillbox && npm install && ng build -c production
clean: 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 rm -f stillbox calls stillbox-pprof
generate: generate:

View file

@ -4,7 +4,7 @@ import (
"embed" "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 var Client embed.FS