Commit 1d80f3ad authored by Boston, Reece's avatar Boston, Reece Committed by Walsh, Michael
Browse files

Add snapred

parent 573a0373
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
%global srcname nsd-app-wrap

Name:           nsd-app-wrap
Version:        1.39
Version:        1.40
Release:        1%{?dist}
Summary:        Wrapper scripts to launch python applications installed via anaconda
Vendor:         Peter F. Peterson
@@ -44,6 +44,7 @@ install -m 755 quicknxs3 %{buildroot}%{_bindir}/
install -m 755 refred %{buildroot}%{_bindir}/
install -m 755 jupyter %{buildroot}%{_bindir}/
install -m 755 shiver %{buildroot}%{_bindir}/
install -m 755 snapred %{buildroot}%{+bindir}/
# put icons in the right place
mkdir -p %{buildroot}/%{_datadir}/pixmaps/
install -m 644 pyrs.png %{buildroot}/%{_datadir}/pixmaps/
@@ -68,6 +69,9 @@ install -m 644 jupyter.local.desktop %{buildroot}%{_datadir}/applications/
%license LICENSE

%changelog
* Mon Apr 17 2023 Reece Boston
- Add snapred

* Mon Apr 17 2023 Jose Borreguero
- Add support for v4 environment of refred

snapred

0 → 100644
+25 −0
Original line number Diff line number Diff line
#!/bin/bash

# select the environment to use
# current default is system version
if [ -n "$1" ]; then
  if [ "$1" == "--dev" ]; then
    CONDA_ENVIRON=snapred-dev
    shift  # drop this argument
  elif [ "$1" == "--qa" ]; then
    CONDA_ENVIRON=snapred-qa
    shift  # drop this argument
  fi
fi

if [ -v CONDA_ENVIRON ];
then
    # import library to do the real work
    source "$(dirname $(realpath "$0"))/nsd-app-wrap.sh"

    # activate the environment - will be deactivated on exit
    activate_conda_environment "${CONDA_ENVIRON}"
fi

# start the application
snapred