mirror of
https://github.com/fofolee/uTools-ProcessKiller.git
synced 2025-07-09 03:52:45 +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(){
|
function getPlatformIconProcess(){
|
||||||
if (os.type() == 'Windows_NT') {
|
if (os.type() == 'Windows_NT') {
|
||||||
// return path.join(__dirname, 'bin', 'IconExtractor.exe');
|
if (/(unsafe-\w+\.asar)/.test(__dirname)) {
|
||||||
return path.join(__dirname.replace(/(unsafe-\w+\.asar)/,'$1.unpacked'), 'bin', 'IconExtractor.exe')
|
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
|
//Do stuff here to get the icon that doesn't have the shortcut thing on it
|
||||||
} else {
|
} else {
|
||||||
throw('This platform (' + os.type() + ') is unsupported =(');
|
throw('This platform (' + os.type() + ') is unsupported =(');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user