diff --git a/deployment_scripts/linux/prepare_all.sh b/deployment_scripts/linux/prepare_all.sh new file mode 100644 index 0000000..03dd10c --- /dev/null +++ b/deployment_scripts/linux/prepare_all.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +chmod +x root.sh +pkexec ./root.sh +npm install +npm run build + +cd py +python3 -m venv venv +source venv/bin/activate +python3 -m pip install -r requirements.txt + +ollama pull qwen2-math:1.5b +ollama pull qwen2.5-coder:1.5b +ollama pull phi3.5 + +ollama pull mathstral +ollama pull qwen2.5-coder +ollama pull qwen2.5 + +ollama pull qwen2-math:1.5b +ollama pull starcoder2 +ollama pull llama3.2 + +ollama pull wizard-math +ollama pull starcoder2:7b +ollama pull llama3.1 + +cd .. +chmod +x run.sh \ No newline at end of file diff --git a/deployment_scripts/linux/prepare-free.sh b/deployment_scripts/linux/prepare_free.sh similarity index 100% rename from deployment_scripts/linux/prepare-free.sh rename to deployment_scripts/linux/prepare_free.sh diff --git a/deployment_scripts/linux/prepare-nonfree.sh b/deployment_scripts/linux/prepare_nonfree.sh similarity index 100% rename from deployment_scripts/linux/prepare-nonfree.sh rename to deployment_scripts/linux/prepare_nonfree.sh diff --git a/deployment_scripts/linux/root.sh b/deployment_scripts/linux/root.sh index 7fc9b13..312679d 100644 --- a/deployment_scripts/linux/root.sh +++ b/deployment_scripts/linux/root.sh @@ -1,6 +1,6 @@ #!/bin/bash -apt install npm nodejs python3-full ffmpeg libgtk-3-0t64 libnotify4 libnss3 libxss1 libasound2 build-essential cmake -y +apt install npm nodejs python3-full ffmpeg libgtk-3-0t64 libnotify4 libnss3 libxss1 libasound2t64 build-essential cmake -y if ! ollama; then curl -fsSL https://ollama.com/install.sh | sh fi diff --git a/deployment_scripts/linux/run.sh b/deployment_scripts/linux/run.sh index 1220bae..a4ad3f9 100644 --- a/deployment_scripts/linux/run.sh +++ b/deployment_scripts/linux/run.sh @@ -9,6 +9,7 @@ cd .. npm start & pid_node=$! +sleep 2 npx electron . kill $pid_py diff --git a/deployment_scripts/windows/prepare_all.bat b/deployment_scripts/windows/prepare_all.bat new file mode 100644 index 0000000..e610454 --- /dev/null +++ b/deployment_scripts/windows/prepare_all.bat @@ -0,0 +1,4 @@ +start /b scripts\prepare_py.bat +start /b scripts\prepare_npm.bat +start /b scripts\prepare_ollama_free.bat +start /b scripts\prepare_ollama_nonfree.bat \ No newline at end of file