Skip to content
Snippets Groups Projects
Commit c3a291fa authored by Éloïs's avatar Éloïs
Browse files

[build] deb: get nodejs from nvm instead of redownload it

parent 23ca2c82
No related branches found
No related tags found
No related merge requests found
......@@ -104,14 +104,12 @@ BIN="${WORK}/bin"
mkdir -p "${DOWNLOADS}" "${RELEASES}" "${BIN}" || exit 1
rm -rf "${BIN}/"*.{deb,tar.gz}{,.desc} # Clean up
# -----------
# Downloads
# -----------
# ------------
# Get Node.js
# ------------
cd "${DOWNLOADS}"
curl -O http://nodejs.org/dist/${NVER}/node-${NVER}-linux-x64.tar.gz || exit 1
tar xzf node-${NVER}-linux-x64.tar.gz || exit 1
rm node-${NVER}-linux-x64.tar.gz
cp -r ~/.nvm/versions/node/${NVER}/ node-${NVER}-linux-x64
# -----------
# Releases
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment