Skip to content

Commit

Permalink
scripts/make-release-distribution: Ship both versions of the dvid con…
Browse files Browse the repository at this point in the history
…sole, leave the old version active by default
  • Loading branch information
stuarteberg committed Jun 5, 2020
1 parent 2fd16cb commit 442344b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions scripts/make-release-distribution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,21 @@ DVID_DISTRO_ENV=$(conda info --base)/envs/dvid-distro

# Cleanup from the previous distro env, if it exists.
if [ -d ${DVID_DISTRO_ENV} ]; then

conda remove -y -n dvid-distro --all
fi

# Create the new distro environment and install dvid to it
# Create the new distro environment and install dvid to it
conda create -y -n dvid-distro dvid

# Install both versions of the dvid-web-console (old and new)
conda install -y -n dvid-distro dvid-web-console=3
cp -R ${DVID_DISTRO_ENV}/http/dvid-web-console ${DVID_DISTRO_ENV}/http/dvid-web-console-3

# ...leave the old one active by default.
conda install -y -n dvid-distro dvid-web-console=2.1.6
cp -R ${DVID_DISTRO_ENV}/http/dvid-web-console ${DVID_DISTRO_ENV}/http/dvid-web-console-2

cp ${THIS_SCRIPT_DIR}/distro-files/* ${DVID_DISTRO_ENV}

# Make a bash array to capture the version of the dvid conda package
Expand All @@ -43,7 +51,7 @@ rm -f ${TARBALL_NAME}

mv dvid-distro ${DIST_NAME}

echo "Creating ${TARBALL_NAME} ..."
echo "Creating ${TARBALL_NAME} ..."

tar -cjf ${TARBALL_NAME} ${DIST_NAME}

Expand Down

0 comments on commit 442344b

Please sign in to comment.