diff --git a/node_modules/icon-extractor/win-iconExtractor.js b/node_modules/icon-extractor/win-iconExtractor.js index 3cf4231..fc9b178 100644 --- a/node_modules/icon-extractor/win-iconExtractor.js +++ b/node_modules/icon-extractor/win-iconExtractor.js @@ -57,8 +57,11 @@ function IconExtractor(){ function getPlatformIconProcess(){ if (os.type() == 'Windows_NT') { - // return path.join(__dirname, 'bin', 'IconExtractor.exe'); - return path.join(__dirname.replace(/(unsafe-\w+\.asar)/,'$1.unpacked'), 'bin', 'IconExtractor.exe') + if (/(unsafe-\w+\.asar)/.test(__dirname)) { + return path.join(__dirname.replace(/(unsafe-\w+\.asar)/,'$1.unpacked'), 'bin', 'IconExtractor.exe') + } else { + return path.join(__dirname, 'bin', 'IconExtractor.exe'); + } //Do stuff here to get the icon that doesn't have the shortcut thing on it } else { throw('This platform (' + os.type() + ') is unsupported =(');