mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 23:04:29 +00:00
2543413017
* Build node pre-gyp for linux * Add Jenkisfile * Fix core package names * Fix Jenkinsfile errors * To revert: only build using 4.4.7 * Do not download on linux * Fix wrong argument * Fix archiving linux artifacts * Try to fix * Revert "Try to fix" This reverts commit 8bcd1d0ffb539b9f2881ce8e0396681b55caf69e. * Fix moving the gyp binaries * Update version * Revert "To revert: only build using 4.4.7" This reverts commit b829c0e0d27b1baed50c3af436731c5014de290f. * Bump version in dependencies * Publish binaries * Use correct version * Remove unneded quote * Fix publish
35 lines
784 B
Bash
Executable File
35 lines
784 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# we should always set proper ownership before exiting, otherwise
|
|
# the created packages will have root:root ownership and we'll be unable
|
|
# to delete them from our host.
|
|
trap 'chown -R --reference /inside/build-package /out/' EXIT
|
|
|
|
. $NVM_DIR/nvm.sh
|
|
|
|
REALM_CORE_VERSION=$(echo ${REALM_CORE_VERSION} | sed 's/-\([^g]\)/_\1/g')
|
|
|
|
yum install -y \
|
|
realm-devel-${REALM_CORE_VERSION} \
|
|
realm-node-devel-${REALM_CORE_VERSION}
|
|
|
|
export NPM_CONFIG_UNSAFE_PERM=true # because we're running as root
|
|
|
|
setup_source() {
|
|
path=$1
|
|
cp -a /source $path
|
|
cd $path
|
|
json=$(jq ".version = \"${VERSION}\"" package.json)
|
|
echo $json > package.json
|
|
rm -rf compiled node_modules .nvm
|
|
}
|
|
|
|
setup_source "/tmp/build"
|
|
./scripts/build-node-pre-gyp.sh
|
|
|
|
nvm use 4.4.7
|
|
|
|
cp out/* /out/
|