mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
fix: build ldflags
This commit is contained in:
parent
f0dafa79f2
commit
9413978697
6 changed files with 6 additions and 6 deletions
|
@ -32,5 +32,5 @@ Before building the backend, the app should be built first because the backend w
|
|||
Please execute the following command in the project root directory.
|
||||
|
||||
```shell
|
||||
go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/server/settings.buildTime=$(date +%s)'" -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
|
||||
```
|
||||
|
|
|
@ -31,5 +31,5 @@ pnpm build
|
|||
请在项目的根目录执行以下命令。
|
||||
|
||||
```shell
|
||||
go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/server/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 dist/nginx-ui -v main.go
|
||||
```
|
||||
|
|
|
@ -31,5 +31,5 @@ pnpm build
|
|||
請在專案的根資料夾執行以下命令。
|
||||
|
||||
```shell
|
||||
go build -tags=jsoniter -ldflags "$LD_FLAGS -X 'github.com/0xJacky/Nginx-UI/server/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 dist/nginx-ui -v main.go
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue