Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
Remove extraneous 'builds' directory in tarball contents.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenny-evitt committed Sep 11, 2015
1 parent e97278f commit 87f7503
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions script/build-app.sh
Expand Up @@ -47,11 +47,12 @@ DEFAULT_VERSION=`echo $META | cut -d' ' -f3 | tr -d '"'`
BUILDS=builds
RELEASE="$NAME-$VERSION-$OS"
RELEASE_DIR="$BUILDS/$RELEASE"
RELEASE_TARBALL="$BUILDS/${RELEASE}.tar.gz"
RELEASE_TARBALL="${RELEASE}.tar.gz"
RELEASE_ZIP="${RELEASE}.zip"
RELEASE_RSRC="$RELEASE_DIR/$RESOURCES"

rm -rf $RELEASE_DIR $RELEASE_TARBALL $RELEASE_ZIP
rm -rf $RELEASE_DIR "$BUILDS/$RELEASE_TARBALL" "$BUILDS/$RELEASE_ZIP"

#----------------------------------------------------------------------
# Copy Electron installation and app directory into output location
Expand Down Expand Up @@ -107,7 +108,9 @@ fi
#----------------------------------------------------------------------

if [ "$1" == "--tarball" ]; then
tar -zcvf $RELEASE_TARBALL $RELEASE_DIR
pushd $BUILDS
tar -zcvf $RELEASE_TARBALL $RELEASE/*
popd
fi

# Create zip file for Cygwin (Windows) using 7-Zip
Expand Down

0 comments on commit 87f7503

Please sign in to comment.