Skip to content

Commit

Permalink
fixed: binary builds for linux and mac os
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnR committed May 29, 2020
1 parent 0670510 commit 484ec7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ deploy:
api_key:
secure: adeL+UGFBd5kDqN+7zN8j55ngskdM+KtSt58UWNajscKpc8D9Sqj7cPKECpIbhbAqaERZV6fcfrRlFSHW5BGfeZjPuU++SlWrmVewycaehnVbBnXoMHtBfTL9KUc5uOHlMSxwyd+FtS5N00DrNsR2coPA8b3Zi4DOYM8PVpQ6LU=
file_glob: true
file:
file:
../enketo-validate-binaries/*.zip
skip_cleanup: true
on:
tags: true
repo: enketo/enketo-validate
branch: master
branch: fix/binary-builds-62
12 changes: 6 additions & 6 deletions build-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ echo "Building binaries for ${OS}..."
TARGET_BASE="../enketo-validate-binaries"
TARGET_OS="$TARGET_BASE/${OS}"
FILENAME="validate"
NODE_VERSION="8"
NODE_VERSION="12"

# Create the binary
pkg validate --targets node${NODE_VERSION}-${OS}-x64 --output validate-${OS}
# Create the binary
npx pkg validate --targets node${NODE_VERSION}-${OS}-x64 --output validate-${OS}
mkdir -p ${TARGET_OS}
mv ./validate-${OS} ${TARGET_OS}/${FILENAME}

# Copy the compiled libxmljs-mt files:
mkdir -p ${TARGET_OS}/node_modules/libxmljs-mt/build/Release
cp -f node_modules/libxmljs-mt/build/Release/*.node ${TARGET_OS}/node_modules/libxmljs-mt/build/Release/
mkdir -p ${TARGET_OS}/node_modules/node1-libxmljsmt/build/Release
cp -f node_modules/node1-libxmljsmt/build/Release/*.node ${TARGET_OS}/node_modules/node1-libxmljsmt/build/Release/

# Copy the compiled libxslt files:
mkdir -p ${TARGET_OS}/node_modules/libxslt/build/Release
Expand All @@ -37,4 +37,4 @@ cd ${TARGET_BASE}
zip -r9 ${OS}.zip ${OS}

# Test (a valid form, so it exits with 0)
./${OS}/${FILENAME} ../enketo-validate/test/xform/model-only.xml
./${OS}/${FILENAME} ../enketo-validate/test/xform/model-only.xml

0 comments on commit 484ec7e

Please sign in to comment.