New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@reforged/plugin-launcher

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reforged/plugin-launcher

(WIP) Provide an executable wrapper for your Electron software.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

@reforged/plugin-launcher

An Electron Forge plugin to wrap Electron applications into shebang-prefixed script files and native OS executables. At the current state, application developers are responsible for resolving path to your Electron application and handling script real path when it is being symlinked. Plugin also only deals with Linux only for the time being.

[!CAUTION] We are currently at initial release cycle, therefore no API stability guarantees are made! Far more code infrastructure needs implementation as well, including but not exclusively: unit tests, documentation, use case consideration, multiplatform and multiarch packaging support, logging and planned feature definition.

Mature stable release will begin at v1 versioning, as defined by SemVer specification.

Usage:

Currently, plugin configuration supports one property that must be set: launcher. It is a multi-type property and can be:

  • a string, pointing to a file that will replace the binary when starting application,
  • a shebang-prefixed string or string[] (where array contains individual lines), to provide an inline script that will be used as an entrypoint of your application,
  • an ArrayBufferView (e.g. Uint8Array, Buffer instances), that represents an embedded version of your binary.

Example relevant Electron Forge configuration:

/// forge.config.mjs
import PluginLauncher from "@reforged/plugin-launcher"

const config = {
    /* (…) */
    plugins: [
        /* Note: PluginLauncher has to be the last element! */
        new PluginLauncher({ launcher: [
            '#!/bin/sh',
            'ME="$(readlink -f "$0")"',
            'echo "Hello, plugin world!"',
            'exec "$ME.bin" "$@"'
        ]})
    ]
}

Keywords

electron

FAQs

Package last updated on 30 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts