simple-signtool
TypeScript icon, indicating that this package has built-in type declarations

0.15.1 • Public • Published

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

  1. Fork this repository
  2. Get project working locally
    • git clone git@github.com:<yourusername>/simple-signtool.git
    • cd simple-signtool
    • npm install
  3. Write/edit code
  4. Write tests
  5. Run npm test and fix any errors
  6. Open a pull request

License

MIT, please see LICENSE.md for details.

Readme

Keywords

none

Package Sidebar

Install

npm i simple-signtool

Weekly Downloads

1

Version

0.15.1

License

MIT

Unpacked Size

342 kB

Total Files

26

Last publish

Collaborators

  • dapperdan