chore: release binary front assets with cdn

This commit is contained in:
duorameng
2026-04-24 09:26:54 +08:00
parent d460266c67
commit 1e37259c98
4 changed files with 42 additions and 3 deletions
+10 -1
View File
@@ -28,7 +28,16 @@ build:
CGO_ENABLED=0 $(GOBUILD) $(LDFLAGS) -o $(BINARY) main.go
# Build release version (Frontend + Backend with embedded assets)
release: build-web
release:
cd web && npm ci && npm run build
@mkdir -p bin
rm -rf internal/static/dist
cp -r web/dist internal/static/dist
CGO_ENABLED=0 $(GOBUILD) $(LDFLAGS) $(TAGS_WEB) -o $(BINARY) main.go
# Build release version (Frontend + Backend with embedded assets)
release-binary:
cd web && npm ci && VITE_RELEASE_OPTIMIZE=true npm run build
@mkdir -p bin
rm -rf internal/static/dist
cp -r web/dist internal/static/dist