build app in publish script
This commit is contained in:
parent
304f419429
commit
4dd296e155
1 changed files with 3 additions and 1 deletions
|
@ -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}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue