Skip to content

Commit

Permalink
ci, feat: add fullsrc.zip release (#250)
Browse files Browse the repository at this point in the history
* ci, feat: add fullsrc.zip release

* ci, refactor: zip all source files

* ci, fixbug: fix bin root dir
  • Loading branch information
ngot authored and xicilion committed Jun 18, 2017
1 parent f65738c commit 26e2f98
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .travis/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ if [[ $TRAVIS_OS_NAME == 'linux' ]]; then # linux
cp ${XZ_FILE} ${TRAVIS_TAG}/fibjs-${TRAVIS_TAG}-linux-${TARGET_ARCH}.xz
cp ${GZ_FILE} ${TRAVIS_TAG}/fibjs-${TRAVIS_TAG}-linux-${TARGET_ARCH}.tar.gz

if [[ $TARGET_ARCH == 'x64' ]]; then
echo "zip fullsrc..."
rm -rf .git
sh build clean
zip -r ./${TRAVIS_TAG}/fullsrc.zip ./
fi

else # darwin
DIST_FILE=bin/Darwin_${ARCH}_release

Expand Down
7 changes: 6 additions & 1 deletion fibjs/build
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,16 @@ fi

FIBJS_PATH=`pwd`
OUT_PATH=${FIBJS_PATH}/../out
BIN_ROOT=${FIBJS_PATH}/../bin
BIN_PATH=${FIBJS_PATH}/../bin/${TARGET_OS}_${TARGET_ARCH}_${BUILD_TYPE}

if [ ${BUILD_TYPE} = 'clean' ]; then
if [ -e "${OUT_PATH}" ]; then
rm -rf ${OUT_PATH}/${TARGET_OS}_*
rm -rf ${OUT_PATH}
fi

if [ -e "${BIN_ROOT}" ]; then
rm -rf ${BIN_ROOT}
fi

exit 0
Expand Down

0 comments on commit 26e2f98

Please sign in to comment.