Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-notarize

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-notarize - npm Package Compare versions

Comparing version 0.0.5 to 0.1.0

7

lib/index.d.ts

@@ -9,6 +9,9 @@ export interface NotarizeCredentials {

}
export interface TransporterOptions {
ascProvider?: string;
}
export interface NotarizeResult {
uuid: string;
}
export declare type NotarizeStartOptions = NotarizeAppOptions & NotarizeCredentials;
export declare type NotarizeStartOptions = NotarizeAppOptions & NotarizeCredentials & TransporterOptions;
export declare type NotarizeWaitOptions = NotarizeResult & NotarizeCredentials;

@@ -20,2 +23,2 @@ export declare type NotarizeStapleOptions = Pick<NotarizeAppOptions, 'appPath'>;

export declare function stapleApp(opts: NotarizeStapleOptions): Promise<void>;
export declare function notarize({ appBundleId, appPath, appleId, appleIdPassword, }: NotarizeOptions): Promise<void>;
export declare function notarize({ appBundleId, appPath, appleId, appleIdPassword, ascProvider, }: NotarizeOptions): Promise<void>;

@@ -50,3 +50,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

return [4 /*yield*/, helpers_1.withTempDir(function (dir) { return __awaiter(_this, void 0, void 0, function () {
var zipPath, zipResult, result, uuidMatch;
var zipPath, zipResult, notarizeArgs, result, uuidMatch;
return __generator(this, function (_a) {

@@ -71,14 +71,18 @@ switch (_a.label) {

d('zip succeeded, attempting to upload to apple');
return [4 /*yield*/, spawn_1.spawn('xcrun', [
'altool',
'--notarize-app',
'-f',
zipPath,
'--primary-bundle-id',
opts.appBundleId,
'-u',
helpers_1.makeSecret(opts.appleId),
'-p',
helpers_1.makeSecret(opts.appleIdPassword),
])];
notarizeArgs = [
'altool',
'--notarize-app',
'-f',
zipPath,
'--primary-bundle-id',
opts.appBundleId,
'-u',
helpers_1.makeSecret(opts.appleId),
'-p',
helpers_1.makeSecret(opts.appleIdPassword),
];
if (opts.ascProvider) {
notarizeArgs.push('-itc_provider', opts.ascProvider);
}
return [4 /*yield*/, spawn_1.spawn('xcrun', notarizeArgs)];
case 2:

@@ -179,3 +183,3 @@ result = _a.sent();

function notarize(_a) {
var appBundleId = _a.appBundleId, appPath = _a.appPath, appleId = _a.appleId, appleIdPassword = _a.appleIdPassword;
var appBundleId = _a.appBundleId, appPath = _a.appPath, appleId = _a.appleId, appleIdPassword = _a.appleIdPassword, ascProvider = _a.ascProvider;
return __awaiter(this, void 0, void 0, function () {

@@ -190,2 +194,3 @@ var uuid;

appleIdPassword: appleIdPassword,
ascProvider: ascProvider,
})];

@@ -192,0 +197,0 @@ case 1:

{
"name": "electron-notarize",
"version": "0.0.5",
"version": "0.1.0",
"description": "Notarize your Electron app",

@@ -14,14 +14,18 @@ "main": "lib/index.js",

},
"files": [
"lib",
"README.md"
],
"devDependencies": {
"@types/debug": "^0.0.31",
"@types/fs-extra": "^5.0.4",
"electron": "^3.0.5",
"tslint": "^5.11.0",
"tslint-config-airbnb": "^5.11.0",
"typescript": "^3.1.3"
"@types/debug": "^4.1.4",
"@types/fs-extra": "^7.0.0",
"electron": "^5.0.2",
"tslint": "^5.16.0",
"tslint-config-airbnb": "^5.11.1",
"typescript": "^3.4.5"
},
"dependencies": {
"debug": "^4.1.0",
"fs-extra": "^7.0.0"
"debug": "^4.1.1",
"fs-extra": "^8.0.1"
}
}

@@ -36,2 +36,3 @@ Electron Notarize

* `appleIdPassword` String - The password for your apple developer account
* `ascProvider` String (optional) - Your [Team ID](https://developer.apple.com/account/#/membership) in App Store Connect. This is necessary if you are part of multiple teams

@@ -60,4 +61,5 @@ #### Safety when using `appleIdPassword`

appleIdPassword,
ascProvider, // This parameter is optional
});
}
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc