From 82bd927f3a113a22387fb0f68bef8413416216e7 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 30 Nov 2023 16:58:27 +0530 Subject: [PATCH] Add steps to install the app to desk --- .../uniswap-interface/deploy-uniswap-app.sh | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/stack_orchestrator/data/config/uniswap-interface/deploy-uniswap-app.sh b/stack_orchestrator/data/config/uniswap-interface/deploy-uniswap-app.sh index c0dd2d7f..2ce4d043 100755 --- a/stack_orchestrator/data/config/uniswap-interface/deploy-uniswap-app.sh +++ b/stack_orchestrator/data/config/uniswap-interface/deploy-uniswap-app.sh @@ -97,24 +97,28 @@ rm "${uniswap_desk_dir}/desk.ship" hood "commit %uniswap" dojo "-landscape!make-glob %uniswap /build" +glob_file=$(ls -1 -c zod/.urb/put | head -1) +glob_hash=$($glob_file | sed "s/glob-\([a-z0-9\.]*\).glob/\1/") + +glob_url="http://uniswap-glob-host:3000/${glob_file}" # Curl and wait for the glob to be hosted -# From landscape CI: -# $1: the folder of files to glob -# $2: the location of the docket file -# hash=$(ls -1 -c zod/.urb/put | head -1 | sed "s/glob-\([a-z0-9\.]*\).glob/\1/") -# sed -i "s/glob\-[a-z0-9\.]*glob' *[a-z0-9\.]*\]/glob-$hash.glob' $hash]/g" $2 +# Update the docket file +cat << EOF > "${uniswap_desk_dir}/desk.docket-0" +:~ title+'Uniswap' + info+'Self-hosted uniswap frontend.' + color+0xcd.75df + image+'https://logowik.com/content/uploads/images/uniswap-uni7403.jpg' + base+'uniswap' + glob-http+['http://uniswap-glob-host:3000/${glob_file}' ${glob_hash}] + version+[0 0 1] + website+'https://uniswap.org/' + license+'MIT' +== +EOF -# :~ title+'Uniswap' -# info+'Self-hosted uniswap frontend.' -# color+0xcd.75df -# image+'https://logowik.com/content/uploads/images/uniswap-uni7403.jpg' -# base+'uniswap' -# glob-http+['https://urbit-uniswap-laconic.nyc3.digitaloceanspaces.com/glob-0v3.5in3n.an2ft.c89g2.b6nu6.qek41.glob' 0v3.5in3n.an2ft.c89g2.b6nu6.qek41] -# version+[0 0 1] -# website+'https://uniswap.org/' -# license+'MIT' -# == +# Commit changes and install the app +hood "commit %uniswap" +hood "install our %uniswap" -# |commit %uniswap -# |install our %uniswap +echo "Uniswap app installed"