Don't ship frameworks in repository, instead we download them.
This commit is contained in:
parent
bf409efc46
commit
600f38c94d
6 changed files with 101 additions and 0 deletions
14
script/lib/polite-curl
Executable file
14
script/lib/polite-curl
Executable file
|
@ -0,0 +1,14 @@
|
|||
if [ -t 0 ] ; then # If stdout is a terminal
|
||||
INTERACTIVE=1
|
||||
fi
|
||||
|
||||
polite_curl()
|
||||
{
|
||||
if [ $INTERACTIVE ] ; then
|
||||
CURL_ARGS="--progress-bar"
|
||||
else
|
||||
CURL_ARGS="-fsS"
|
||||
fi
|
||||
|
||||
curl $CURL_ARGS $*
|
||||
}
|
|
@ -4,6 +4,7 @@ set -e
|
|||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
./script/update-frameworks
|
||||
./script/update-node v0.10.9
|
||||
|
||||
gyp --depth . atom.gyp \
|
||||
|
|
21
script/update-frameworks
Executable file
21
script/update-frameworks
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd "$(dirname $0)/.."
|
||||
|
||||
. script/lib/polite-curl
|
||||
|
||||
[ -d frameworks ] || mkdir frameworks
|
||||
cd frameworks
|
||||
|
||||
FRAMEWORKS_URL='https://gh-contractor-zcbenz.s3.amazonaws.com/frameworks'
|
||||
|
||||
trap 'rm *.zip' EXIT
|
||||
|
||||
echo 'Downloading Quincy...'
|
||||
polite_curl "$FRAMEWORKS_URL/Quincy.framework.zip" > Quincy.framework.zip
|
||||
|
||||
echo 'Downloading Sparkle...'
|
||||
polite_curl "$FRAMEWORKS_URL/Sparkle.framework.zip" > Sparkle.framework.zip
|
||||
|
||||
unzip Quincy.framework.zip
|
||||
unzip Sparkle.framework.zip
|
Loading…
Add table
Add a link
Reference in a new issue