Initial **release** #1
1 changed files with 14 additions and 6 deletions
|
|
@ -10,21 +10,29 @@ ICON_PATH="$CONFIG_DIR/app-icon.png"
|
|||
|
||||
echo "Checking for micromamba..."
|
||||
if [ ! -d "$MAMBA_DIR" ]; then
|
||||
echo "micromamba not found - installing..."
|
||||
echo "Micromamba is about to be installed."
|
||||
echo "When prompted, press ENTER for all options to accept the default settings:"
|
||||
echo "- Micromamba binary folder"
|
||||
echo "- Initialize shell"
|
||||
echo "- Configure conda-forge"
|
||||
echo "- Prefix location"
|
||||
echo "Using the default installation is required for this script to work correctly."
|
||||
sleep 2.0
|
||||
"${SHELL}" <(curl -L micro.mamba.pm/install.sh)
|
||||
else
|
||||
echo "micromamba already installed."
|
||||
echo "Micromamba already installed."
|
||||
fi
|
||||
|
||||
echo "Creating micromamba environment 'ol' with OptimaLab35..."
|
||||
echo "Creating micromamba environment 'ol'..."
|
||||
eval "$("$MAMBA_DIR"/bin/micromamba shell hook -s bash)"
|
||||
micromamba create -y -n ol pip # First creating the mm env.
|
||||
echo "Installing with OptimaLab35..."
|
||||
micromamba run -n ol pip install OptimaLab35 # Then installing OL35, mm dosnt like to create env with OL35
|
||||
|
||||
echo "Creating config directory..."
|
||||
echo "Creating OptimaLab35 config directory..."
|
||||
mkdir -p "$CONFIG_DIR"
|
||||
|
||||
echo "Downloading icon..."
|
||||
echo "Downloading OptimaLab35 icon..."
|
||||
curl -L "$ICON_URL" -o "$ICON_PATH"
|
||||
|
||||
echo "Creating desktop entry..."
|
||||
|
|
@ -34,7 +42,7 @@ cat > "$DESKTOP_DIR/OptimaLab35.desktop" <<EOL
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=OptimaLab35
|
||||
Exec=bash -c 'eval "\$(\$HOME/micromamba/bin/micromamba shell hook -s bash)"; micromamba activate ol; OptimaLab35'
|
||||
Exec=bash -c 'eval "\$(micromamba shell hook -s bash)"; micromamba activate ol; OptimaLab35'
|
||||
Icon=$ICON_PATH
|
||||
Categories=Graphics;Photography;
|
||||
Terminal=false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue