Skip to content

Commit

Permalink
Add buildprocess for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkkul committed Jun 13, 2023
1 parent 56eb2a1 commit 96f0937
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
main: ./cmd/weaviate-server
goarch:
- amd64
- arm64
ldflags:
- -w
- -extldflags "-static"
- -X github.com/weaviate/weaviate/usecases/config.GitHash={{ .Env.GIT_HASH }}

# create a "fat" binary for MacOS
universal_binaries:
- replace: true

14 changes: 14 additions & 0 deletions tools/dev/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
#
# run from weaviate Root

export GIT_HASH=$(git rev-parse --short HEAD)
goreleaser build --clean --snapshot

codesign -f -o runtime --timestamp -s "Developer ID Application: Weaviate B.V. (QUZ8SKLS6R)" dist/weaviate_darwin_all/weaviate

zip dist/weaviate_darwin_all.zip dist/weaviate_darwin_all/weaviate

codesign -f -o runtime --timestamp -s "Developer ID Application: Weaviate B.V. (QUZ8SKLS6R)" dist/weaviate_darwin_all.zip

xcrun notarytool submit dist/weaviate_darwin_all.zip --keychain-profile "AC_PASSWORD_PRIVAT" --wait

0 comments on commit 96f0937

Please sign in to comment.