Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bin/winsw/winsw.exe
Binary file not shown.
6 changes: 0 additions & 6 deletions bin/winsw/winsw.exe.config

This file was deleted.

10 changes: 2 additions & 8 deletions lib/winsw.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ module.exports = {

/**
* Copy install version of winsw.exe to specific renamed version according to
* the service id. Also copy .exe.config file that allows it to run under
* .NET 4+ runtime on newer versions of windows.
* (see https://github.com/kohsuke/winsw#net-runtime-40)
* the service id.
*
* @method createExe
* Create the executable
Expand All @@ -170,14 +168,10 @@ module.exports = {
dir = dir || process.cwd();

var exeOrigin = p.join(__dirname,'..','bin','winsw','winsw.exe'),
cfgOrigin = p.join(__dirname,'..','bin','winsw','winsw.exe.config'),
exeDest = p.join(dir,name.replace(/[^\w]/gi,'').toLowerCase()+'.exe'),
cfgDest = p.join(dir,name.replace(/[^\w]/gi,'').toLowerCase()+'.exe.config'),
exeData = fs.readFileSync(exeOrigin,{encoding:'binary'}),
cfgData = fs.readFileSync(cfgOrigin,{encoding:'binary'});
exeData = fs.readFileSync(exeOrigin,{encoding:'binary'});

fs.writeFileSync(exeDest,exeData,{encoding:'binary'});
fs.writeFileSync(cfgDest,cfgData,{encoding:'binary'});
callback && callback();
}
}