mirror of
https://github.com/fofolee/uTools-ProcessKiller.git
synced 2025-07-08 19:32:42 +08:00
方便调试
This commit is contained in:
parent
e9956c33d3
commit
d30887651f
7
node_modules/icon-extractor/win-iconExtractor.js
generated
vendored
7
node_modules/icon-extractor/win-iconExtractor.js
generated
vendored
@ -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 =(');
|
||||
|
Loading…
x
Reference in New Issue
Block a user