unison/dev-ui-install.sh
Simon Højberg a2e57861f7 Use unison-local-ui over codebase-ui
Migrate to use the new Unison Local UI repository from
[unison-local-ui](https://github.com/unisonweb/unison-local-ui)
instead of [codebase-ui](https://github.com/unisonweb/codebase-ui).
2022-07-05 16:57:03 -04:00

11 lines
421 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/unison-local-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"