@@ -14,13 +14,7 @@ DEEPSTREAM_PACKAGE=${PACKAGE_DIR}/deepstream.io
1414GIT_BRANCH=$( git rev-parse --abbrev-ref HEAD )
1515CREATE_DISTROS=false
1616
17- NODE_SOURCE=" nexe_node/node/$NODE_VERSION_WITHOUT_V /node-v$NODE_VERSION_WITHOUT_V "
18-
19- EXTENSION=" "
20- if [[ ${OS} = " win32" ]]; then
21- EXTENSION=" .exe"
22- fi
23- EXECUTABLE_NAME=" build/deepstream$EXTENSION "
17+ EXECUTABLE_NAME=" build/deepstream"
2418
2519# Needed even for void builds for travis deploy to pass
2620mkdir -p build
@@ -31,17 +25,8 @@ if ! [[ ${NODE_VERSION_WITHOUT_V} == ${LTS_VERSION}* ]]; then
3125fi
3226
3327if [[ -z $1 ]]; then
34- if ! [[ ${TRAVIS_BRANCH} = ' master ' ]] && ! [[ ${APPVEYOR_REPO_BRANCH} = ' master ' ]] && ! [[ ${ GIT_BRANCH} = ' master' ]]; then
28+ if ! [[ ${GIT_BRANCH} = ' master' ]]; then
3529 echo " Running on branch ${GIT_BRANCH} "
36- if [[ -z ${TRAVIS_TAG} ]] && [[ -z ${APPVEYOR_REPO_TAG} ]]; then
37- echo " Only runs on tags or master"
38- exit
39- elif [[ ${APPVEYOR_REPO_TAG} = false ]]; then
40- echo " On appveyor, not a tag or master"
41- exit
42- else
43- echo " Running on tag $TRAVIS_TAG $APPVEYOR_REPO_TAG "
44- fi
4530 else
4631 echo " Running on master"
4732 fi
@@ -72,12 +57,6 @@ function compile {
7257 echo " Generating meta.json"
7358 node scripts/details.js META
7459
75- # Nexe Patches
76- echo " Nexe Patches for Browserify, copying stub versions of optional installs since they aern't bundled anyway"
77-
78- echo " Stubbing xml2js for needle"
79- mkdir -p node_modules/xml2js && echo " throw new Error()" >> node_modules/xml2js/index.js
80-
8160 # Creating package structure
8261 rm -rf build/${PACKAGE_VERSION}
8362 mkdir -p ${DEEPSTREAM_PACKAGE}
@@ -117,7 +96,7 @@ function compile {
11796 cd -
11897
11998 echo " Creating '$EXECUTABLE_NAME ', this will take a while..."
120- NODE_VERSION_WITHOUT_V =${NODE_VERSION_WITHOUT_V} EXECUTABLE_NAME=${EXECUTABLE_NAME} node scripts/nexe .js > /dev/null &
99+ LTS =${LTS_VERSION} OS= ${OS} EXECUTABLE_NAME=${EXECUTABLE_NAME} node scripts/pkg .js
121100
122101 PROC_ID=$!
123102 SECONDS=0;
@@ -129,9 +108,9 @@ function compile {
129108 echo " "
130109
131110 if wait ${pid} ; then
132- echo -e " \tNexe Build Succeeded"
111+ echo -e " \tPkg Build Succeeded"
133112 else
134- echo -e " \tNexe Build Failed"
113+ echo -e " \tPkg Build Failed"
135114 exit 1
136115 fi
137116
0 commit comments