build: update build command to use directory for main package

This commit is contained in:
hayzamjs
2026-03-18 16:12:57 +01:00
parent f34b2991a7
commit 162f5a3735
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ tmp_dir = "tmp"
[build]
bin = "./tmp/main"
cmd = "go build -o ./tmp/main cmd/sylve/main.go"
cmd = "go build -o ./tmp/main ./cmd/sylve"
delay = 500
exclude_dir = ["assets", "tmp", "vendor", "testdata", "views", "node_modules", "data", "web", "scripts", "utils/testdir", ".vscode", ".idea", "new-web", "bin", "docs/app-docs"]
exclude_unchanged = false
+1 -1
View File
@@ -11,7 +11,7 @@ build: frontend backend
backend:
mkdir -p $(BIN_DIR)
CGO_ENABLED=1 GOOS=freebsd GOARCH=$(ARCH) \
go build -o $(BIN_DIR)/$(BINARY_NAME) cmd/sylve/main.go
go build -o $(BIN_DIR)/$(BINARY_NAME) ./cmd/sylve
frontend:
npm ci --prefix web