-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage-linux
More file actions
executable file
·25 lines (19 loc) · 1.04 KB
/
Copy pathpackage-linux
File metadata and controls
executable file
·25 lines (19 loc) · 1.04 KB
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
#!/bin/bash
set -eu
# 64-bit Linux (kernel 3.2+, glibc 2.17+)
# https://doc.rust-lang.org/rustc/platform-support.html#tier-1-with-host-tools
# https://github.com/cross-rs/cross#supported-targets
# See also: pyapp/Cross.toml
CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu
BIN_SUFFIX=""
. ./package-common
wget --continue -O $BUNDLE_DIR/ollama-linux.tgz https://github.com/ollama/ollama/releases/download/v0.12.1/ollama-linux-amd64.tgz
mkdir -p $BUNDLE/services/ollama
tar -C $BUNDLE/services/ollama -xzvf $BUNDLE_DIR/ollama-linux.tgz
wget --continue -O $BUNDLE_DIR/qdrant-linux-v1.17.1.tar.gz https://github.com/qdrant/qdrant/releases/download/v1.17.1/qdrant-x86_64-unknown-linux-musl.tar.gz
mkdir -p $BUNDLE/services/qdrant
tar -C $BUNDLE/services/qdrant -xzvf $BUNDLE_DIR/qdrant-linux-v1.17.1.tar.gz
cp start.linux $BUNDLE/start
cp uninstall.linux $BUNDLE/uninstall
# https://docs.github.com/en/actions/reference/workflows-and-actions/variables#default-environment-variables
[ -z "${GITHUB_ACTIONS-}" ] && (cd $BUNDLE_DIR; zip -r $BUNDLE_NAME $BUNDLE_NAME)