mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 10:35:57 +03:00
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.
This commit is contained in:
parent
1be6574d28
commit
bf54fc40e2
8
.github/workflows/pre-release.yaml
vendored
8
.github/workflows/pre-release.yaml
vendored
@ -33,8 +33,8 @@ jobs:
|
|||||||
mkdir -p /tmp/ucm/ui
|
mkdir -p /tmp/ucm/ui
|
||||||
UCM=$(stack path | awk '/local-install-root/{print $2}')/bin/unison
|
UCM=$(stack path | awk '/local-install-root/{print $2}')/bin/unison
|
||||||
cp $UCM /tmp/ucm/ucm
|
cp $UCM /tmp/ucm/ucm
|
||||||
wget -O/tmp/ucm.zip https://github.com/unisonweb/codebase-ui/releases/download/latest/ucm.zip
|
wget -O/tmp/unisonLocal.zip https://github.com/unisonweb/codebase-ui/releases/download/latest/unisonLocal.zip
|
||||||
unzip -d /tmp/ucm/ui /tmp/ucm.zip
|
unzip -d /tmp/ucm/ui /tmp/unisonLocal.zip
|
||||||
tar -c -z -f ucm-linux.tar.gz -C /tmp/ucm .
|
tar -c -z -f ucm-linux.tar.gz -C /tmp/ucm .
|
||||||
|
|
||||||
- name: Upload linux artifact
|
- name: Upload linux artifact
|
||||||
@ -72,8 +72,8 @@ jobs:
|
|||||||
mkdir -p /tmp/ucm/ui
|
mkdir -p /tmp/ucm/ui
|
||||||
UCM=$(stack path | awk '/local-install-root/{print $2}')/bin/unison
|
UCM=$(stack path | awk '/local-install-root/{print $2}')/bin/unison
|
||||||
cp $UCM /tmp/ucm/ucm
|
cp $UCM /tmp/ucm/ucm
|
||||||
wget -O/tmp/ucm.zip https://github.com/unisonweb/codebase-ui/releases/download/latest/ucm.zip
|
wget -O/tmp/unisonLocal.zip https://github.com/unisonweb/codebase-ui/releases/download/latest/unisonLocal.zip
|
||||||
unzip -d /tmp/ucm/ui /tmp/ucm.zip
|
unzip -d /tmp/ucm/ui /tmp/unisonLocal.zip
|
||||||
tar -c -z -f ucm-macos.tar.gz -C /tmp/ucm .
|
tar -c -z -f ucm-macos.tar.gz -C /tmp/ucm .
|
||||||
|
|
||||||
- name: Upload macos artifact
|
- name: Upload macos artifact
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
echo "This script downloads the latest codebase UI release"
|
echo "This script downloads the latest Unison Local UI release"
|
||||||
echo "and puts it in the correct spot next to the unison"
|
echo "and puts it in the correct spot next to the unison"
|
||||||
echo "executable built by stack."
|
echo "executable built by stack."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
stack build
|
stack build
|
||||||
curl -L https://github.com/unisonweb/codebase-ui/releases/download/latest/ucm.zip --output ucm.zip
|
curl -L https://github.com/unisonweb/codebase-ui/releases/download/latest/unisonLocal.zip --output unisonLocal.zip
|
||||||
parent_dir="$(dirname -- $(stack exec which unison))"
|
parent_dir="$(dirname -- $(stack exec which unison))"
|
||||||
mkdir -p "$parent_dir/ui"
|
mkdir -p "$parent_dir/ui"
|
||||||
unzip -o ucm.zip -d "$parent_dir/ui"
|
unzip -o unisonLocal.zip -d "$parent_dir/ui"
|
||||||
|
Loading…
Reference in New Issue
Block a user