@@ -20,6 +20,8 @@ module.exports = function(callback)
2020 var arch = { 'x64': '64-bit', 'ia32': '32-bit' }[process.arch];
2121 var url = 'https://github.com/elm/compiler/releases/download/' + version + '/binary-for-' + os + '-' + arch + '.gz';
2222
23+ reportDownload(version, url);
24+
2325 // figure out where to put the binary (calls path.resolve() to get path separators right on Windows)
2426 var binaryPath = path.resolve(__dirname, package.bin) + (process.platform === 'win32' ? '.exe' : '');
2527
@@ -62,3 +64,19 @@ function exitFailure(url, message)
6264 );
6365 process.exit(1);
6466}
67+
68+
69+
70+// REPORT DOWNLOAD
71+
72+
73+function reportDownload(version, url)
74+{
75+ console.log(
76+ '--------------------------------------------------------------------------------\n\n'
77+ + 'Downloading Elm ' + version + ' from GitHub.' +
78+ + '\n\nNOTE: You can avoid npm entirely by downloading directly from:\n'
79+ + url + '\nAll this package does is download that file and put it somewhere.\n\n'
80+ + '--------------------------------------------------------------------------------\n'
81+ );
82+}