forked from weaviate/weaviate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |