mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
Don't ship frameworks in repository, instead we download them.
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user