unison/dev-ui-install.sh
Simon Højberg bf54fc40e2 Match UI release zip file of unisonLocal.zip
The Codebase UI changed its main artifact of ucm.zip to unisonLocal.zip,
make sure we build using the right artifcat.
2021-11-29 10:30:22 -05:00

11 lines
417 B
Bash
Executable File

echo "This script downloads the latest Unison Local UI release"
echo "and puts it in the correct spot next to the unison"
echo "executable built by stack."
echo ""
stack build
curl -L https://github.com/unisonweb/codebase-ui/releases/download/latest/unisonLocal.zip --output unisonLocal.zip
parent_dir="$(dirname -- $(stack exec which unison))"
mkdir -p "$parent_dir/ui"
unzip -o unisonLocal.zip -d "$parent_dir/ui"