Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: skipIdentityValidation #126

Merged
merged 4 commits into from
Feb 25, 2017
Merged
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
61 changes: 33 additions & 28 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
interface BaseSignOptions {
app: string;
identity?: string;
platform?: string;
keychain?: string;
}
declare module "electron-osx-sign" {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise typing is not used if module: es2015 Why es2015 module is used for node projects? Because it is transpiled by babel in the end :)

interface BaseSignOptions {
app: string;
identity?: string;
platform?: string;
keychain?: string;
}

interface SignOptions extends BaseSignOptions {
binaries?: string[];
entitlements?: string;
'entitlements-inherit'?: string;
'gatekeeper-assess'?: boolean;
ignore?: string;
'pre-auto-entitlements'?: boolean;
'pre-embed-provisioning-profile'?: boolean;
'provisioning-profile'?: string;
'requirements'?: string;
'type'?: string;
version?: string;
}
interface SignOptions extends BaseSignOptions {
binaries?: string[];
entitlements?: string;
'entitlements-inherit'?: string;
'gatekeeper-assess'?: boolean;
ignore?: string;
'pre-auto-entitlements'?: boolean;
'pre-embed-provisioning-profile'?: boolean;
'provisioning-profile'?: string;
'requirements'?: string;
'type'?: string;
version?: string;
'identity-validation'?: boolean;
}

export function sign(opts: SignOptions, callback: (error: Error) => void): void;
export function signAsync(opts: SignOptions): Promise<any>;
export function sign(opts: SignOptions, callback: (error: Error) => void): void;

interface FlatOptions extends BaseSignOptions {
install?: string;
pkg?: string;
scripts?: string;
}
export function signAsync(opts: SignOptions): Promise<any>;

export function flat(opts: FlatOptions, callback: (error: Error) => void): void;
export function flatAsync(opts: FlatOptions): Promise<any>;
interface FlatOptions extends BaseSignOptions {
install?: string;
pkg?: string;
scripts?: string;
}

export function flat(opts: FlatOptions, callback: (error: Error) => void): void;

export function flatAsync(opts: FlatOptions): Promise<any>;
}
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@
},
"homepage": "https://github.com/electron-userland/electron-osx-sign",
"dependencies": {
"bluebird": "^3.4.6",
"bluebird": "^3.4.7",
"compare-version": "^0.1.2",
"debug": "^2.3.2",
"isbinaryfile": "^3.0.1",
"debug": "^2.6.1",
"isbinaryfile": "^3.0.2",
"minimist": "^1.2.0",
"plist": "^2.0.1",
"tempfile": "^1.1.1"
},
"devDependencies": {
"electron-download": "^3.0.1",
"eslint": "^3.10.0",
"eslint-config-eslint": "^3.0.0",
"extract-zip": "^1.5.0",
"electron-download": "^4.0.0",
"eslint": "^3.16.1",
"eslint-config-eslint": "^4.0.0",
"extract-zip": "^1.6.0",
"mkdirp": "^0.5.1",
"rimraf": "^2.5.4",
"rimraf": "^2.6.1",
"run-series": "^1.1.4",
"run-waterfall": "^1.1.3",
"standard": "^8.5.0",
"tape": "^4.6.2"
"standard": "^8.6.0",
"tape": "^4.6.3"
},
"scripts": {
"code-standard": "standard",
Expand Down
3 changes: 3 additions & 0 deletions sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ var signAsync = module.exports.signAsync = function (opts) {
var promise
if (opts.identity) {
debuglog('`identity` passed in arguments.')
if (opts['identity-validation'] === false) {
return Promise.resolve()
}
promise = findIdentitiesAsync(opts, opts.identity)
} else {
debugwarn('No `identity` passed in arguments...')
Expand Down