From bf54fc40e263932a52a6b6eaeef01bf221371c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8jberg?= Date: Mon, 29 Nov 2021 10:30:22 -0500 Subject: [PATCH] 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. --- .github/workflows/pre-release.yaml | 8 ++++---- dev-ui-install.sh | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index e0884fe59..f6f9d808f 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -33,8 +33,8 @@ jobs: mkdir -p /tmp/ucm/ui UCM=$(stack path | awk '/local-install-root/{print $2}')/bin/unison cp $UCM /tmp/ucm/ucm - wget -O/tmp/ucm.zip https://github.com/unisonweb/codebase-ui/releases/download/latest/ucm.zip - unzip -d /tmp/ucm/ui /tmp/ucm.zip + wget -O/tmp/unisonLocal.zip https://github.com/unisonweb/codebase-ui/releases/download/latest/unisonLocal.zip + unzip -d /tmp/ucm/ui /tmp/unisonLocal.zip tar -c -z -f ucm-linux.tar.gz -C /tmp/ucm . - name: Upload linux artifact @@ -72,8 +72,8 @@ jobs: mkdir -p /tmp/ucm/ui UCM=$(stack path | awk '/local-install-root/{print $2}')/bin/unison cp $UCM /tmp/ucm/ucm - wget -O/tmp/ucm.zip https://github.com/unisonweb/codebase-ui/releases/download/latest/ucm.zip - unzip -d /tmp/ucm/ui /tmp/ucm.zip + wget -O/tmp/unisonLocal.zip https://github.com/unisonweb/codebase-ui/releases/download/latest/unisonLocal.zip + unzip -d /tmp/ucm/ui /tmp/unisonLocal.zip tar -c -z -f ucm-macos.tar.gz -C /tmp/ucm . - name: Upload macos artifact diff --git a/dev-ui-install.sh b/dev-ui-install.sh index e9aa6203b..12417a706 100755 --- a/dev-ui-install.sh +++ b/dev-ui-install.sh @@ -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 "executable built by stack." echo "" 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))" mkdir -p "$parent_dir/ui" -unzip -o ucm.zip -d "$parent_dir/ui" +unzip -o unisonLocal.zip -d "$parent_dir/ui"