方便调试

This commit is contained in:
fofolee 2019-05-03 20:35:33 +08:00
parent e9956c33d3
commit d30887651f

View File

@ -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 =(');