Created
November 29, 2017 13:03
-
-
Save alexanderbartels/2e3fded708a389c95ccae65ab7b31c87 to your computer and use it in GitHub Desktop.
wget script to download all packages from a specific NodeJS Version. Useful if you work with the maven-frontend-plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ### | |
### Script to download all available NodeJS Packages for all plattforms ### | |
### # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ### | |
# Which Node version should be downloaded? | |
NODE_VERSION="v8.9.1" | |
# download nodejs package | |
download() | |
{ | |
wget --no-check-certificate "https://nodejs.org/dist/${1}/node-${1}${2}" | |
} | |
# =============== | |
# START DOWNLOADS | |
# =============== | |
# Windows | |
# ------- | |
download ${NODE_VERSION} "-x64.msi" # download Windows instaler x64 MSI | |
download ${NODE_VERSION} "-win-x64.zip" # download Windows x64 zip | |
# ------- | |
# MAC OS | |
# ------ | |
download ${NODE_VERSION} ".pkg" # download macOS instaler | |
download ${NODE_VERSION} "-darwin-x64.tar.gz" # download macOS binaries | |
# ------ | |
# Linux | |
# ----- | |
# download Linux binaries (.gz and .xz) | |
download ${NODE_VERSION} "-linux-x64.tar.gz" | |
download ${NODE_VERSION} "-linux-x64.tar.xz" | |
# ----- | |
# SOURCE | |
# ------ | |
download ${NODE_VERSION} ".tar.gz" # download nodejs source code | |
# ------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment