simple-signtool
v0.15.1
Published
A simple wrapper around signtool using node `exec`.
Downloads
3
Readme
Simple Signtool
A simple wrapper around signtool using node exec
.
Documentation
Installation
npm install simple-signtool --save-dev
Usage
First, import simple-signtool
into your project:
import * as signtool from 'simple-signtool';
Example
import * as signtool from 'simple-signtool';
const file = path.join(__dirname, 'my.exe');
signtool.sign(file, {
rawString: '/d mydescription',
rfcTimeStampUrl: {
url: 'http://sha1timestamp.ws.symantec.com/sha1/timestamp',
digestAlgorithm: 'sha256'
}
});
signtool.sign(file, options);
Contributing
Guidelines
- Independent options should be in the top-level options interface, e.g.,
rawString
- Options that depend on each other should be in their own interface.
Example:export interface ISignOptions { rfcTimeStampUrl?: IRFCTimeStamp; } interface IRFCTimeStamp { url: string; digestAlgorithm?: 'sha256'; // depends on 'url' }
Steps
- Fork this repository
- Get project working locally
git clone [email protected]:<yourusername>/simple-signtool.git
cd simple-signtool
npm install
- Write/edit code
- Write tests
- Run
npm test
and fix any errors - Open a pull request
License
MIT, please see LICENSE.md for details.