Skip to content

Commit

Permalink
fix fetch (#3)
Browse files Browse the repository at this point in the history
* replace find latest script with explicit version
* move build to start of makefile so that it is default
  • Loading branch information
hroederld committed Aug 26, 2019
1 parent 301eedf commit 76e9ff5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 4 additions & 4 deletions 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

Expand All @@ -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*
6 changes: 1 addition & 5 deletions 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

0 comments on commit 76e9ff5

Please sign in to comment.