electron-forge-publisher-local
TypeScript icon, indicating that this package has built-in type declarations

0.1.5-alpha • Public • Published

electron-forge-publisher-local

Local publisher for Electron Forge

Configuration

Example forge.config.js

module.exports = {
  packagerConfig: {},
  makers: [],
  publishers: [
    {
      name: 'electron-forge-publisher-local',
      config: {
        directory: 'c:/path/to/local/publish/directory',
        releasesFilePrefix: 'https://example.com/prefix/for/releases/' /* optional */
      }
    }
  ],
};

Publishing

Copies all results from make to /path/to/configured/directory/<version>/ using the version from make results.

Edits RELEASES, if present, to have full path and writes to configured directory.

Example edited RELEASES:

0000000000000000000000000000000000000000 1.0.0/YourApp-1.0.0-full.nupkg 00000000
0000000000000000000000000000000000000000 https://example.com/prefix/for/releases/1.0.0/YourApp-1.0.0-full.nupkg 00000000

Creates /path/to/configured/directory/latest.yml. Contents include latest version and list of all make artifacts with base64 encoded sha512 hashes.

Example latest.yml:

version: 1.0.0
files:
  - url: file:///path/to/configured/directory/1.0.0/RELEASES
    sha512: >-
      base64sha512string==
    name: RELEASES
  - url: file:///path/to/configured/directory/1.0.0/YourApp-1.0.0-full.nupkg
    sha512: >-
      base64sha512string==
    name: YourApp-1.0.0-full.nupkg
  - url: file:///path/to/configured/directory/1.0.0/YourAppSetup.exe
    sha512: >-
      base64sha512string==
    name: YourAppSetup.exe
  - url: file:///path/to/configured/directory/1.0.0/YourApp-win32-x64-1.0.0.zip
    sha512: >-
      base64sha512string==
    name: YourApp-win32-x64-1.0.0.zip

Package Sidebar

Install

npm i electron-forge-publisher-local

Weekly Downloads

6

Version

0.1.5-alpha

License

GPL-3.0-or-later

Unpacked Size

44.5 kB

Total Files

9

Last publish

Collaborators

  • reiniiriarios