Detect when URL is local and skip downloading
This commit is contained in:
parent
566fcdc4f3
commit
2858490a1c
9
build.sh
9
build.sh
@ -47,8 +47,13 @@ mkdir -p debian/usr/lib/nw.js
|
|||||||
trap "clean_exit" 2
|
trap "clean_exit" 2
|
||||||
|
|
||||||
# Download binary
|
# Download binary
|
||||||
echo "Downloading and unpacking $URL"
|
if [[ $URL == http*://* ]] ; then
|
||||||
wget -q -O- $URL | tar -xvz --strip 1 -C debian/usr/lib/nw.js
|
echo "Downloading and unpacking $URL"
|
||||||
|
wget -q -O- $URL | tar -xvz --strip 1 -C debian/usr/lib/nw.js
|
||||||
|
else
|
||||||
|
echo "Unpacking local file $URL"
|
||||||
|
tar -xvz --strip 1 -C debian/usr/lib/nw.js -f $URL
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Packaging deb file"
|
echo "Packaging deb file"
|
||||||
dpkg-deb -b debian "out/$FILENAME"
|
dpkg-deb -b debian "out/$FILENAME"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user