diff --git a/build.sh b/build.sh index 0184d37..a7b2c88 100755 --- a/build.sh +++ b/build.sh @@ -47,8 +47,13 @@ mkdir -p debian/usr/lib/nw.js trap "clean_exit" 2 # Download binary -echo "Downloading and unpacking $URL" -wget -q -O- $URL | tar -xvz --strip 1 -C debian/usr/lib/nw.js +if [[ $URL == http*://* ]] ; then + 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" dpkg-deb -b debian "out/$FILENAME"