-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
46 lines (39 loc) · 1.7 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# use just.systems variable for the ollama version
ollama_version := "v0.3.2"
# release_version := $(shell jq -r '.tauri.version' tauri.conf.json)
release_version := `cat src-tauri/tauri.conf.json | jq -r '.package.version'`
tauri:
npm run tauri dev
# This is called from github/workflows, if you change this name, change that file too
install_ollama_linux:
echo "Installing ollama on Linux"
# wget https://github.com/jmorganca/ollama/releases/download/v0.1.20/ollama-darwin
wget https://github.com/ollama/ollama/releases/download/{{ollama_version}}/ollama-linux-amd64
chmod +x ollama-linux-amd64
# Tauri needs this specific name
mv ollama-linux-amd64 src-tauri/ollama-x86_64-unknown-linux-gnu
install_ollama_macos:
echo "Installing ollama on Mac"
wget https://github.com/jmorganca/ollama/releases/download/{{ollama_version}}/ollama-darwin
chmod +x ollama-darwin
# Tauri needs this specific name
mv ollama-darwin src-tauri/ollama-aarch64-apple-darwin
install_ollama_windows:
echo "Installing ollama on Windows"
curl -L -O -o . "https://github.com/ollama/ollama/releases/download/{{ollama_version}}/ollama-windows-amd64.zip"
unzip ollama-windows-amd64.zip
# Tauri needs this specific name
mv ollama.exe src-tauri/ollama-x86_64-pc-windows-msvc.exe
# mv all the *.dll files too, they can keep the same name
mv *.dll src-tauri
# Release using the release branch and a git tag with the same version as in tauri.conf.json
release:
echo "Releasing {{release_version}}"
git checkout release
git pull
git merge master
git push
# Tag for versions need to start with v
git tag -a v{{release_version}} -m "Release v{{release_version}}"
git push origin v{{release_version}}
git checkout master