mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
Align versions for local builds (#9635)
Darwin was using a different pattern for the version string than linux or windows.
This commit is contained in:
parent
7bf793a600
commit
2d2247e59e
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ usage() {
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
export VERSION=${VERSION:-$(git describe --tags --dirty)}
|
export VERSION=${VERSION:-$(git describe --tags --first-parent --abbrev=7 --long --dirty --always | sed -e "s/^v//g")}
|
||||||
export GOFLAGS="'-ldflags=-w -s \"-X=github.com/ollama/ollama/version.Version=${VERSION#v}\" \"-X=github.com/ollama/ollama/server.mode=release\"'"
|
export GOFLAGS="'-ldflags=-w -s \"-X=github.com/ollama/ollama/version.Version=${VERSION#v}\" \"-X=github.com/ollama/ollama/server.mode=release\"'"
|
||||||
export CGO_CPPFLAGS='-mmacosx-version-min=11.3'
|
export CGO_CPPFLAGS='-mmacosx-version-min=11.3'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue