Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
2e2e624d
Commit
2e2e624d
authored
Jul 28, 2023
by
Jeffrey Morgan
Browse files
app: use `notarytool` for notarizing
parent
ed832ce3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
scripts/build_darwin.sh
scripts/build_darwin.sh
+8
-5
No files found.
scripts/build_darwin.sh
View file @
2e2e624d
...
@@ -2,17 +2,20 @@
...
@@ -2,17 +2,20 @@
mkdir
-p
dist
mkdir
-p
dist
# build
and sign the
universal binary
# build universal binary
CGO_ENABLED
=
1
GOARCH
=
arm64 go build
-o
dist/ollama_arm64
CGO_ENABLED
=
1
GOARCH
=
arm64 go build
-o
dist/ollama_arm64
CGO_ENABLED
=
1
GOARCH
=
amd64 go build
-o
dist/ollama_amd64
CGO_ENABLED
=
1
GOARCH
=
amd64 go build
-o
dist/ollama_amd64
lipo
-create
-output
dist/ollama dist/ollama_arm64 dist/ollama_amd64
lipo
-create
-output
dist/ollama dist/ollama_arm64 dist/ollama_amd64
rm
dist/ollama_amd64 dist/ollama_arm64
rm
dist/ollama_amd64 dist/ollama_arm64
codesign
--deep
--force
--options
=
runtime
--sign
"
$APPLE_IDENTITY
"
--timestamp
./dist/ollama
codesign
--deep
--force
--options
=
runtime
--sign
"
$APPLE_IDENTITY
"
--timestamp
dist/ollama
xcrun altool
--notarize-app
--username
=
"
$APPLE_ID
"
--password
"
$APPLE_PASSWORD
"
--file
./dist/ollama
# build and sign the mac app
# build and sign the mac app
npm run
--prefix
app make:sign
npm run
--prefix
app make:sign
cp
app/out/make/zip/darwin/universal/Ollama-darwin-universal-
${
VERSION
:-
0
.0.
0
}
.zip dist/Ollama-darwin.zip
cp
app/out/make/zip/darwin/universal/Ollama-darwin-universal-
${
VERSION
:-
0
.0..zip dist/Ollama-darwin.zip
# rename the cli after its been packaged
# sign the binary and rename it
codesign -f --timestamp -s
"
$APPLE_IDENTITY
"
--identifier ai.ollama.ollama --options=runtime dist/ollama
ditto -c -k --keepParent dist/ollama dist/temp.zip
xcrun notarytool submit dist/temp.zip --wait --timeout 10m --apple-id
$APPLE_ID
--password
$APPLE_PASSWORD
--team-id
$APPLE_TEAM_ID
mv dist/ollama dist/ollama-darwin
mv dist/ollama dist/ollama-darwin
rm dist/temp.zip
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment