mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 00:07:07 +00:00
only build metal for darwin,arm target
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
mkdir -p dist
|
||||
|
||||
# build universal binary
|
||||
CGO_ENABLED=1 GOARCH=arm64 go build -o dist/ollama_arm64
|
||||
CGO_ENABLED=1 GOARCH=amd64 go build -o dist/ollama_amd64
|
||||
lipo -create -output dist/ollama dist/ollama_arm64 dist/ollama_amd64
|
||||
rm dist/ollama_amd64 dist/ollama_arm64
|
||||
CGO_ENABLED=1 GOARCH=arm64 go build -o dist/ollama-darwin-arm64
|
||||
CGO_ENABLED=1 GOARCH=amd64 go build -o dist/ollama-darwin-amd64
|
||||
lipo -create -output dist/ollama dist/ollama-darwin-arm64 dist/ollama-darwin-amd64
|
||||
rm dist/ollama-darwin-amd64 dist/ollama-darwin-arm64
|
||||
codesign --deep --force --options=runtime --sign "$APPLE_IDENTITY" --timestamp dist/ollama
|
||||
|
||||
# build and sign the mac app
|
||||
|
||||
Reference in New Issue
Block a user