mirror of
https://github.com/unisonweb/unison.git
synced 2024-11-11 06:05:12 +03:00
26f8dd37f2
To test, I added a script that downloads the latest UI release and puts it next to the executable.
11 lines
389 B
Bash
Executable File
11 lines
389 B
Bash
Executable File
echo "This script downloads the latest codebase 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/ucm.zip --output ucm.zip
|
|
parent_dir="$(dirname -- $(stack exec which unison))"
|
|
mkdir -p "$parent_dir/ui"
|
|
unzip -o ucm.zip -d "$parent_dir/ui"
|