Merge pull request #446 from jackybabes/fix/install-webui-mkdir

fix(install): create server/webui before copying the frontend build
This commit is contained in:
BaaRai
2026-11-21 19:14:02 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ JSON
if command -v npm >/dev/null 2>&1; then
info "building frontend static assets..."
( cd web && npm ci --ignore-scripts && npm run build:static )
rm -rf server/webui/dist && cp -r web/out server/webui/dist
rm -rf server/webui/dist && mkdir -p server/webui && cp -r web/out server/webui/dist
info "compiling embedded single binary..."
CGO_ENABLED=0 go build -tags embedui -trimpath -o artex ./cmd/artex
else
+1 -1
View File
@@ -57,7 +57,7 @@ update_local(){
if command -v npm >/dev/null 2>&1; then
info "Rebuilding frontend static assets…"
( cd web && npm ci --ignore-scripts && npm run build:static )
rm -rf server/webui/dist && cp -r web/out server/webui/dist
rm -rf server/webui/dist && mkdir -p server/webui && cp -r web/out server/webui/dist
info "Recompiling the embedded single binary…"
CGO_ENABLED=0 go build -tags embedui -trimpath -o artex ./cmd/artex
else