@thlorenz/electron-mksnapshot
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

mksnapshot

A rewrite of electron/mksnapshot to support multiple versions.

The main difference is that the mksnapshot binary is not downloaded when installing this module.

Instead whenever it is run an electron version it should make a snapshot for can be provided or is resolved from the electron installed relative to the root of your project.

If that version was downloaded previously it is used, otherwise the matching version is downloaded before the mksnapshot step runs.

Example

const version = '12.0.10'
const args = [fullPathToSnapshot, '--output_dir', fullPathToOutputDir]
const { version, snapshotBlobFile, v8ContextFile } = await syncAndRun(
  version,
  args
)
assert.equal(version, providedVersion)
assert.equal(snapshotBlobFile, 'snapshot_blob.bin')
assert(v8ContextFile.startsWith('v8_context_snapshot'))

LICENSE

MIT

/@thlorenz/electron-mksnapshot/

    Package Sidebar

    Install

    npm i @thlorenz/electron-mksnapshot

    Weekly Downloads

    15

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    35.4 kB

    Total Files

    23

    Last publish

    Collaborators

    • brian-mann
    • thlorenz