瀏覽代碼

chore(docs): update backend build command

Jacky 1 年之前
父節點
當前提交
d4fbeef498
共有 7 個文件被更改,包括 7 次插入7 次删除
  1. 1 1
      README-es.md
  2. 1 1
      README-vi_VN.md
  3. 1 1
      README-zh_CN.md
  4. 1 1
      README-zh_TW.md
  5. 1 1
      README.md
  6. 1 1
      docs/zh_CN/guide/build.md
  7. 1 1
      docs/zh_TW/guide/build.md

+ 1 - 1
README-es.md

@@ -235,7 +235,7 @@ pnpm build
 Primero compile la interfaz y luego ejecute el siguiente comando en el directorio raíz del proyecto.
 
 ```shell
-go build -o nginx-ui -v main.go
+go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go
 ```
 
 ## Script para Linux

+ 1 - 1
README-vi_VN.md

@@ -298,7 +298,7 @@ pnpm build
 Vui lòng build Frontend trước, sau đó thực hiện lệnh sau trong thư mục gốc của dự án.
 
 ```shell
-go build -o nginx-ui -v main.go
+go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go
 ```
 
 ## Tập lệnh cho Linux

+ 1 - 1
README-zh_CN.md

@@ -229,7 +229,7 @@ pnpm build
 请先完成前端编译,再回到项目的根目录执行以下命令。
 
 ```shell
-go build -o nginx-ui -v main.go
+go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go
 ```
 
 ## Linux 安装脚本

+ 1 - 1
README-zh_TW.md

@@ -234,7 +234,7 @@ pnpm build
 請先完成前端編譯,再回到專案的根目錄執行以下命令。
 
 ```shell
-go build -o nginx-ui -v main.go
+go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go
 ```
 
 ## Linux 安裝指令

+ 1 - 1
README.md

@@ -295,7 +295,7 @@ pnpm build
 Please build the app first, and then execute the following command in the project root directory.
 
 ```shell
-go build -o nginx-ui -v main.go
+go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go
 ```
 
 ## Script for Linux

+ 1 - 1
docs/zh_CN/guide/build.md

@@ -31,5 +31,5 @@ pnpm build
 请在项目的根目录执行以下命令。
 
 ```shell
-go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o dist/nginx-ui -v main.go
+go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go
 ```

+ 1 - 1
docs/zh_TW/guide/build.md

@@ -31,5 +31,5 @@ pnpm build
 請在專案的根資料夾執行以下命令。
 
 ```shell
-go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o dist/nginx-ui -v main.go
+go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/settings.buildTime=$(date +%s)'" -o nginx-ui -v main.go
 ```