fix(install): create server/webui before copying the frontend build

server/webui isn't tracked in git, so on a fresh clone the local build
in install.sh and update.sh fails at the copy step:

  cp: cannot create directory 'server/webui/dist': No such file or directory

Both scripts now run mkdir -p server/webui before the copy. build.sh
already does the equivalent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jackybabes
2026-11-21 14:57:07 +00:00
co-authored by Claude Opus 5.5
parent 22ae88afab
commit b5bf99f5fb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -107,7 +107,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