Permalink
Browse files

Get distributions from devmate

  • Loading branch information...
nvh committed Aug 2, 2016
1 parent bb2ad29 commit fd32c4ce570b1a89fc66ef63629963b7815c7a30
Showing with 9 additions and 6 deletions.
  1. +9 −6 scripts/dist.sh
View
@@ -1,7 +1,8 @@
#!/bin/bash
+DEVMATE_FEED="https://updates.devmate.com/co.motif.framer.generator.xml"
-GENERATOR_HOST="http://framergenerator-update.s3-website-us-east-1.amazonaws.com"
-GENERATOR_LATEST=$GENERATOR_HOST/`curl -s $GENERATOR_HOST/latest.txt`
+# GENERATOR_HOST="http://framergenerator-update.s3-website-us-east-1.amazonaws.com"
+# GENERATOR_LATEST=$GENERATOR_HOST/`curl -s $GENERATOR_HOST/latest.txt`
# Clean up previous builds
rm -f build/Framer.zip
@@ -18,15 +19,17 @@ cp build/framer.js.map build/Framer/Project/framer/framer.js.map
# Copy over extra images
IMAGES_DIR=build/Framer/Project/framer/images
-mkdir -p "$IMAGES_DIR"
+mkdir -p "$IMAGES_DIR"
cp -R extras/cursor-images/* "$IMAGES_DIR"
cp -R extras/preloader-images/* "$IMAGES_DIR"
# Download the latest generator
cd build/Framer
-curl "${GENERATOR_LATEST// /%20}" -o "generator.tgz"
-tar zxf "./generator.tgz"
-rm "./generator.tgz"
+curl --silent --location $DEVMATE_FEED --output devmate.xml
+xmllint --xpath "string(//item[1]/enclosure/@url)" devmate.xml | xargs curl --location --output generator.zip
+unzip "./generator.zip"
+rm "./devmate.xml"
+rm "./generator.zip"
cd -
# Clean up and zip the result

0 comments on commit fd32c4c

Please sign in to comment.