From e74f3da89e475a80456a22ff8b6f4a7d8e839487 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 2 Jun 2015 17:31:06 -0400 Subject: [PATCH] fixed sounds on windows --- src/meta/sounds.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/meta/sounds.js b/src/meta/sounds.js index 1e14c8c084..1449ae21f5 100644 --- a/src/meta/sounds.js +++ b/src/meta/sounds.js @@ -41,7 +41,11 @@ module.exports = function(Meta) { // Link paths async.each(filePaths, function(filePath, next) { - fs.symlink(filePath, path.join(soundsPath, path.basename(filePath)), 'file', next); + if (process.platform === 'win32') { + fs.link(filePath, path.join(soundsPath, path.basename(filePath)), next); + } else { + fs.symlink(filePath, path.join(soundsPath, path.basename(filePath)), 'file', next); + } }, function(err) { if (!err) { winston.verbose('[sounds] Sounds OK');