Make some tweaks to build scripts

This commit is contained in:
Veronica Berglyd Olsen
2024-04-20 18:02:10 +02:00
parent 885974a84e
commit 621e933f63
2 changed files with 23 additions and 9 deletions
+11 -5
View File
@@ -1,15 +1,21 @@
#! /bin/bash
if [ -z "$1"]; then
ARCH="amd64"
PYTHON="3.11"
else
ARCH="$1"
PYTHON="$1"
fi
if [ $ARCH == "amd64 "]; then
if [ -z "$2"]; then
ARCH="amd64"
else
ARCH="$2"
fi
if [ -z "$3"]; then
CONDA="x86_64"
else
CONDA="$ARCH"
CONDA="$3"
fi
# Use RAM disk if possible
@@ -94,7 +100,7 @@ rm Miniconda3-latest-MacOSX-$CONDA.sh
export PATH="$HOME/miniconda/bin:$PATH"
echo "Creating Conda env ..."
conda create -n novelWriter -c conda-forge python=3.11 --yes
conda create -n novelWriter -c conda-forge python=$PYTHON --yes
source activate novelWriter
echo "Installing dictionaries ..."