Skip to content

Commit 7d6660f

Browse files
committed
fix(ui/Makefile): add ui dirs; change Makefile
1 parent f6ece43 commit 7d6660f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+7536
-22
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
target/
22
**.db
33
logs/
4-
ui
54
node_modules
65
upload-files/
76
demo*

vermeer/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ test/case/
9090

9191
# Downloaded binaries (should be downloaded via scripts/download_binaries.sh) #
9292
######################
93-
tools/supervisord/*/supervisord
93+
tools/supervisord/*/supervisord*
9494
tools/protoc/*/protoc
9595
tools/protoc/*/bin/
9696
tools/protoc/*/include/

vermeer/Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ init: download-binaries
2929
# Download binary dependencies (supervisord, protoc)
3030
download-binaries:
3131
@echo "Downloading binary dependencies..."
32-
@./scripts/download_binaries.sh
32+
@./scripts/download_binaries.sh || (echo "Failed to download binaries" && exit 1)
3333

3434
# Generate assets (vfsdata.go for web UI)
3535
generate-assets:
3636
@echo "Generating assets..."
37-
@cd asset && go generate
37+
@cd asset && go generate || (echo "Failed to generate assets" && exit 1)
3838
@echo "Assets generated successfully!"
3939

4040
# Build vermeer binary
@@ -74,12 +74,12 @@ help:
7474
@echo ""
7575
@echo "Usage:"
7676
@echo " make init - First time setup (download binaries + go mod download)"
77-
@echo " make download-binaries - Download supervisord and protoc binaries"
78-
@echo " make generate-assets - Generate assets_vfsdata.go from web UI"
79-
@echo " make build - Build vermeer for current platform"
80-
@echo " make build-linux-amd64 - Build for Linux AMD64"
81-
@echo " make build-linux-arm64 - Build for Linux ARM64"
82-
@echo " make clean - Remove generated files and binaries"
77+
@echo " make download-binaries - Download supervisord and protoc binaries for your platform"
78+
@echo " make generate-assets - Generate assets_vfsdata.go from web UI (required before build)"
79+
@echo " make build - Build vermeer for current platform (default: local architecture)"
80+
@echo " make build-linux-amd64 - Build for Linux AMD64 (for deployment)"
81+
@echo " make build-linux-arm64 - Build for Linux ARM64 (for ARM servers)"
82+
@echo " make clean - Remove generated files and binaries (keep downloaded tools)"
8383
@echo " make clean-all - Remove everything including downloaded tools"
84-
@echo " make all - Generate assets and build (default)"
84+
@echo " make all - Generate assets and build (default target)"
8585
@echo " make help - Show this help message"

vermeer/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ make
7777
./build.sh arm64
7878
```
7979

80-
The build process will automatically:
81-
1. Download required binary tools (supervisord, protoc)
82-
2. Generate web UI assets
83-
3. Build the vermeer binary
80+
# The script will:
81+
# - Auto-detect your OS and architecture if no parameter is provided
82+
# - Download required tools if not present
83+
# - Generate assets and build the binary
84+
# - Exit with error message if any step fails
8485

8586
### Build Targets
8687

vermeer/README.zh-CN.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ make
7878
```
7979

8080
构建过程会自动:
81-
1. 下载所需的二进制工具(supervisord, protoc)
82-
2. 生成 Web UI 资源文件
83-
3. 构建 vermeer 二进制文件
81+
1. 自动检测操作系统和架构(如果未提供参数)
82+
2. 下载所需的二进制工具(supervisord, protoc)
83+
3. 生成 Web UI 资源文件
84+
4. 构建 vermeer 二进制文件
8485

8586
### 构建目标
8687

vermeer/scripts/download_binaries.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
2323
TOOLS_DIR="$PROJECT_ROOT/tools"
2424

2525
# Versions
26-
SUPERVISORD_VERSION="4.2.5"
26+
SUPERVISORD_VERSION="0.6.9"
2727
PROTOC_VERSION="21.12"
2828

2929
# Colors for output
@@ -167,14 +167,13 @@ main() {
167167

168168
# Download supervisord for different platforms
169169
# MD5 checksums for supervisord v4.2.5
170-
download_supervisord "linux_amd64" "x86_64" "" # Add MD5 if available
171-
download_supervisord "linux_arm64" "aarch64" "" # Add MD5 if available
170+
download_supervisord "linux_amd64" "64-bit" "" # Add MD5 if available
171+
download_supervisord "linux_arm64" "ARM64" "" # Add MD5 if available
172172

173173
# Download protoc for different platforms
174174
# MD5 checksums for protoc v21.12
175175
download_protoc "linux64" "linux-x86_64" "" # Add MD5 if available
176176
download_protoc "osxm1" "osx-aarch_64" "" # Add MD5 if available
177-
download_protoc "win64" "win64" "" # Add MD5 if available
178177

179178
log_info "All binary dependencies downloaded successfully!"
180179
log_info ""
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2011-2019 Twitter, Inc.
4+
Copyright (c) 2011-2019 The Bootstrap Authors
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
THE SOFTWARE.

vermeer/ui/ui/lib/bootstrap-4.3.1-dist/css/bootstrap-grid.min.css

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vermeer/ui/ui/lib/bootstrap-4.3.1-dist/css/bootstrap-grid.min.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vermeer/ui/ui/lib/bootstrap-4.3.1-dist/css/bootstrap-reboot.min.css

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)