@electron/packager
Advanced tools
Comparing version 18.3.3 to 18.3.4
@@ -28,3 +28,3 @@ "use strict"; | ||
'prune', | ||
'quiet' | ||
'quiet', | ||
], | ||
@@ -34,8 +34,8 @@ default: { | ||
junk: true, | ||
prune: true | ||
prune: true, | ||
}, | ||
string: [ | ||
'electron-version', | ||
'out' | ||
] | ||
'out', | ||
], | ||
}); | ||
@@ -42,0 +42,0 @@ args.dir = args._[0]; |
@@ -121,3 +121,3 @@ "use strict"; | ||
'dependencies.electron-nightly', | ||
'devDependencies.electron-nightly' | ||
'devDependencies.electron-nightly', | ||
]); | ||
@@ -124,0 +124,0 @@ } |
@@ -165,2 +165,5 @@ /// <reference types="node" /> | ||
export declare function createSignOpts(properties: ComboOptions['osxSign'], platform: ComboOptions['platform'], app: string, version: ComboOptions['electronVersion'], quiet?: boolean): CreateSignOptsResult; | ||
export declare function createNotarizeOpts(properties: ComboOptions['osxNotarize'], appBundleId: string, appPath: string, quiet: boolean): NotarizeOptions; | ||
type CreateNotarizeOptsResult = Exclude<NotarizeOptions, { | ||
tool?: 'legacy'; | ||
}>; | ||
export declare function createNotarizeOpts(properties: ComboOptions['osxNotarize'], appBundleId: string, appPath: string, quiet: boolean): CreateNotarizeOptsResult; |
@@ -61,4 +61,5 @@ import { FileRecord } from '@electron/asar'; | ||
asarApp(): Promise<void>; | ||
getAsarIntegrity(path: string): Pick<FileRecord['integrity'], 'algorithm' | 'hash'>; | ||
copyExtraResources(): Promise<void>; | ||
move(): Promise<string>; | ||
} |
@@ -115,2 +115,5 @@ "use strict"; | ||
await this.copyPrebuiltAsar(); | ||
this.asarIntegrity = { | ||
[this.appRelativePath(this.appAsarPath)]: this.getAsarIntegrity(this.appAsarPath), | ||
}; | ||
} | ||
@@ -202,8 +205,4 @@ else { | ||
await asar_1.default.createPackageWithOptions(this.originalResourcesAppDir, this.appAsarPath, this.asarOptions); | ||
const { headerString } = asar_1.default.getRawHeader(this.appAsarPath); | ||
this.asarIntegrity = { | ||
[this.appRelativePath(this.appAsarPath)]: { | ||
algorithm: 'SHA256', | ||
hash: crypto_1.default.createHash('SHA256').update(headerString).digest('hex'), | ||
}, | ||
[this.appRelativePath(this.appAsarPath)]: this.getAsarIntegrity(this.appAsarPath), | ||
}; | ||
@@ -213,2 +212,9 @@ await fs_extra_1.default.remove(this.originalResourcesAppDir); | ||
} | ||
getAsarIntegrity(path) { | ||
const { headerString } = asar_1.default.getRawHeader(path); | ||
return { | ||
algorithm: 'SHA256', | ||
hash: crypto_1.default.createHash('SHA256').update(headerString).digest('hex'), | ||
}; | ||
} | ||
async copyExtraResources() { | ||
@@ -215,0 +221,0 @@ if (!this.opts.extraResource) { |
@@ -13,3 +13,3 @@ "use strict"; | ||
'electron', | ||
'electron-nightly' | ||
'electron-nightly', | ||
]; | ||
@@ -24,3 +24,3 @@ class Pruner { | ||
rootDirectory: dir, | ||
shouldKeepModuleTest: (module, isDevDep) => this.shouldKeepModule(module, isDevDep) | ||
shouldKeepModuleTest: (module, isDevDep) => this.shouldKeepModule(module, isDevDep), | ||
}); | ||
@@ -27,0 +27,0 @@ } |
{ | ||
"name": "@electron/packager", | ||
"version": "18.3.3", | ||
"version": "18.3.4", | ||
"description": "Customize and package your Electron app with OS-specific bundles (.app, .exe, etc.) via JS or CLI", | ||
@@ -55,4 +55,5 @@ "main": "dist/index.js", | ||
"@types/resolve": "^1.20.4", | ||
"@types/semver": "^7.5.8", | ||
"@types/yargs-parser": "^21.0.2", | ||
"@typescript-eslint/eslint-plugin": "^7.0.0", | ||
"@typescript-eslint/eslint-plugin": "7.2.0", | ||
"@typescript-eslint/parser": "^6.9.1", | ||
@@ -64,7 +65,6 @@ "ava": "^3.10.1", | ||
"eslint": "^8.52.0", | ||
"eslint-config-standard": "^16.0.0", | ||
"eslint-plugin-ava": "^14.0.0", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-node": "^11.0.0", | ||
"eslint-plugin-promise": "^5.1.0", | ||
"eslint-plugin-promise": "^6.2.0", | ||
"lodash": "^4.17.21", | ||
@@ -87,3 +87,3 @@ "nyc": "^15.0.0", | ||
"docs:build": "node test/ci/build_docs.js", | ||
"lint": "eslint --ext .ts .", | ||
"lint": "eslint .", | ||
"prepublish": "npm run build", | ||
@@ -103,3 +103,3 @@ "pretest": "npm run build", | ||
"ava": { | ||
"timeout": "60s" | ||
"timeout": "120s" | ||
}, | ||
@@ -106,0 +106,0 @@ "funding": { |
@@ -0,1 +1,2 @@ | ||
'use strict' | ||
module.exports = require('../dist/targets') |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
225215
3046