From 76e9ff5bfdfc7e9e3c78f4f14929de46a1a0c687 Mon Sep 17 00:00:00 2001 From: hroederld Date: Mon, 26 Aug 2019 15:04:32 -0700 Subject: [PATCH] fix fetch (#3) * replace find latest script with explicit version * move build to start of makefile so that it is default --- Makefile | 8 ++++---- fetch.sh | 6 +----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 2784cb3..a2b2682 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +build: $(shell find app/ -type f) copyLibrary + rm -f app.zip + cd app && zip ../app.zip -r ./* + package.zip: ./fetch.sh @@ -12,9 +16,5 @@ copyLibrary: package cp package/LaunchDarklyTask.brs app/components/ cp package/LaunchDarklyTask.xml app/components/ -build: $(shell find app/ -type f) copyLibrary - rm -f app.zip - cd app && zip ../app.zip -r ./* - clean: rm -rf package.zip app.zip package app/components/LaunchDarkly* app/source/LaunchDarkly* diff --git a/fetch.sh b/fetch.sh index a1c8544..67684b7 100755 --- a/fetch.sh +++ b/fetch.sh @@ -1,7 +1,3 @@ #!/bin/sh -# script from https://blog.markvincze.com/download-artifacts-from-a-latest-github-release-in-sh-and-powershell/ set -e -LATEST_RELEASE=$(curl -L -s -H 'Accept: application/json' https://github.com/launchdarkly/roku-client-sdk/releases/latest) -LATEST_VERSION=$(echo $LATEST_RELEASE | sed -e 's/.*"tag_name":"\([^"]*\)".*/\1/') -ARTIFACT_URL="https://github.com/account/project/releases/download/$LATEST_VERSION/package.zip" -curl $ARTIFACT_URL -o package.zip +curl -L -o package.zip https://github.com/launchdarkly/roku-client-sdk/releases/download/1.0.0-beta.2/package.zip