diff --git a/buildtools/ISCmplr.dll b/buildtools/ISCmplr.dll index 5b17787c6e24a1a4e0ebee5f53902d7f7cc2ec2d..6b40678e9c5694453ecc8402f3c3f5704f32cc93 100644 Binary files a/buildtools/ISCmplr.dll and b/buildtools/ISCmplr.dll differ diff --git a/buildtools/ISPP.dll b/buildtools/ISPP.dll index 93974a0da8fb32145fc3fbdba201cbacc084116a..5a02b92067cf9a22d1335400939fcdfacd6f74b1 100644 Binary files a/buildtools/ISPP.dll and b/buildtools/ISPP.dll differ diff --git a/buildtools/Setup.e32 b/buildtools/Setup.e32 index 9aa46fb57393f3f0d6880c57d57b0ceb77ed022a..e3e9107615c795214681e499789c83911e62887d 100644 Binary files a/buildtools/Setup.e32 and b/buildtools/Setup.e32 differ diff --git a/buildtools/SetupLdr.e32 b/buildtools/SetupLdr.e32 index 58fdc17328a654210454582b3bd96716bf3966e8..d3e577c1aafc91f59cb87a13fac7f0db5759d7c9 100644 Binary files a/buildtools/SetupLdr.e32 and b/buildtools/SetupLdr.e32 differ diff --git a/buildtools/iscc.exe b/buildtools/iscc.exe index cfe29f31e9dfb108f3d0da37ca6957070a7668b2..498c5e64acac021f20f48cac1dc47dbf88acd745 100644 Binary files a/buildtools/iscc.exe and b/buildtools/iscc.exe differ diff --git a/buildtools/islzma.dll b/buildtools/islzma.dll index 18365df0ecc3da23cb243600af8a7af22f6fa0f3..fba2bf8c4d520fa167d52924fb31ff1c17f8cad4 100644 Binary files a/buildtools/islzma.dll and b/buildtools/islzma.dll differ diff --git a/buildtools/zip.exe b/buildtools/zip.exe index 286227a6866afe501829763e0c13bb63607200ea..ee3a4c6e18cd30bfa2dd1347305fa9c6ff805196 100644 Binary files a/buildtools/zip.exe and b/buildtools/zip.exe differ diff --git a/src/nvm.go b/src/nvm.go index 88fb3684e6c6d824a9f0a7d56c6badd96221b367..ab7b38065561fe69f9889cde27c7daa828e348e1 100644 --- a/src/nvm.go +++ b/src/nvm.go @@ -202,6 +202,7 @@ func install(version string, cpuarch string) { fmt.Println("Node.js v"+version+" is not yet released or available.") return } + if cpuarch == "64" && !web.IsNode64bitAvailable(version) { fmt.Println("Node.js v"+version+" is only available in 32-bit.") return @@ -209,11 +210,9 @@ func install(version string, cpuarch string) { // Check to see if the version is already installed if !node.IsVersionInstalled(env.root,version,cpuarch) { - if !node.IsVersionAvailable(version){ - fmt.Println("Version "+version+" is not available. If you are attempting to download a \"just released\" version,") - fmt.Println("it may not be recognized by the nvm service yet (updated hourly). If you feel this is in error and") - fmt.Println("you know the version exists, please visit http://github.com/coreybutler/nodedistro and submit a PR.") + url := web.GetFullNodeUrl("index.json") + fmt.Println("\nVersion "+version+" is not available.\n\nThe complete list of available versions can be found at " + url) return } @@ -654,9 +653,18 @@ func updateRootDir(path string) { return } + currentRoot := env.root env.root = filepath.Clean(path) + + // Copy command files + os.Link(filepath.Clean(currentRoot + "/elevate.cmd"), filepath.Clean(env.root + "/elevate.cmd")) + os.Link(filepath.Clean(currentRoot + "/elevate.cmd"), filepath.Clean(env.root + "/elevate.vbs")) + saveSettings() - fmt.Println("\nRoot has been set to "+path) + + if currentRoot != env.root { + fmt.Println("\nRoot has been changed from " + currentRoot + " to " + path) + } } func runElevated(command string) bool {