diff --git a/buildtools/ISCmplr.dll b/buildtools/ISCmplr.dll index 5b17787..6b40678 100644 Binary files a/buildtools/ISCmplr.dll and b/buildtools/ISCmplr.dll differ diff --git a/buildtools/ISPP.dll b/buildtools/ISPP.dll index 93974a0..5a02b92 100644 Binary files a/buildtools/ISPP.dll and b/buildtools/ISPP.dll differ diff --git a/buildtools/Setup.e32 b/buildtools/Setup.e32 index 9aa46fb..e3e9107 100644 Binary files a/buildtools/Setup.e32 and b/buildtools/Setup.e32 differ diff --git a/buildtools/SetupLdr.e32 b/buildtools/SetupLdr.e32 index 58fdc17..d3e577c 100644 Binary files a/buildtools/SetupLdr.e32 and b/buildtools/SetupLdr.e32 differ diff --git a/buildtools/iscc.exe b/buildtools/iscc.exe index cfe29f3..498c5e6 100644 Binary files a/buildtools/iscc.exe and b/buildtools/iscc.exe differ diff --git a/buildtools/islzma.dll b/buildtools/islzma.dll index 18365df..fba2bf8 100644 Binary files a/buildtools/islzma.dll and b/buildtools/islzma.dll differ diff --git a/buildtools/zip.exe b/buildtools/zip.exe index 286227a..ee3a4c6 100644 Binary files a/buildtools/zip.exe and b/buildtools/zip.exe differ diff --git a/src/nvm.go b/src/nvm.go index 88fb368..ab7b380 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 {