Skip to content

Commit

Permalink
Renamed ollama-{darwin,linux} to just ollama on both systems
Browse files Browse the repository at this point in the history
  • Loading branch information
tachyonicbytes committed Jan 31, 2024
1 parent 8f2034b commit f45cfa2
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 22 deletions.
5 changes: 1 addition & 4 deletions examples/tauri-postgres/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,10 +531,7 @@ fn main() {
let mut envs: HashMap<String, String> = HashMap::new();
envs.insert("OLLAMA_HOST".to_string(), host);

#[cfg(target_os = "macos")]
let ollama_name = "ollama-darwin";
#[cfg(target_os = "linux")]
let ollama_name = "ollama-linux";
let ollama_name = "ollama";

let (mut rx, mut _child) = Command::new_sidecar(ollama_name)
.expect(format!("failed to create `{}` binary command", ollama_name).as_str())
Expand Down
4 changes: 2 additions & 2 deletions examples/tauri-postgres/src-tauri/tauri.linux.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"all": false,
"shell":{
"scope": [
{ "name": "./ollama-linux", "sidecar": true }
{ "name": "./ollama", "sidecar": true }
],
"sidecar": true
}
},
"bundle": {
"externalBin": [
"./ollama-linux"
"./ollama"
],
"identifier": "electric-tauri-postgres",
"resources": ["./libonnxruntime.so", "./pgdir/*"]
Expand Down
4 changes: 2 additions & 2 deletions examples/tauri-postgres/src-tauri/tauri.macos.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"all": false,
"shell":{
"scope": [
{ "name": "./ollama-darwin", "sidecar": true }
{ "name": "./ollama", "sidecar": true }
],
"sidecar": true
}
},
"bundle": {
"externalBin": [
"./ollama-darwin"
"./ollama"
],
"identifier": "electric-tauri-postgres",
"macOS": {
Expand Down
2 changes: 1 addition & 1 deletion examples/tauri-postgres/utils-darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ install_ollama() {
chmod +x ollama-darwin

# Tauri needs this specific name
mv ollama-darwin src-tauri/ollama-darwin-aarch64-apple-darwin
mv ollama-darwin src-tauri/ollama-aarch64-apple-darwin
}

# Install postgres
Expand Down
2 changes: 1 addition & 1 deletion examples/tauri-postgres/utils-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ install_ollama() {
chmod +x ollama-linux-amd64

# Tauri needs this specific name
mv ollama-linux-amd64 src-tauri/ollama-linux-x86_64-unknown-linux-gnu
mv ollama-linux-amd64 src-tauri/ollama-x86_64-unknown-linux-gnu
}

# Install postgres
Expand Down
88 changes: 76 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f45cfa2

Please sign in to comment.