How to use the electron-builder-core.archFromString function in electron-builder-core

To help you get started, we’ve selected a few electron-builder-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github electron-userland / electron-builder / test / src / windows / nsisBoring.ts View on Github external
packed: async(context) => {
    await expectUpdateMetadata(context, archFromString(process.arch))
    const updateInfo = safeLoad(await readFile(path.join(context.outDir, "latest.yml"), "utf-8"))
    expect(updateInfo.sha2).not.toEqual("")
    expect(updateInfo.releaseDate).not.toEqual("")
    delete updateInfo.sha2
    delete updateInfo.releaseDate
    expect(updateInfo).toMatchSnapshot()
    await doTest(context.outDir, false)
  }
}))

electron-builder-core

Part of [electron-builder](https://github.com/electron-userland/electron-builder).

MIT
Latest version published 7 years ago

Package Health Score

66 / 100
Full package analysis

Popular electron-builder-core functions

Similar packages