Commit 4dd296e1 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

build app in publish script

parent 304f4194
...@@ -12,13 +12,15 @@ ARCH=$(go env GOARCH) ...@@ -12,13 +12,15 @@ ARCH=$(go env GOARCH)
go build . go build .
npm --prefix app run make:sign
# Create a new tag if it doesn't exist. # Create a new tag if it doesn't exist.
if ! git rev-parse v$VERSION >/dev/null 2>&1; then if ! git rev-parse v$VERSION >/dev/null 2>&1; then
git tag v$VERSION git tag v$VERSION
git push origin v$VERSION git push origin v$VERSION
fi fi
mkdir dist mkdir -p dist
cp app/out/make/zip/${OS}/${ARCH}/Ollama-${OS}-${ARCH}-${VERSION}.zip dist/Ollama-${OS}-${ARCH}.zip cp app/out/make/zip/${OS}/${ARCH}/Ollama-${OS}-${ARCH}-${VERSION}.zip dist/Ollama-${OS}-${ARCH}.zip
cp ./ollama dist/ollama-${OS}-${ARCH} cp ./ollama dist/ollama-${OS}-${ARCH}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment