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

@electron/packager

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron/packager - npm Package Compare versions

Comparing version 18.2.0 to 18.3.0

2

dist/resedit.d.ts
import { Win32MetadataOptions } from './types';
import { FileRecord } from '@electron/asar';
export type ExeMetadata = {

@@ -8,4 +9,5 @@ productVersion?: string;

iconPath?: string;
asarIntegrity?: Record<string, Pick<FileRecord['integrity'], 'algorithm' | 'hash'>>;
win32Metadata?: Win32MetadataOptions;
};
export declare function resedit(exePath: string, options: ExeMetadata): Promise<void>;

@@ -115,2 +115,12 @@ "use strict";

versionInfo[0].outputToResourceEntries(res.entries);
// Asar Integrity
if (options.asarIntegrity) {
res.entries.push({
type: 'Integrity',
id: 'ElectronAsar',
bin: Buffer.from(JSON.stringify(options.asarIntegrity)).buffer,
lang: languageInfo[0].lang,
codepage: languageInfo[0].codepage,
});
}
res.outputResource(exe);

@@ -117,0 +127,0 @@ await fs.writeFile(exePath, Buffer.from(exe.generate()));

@@ -35,2 +35,3 @@ "use strict";

productName: this.opts.win32metadata?.ProductName || this.opts.name,
asarIntegrity: this.asarIntegrity,
win32Metadata,

@@ -37,0 +38,0 @@ };

2

package.json
{
"name": "@electron/packager",
"version": "18.2.0",
"version": "18.3.0",
"description": "Customize and package your Electron app with OS-specific bundles (.app, .exe, etc.) via JS or CLI",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

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