fix: update bundled web-ui script for newer Angular CLI

- Remove deprecated --build-optimizer flag
- Update copy path from dist/ to dist/browser/ for new Angular build output

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
YueGuobin 2026-04-21 00:39:08 +08:00
parent f07d21c511
commit 85b8b04d72
No known key found for this signature in database

View File

@ -92,10 +92,9 @@ cd "$REPO_DIR"
yarn install
# FIXME: remove --build-optimizer=false
yarn ng build --source-map=false --build-optimizer=false --configuration=production --base-href /static/web-ui/
yarn ng build --source-map=false --configuration=production --base-href /static/web-ui/
cp -R $REPO_DIR/dist/* "$GNS3SERVER_DIR/gns3server/static/web-ui/"
cp -R $REPO_DIR/dist/browser/* "$GNS3SERVER_DIR/gns3server/static/web-ui/"
cd "$GNS3SERVER_DIR"
git add gns3server/static/web-ui/*