feat: cgo free sqlite

This commit is contained in:
2025-03-14 23:24:45 +07:00
parent c1e59e3bb8
commit 1e0f2b7f4a
6 changed files with 80 additions and 17 deletions

View File

@@ -13,7 +13,7 @@ tasks:
cmds:
- go build {{.BUILD_FLAGS}} -o {{.BIN_DIR}}/{{.APP_NAME}}
vars:
BUILD_FLAGS: '{{if eq .PRODUCTION "true"}}-tags "production sqlite_icu" -trimpath -ldflags="-w -s"{{else}}-gcflags=all="-l" -tags "sqlite_icu"{{end}}'
BUILD_FLAGS: '{{if eq .PRODUCTION "true"}}-tags "production" -trimpath -ldflags="-w -s"{{else}}-gcflags=all="-l" {{end}}'
env:
GOOS: darwin
CGO_ENABLED: 1