npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

electron-linux-installer

v0.2.2-beta

Published

An Easy to use CLI For Building Linux Installers (Debian / Redhat) Effortlessly.

Downloads

3

Readme

Electron Installer for Linux (Debian / Redhat)

Create a Linux (Debian / Redhat Package) for your Electron app using Easy CLI!

Requirements

For Redhat Builds, you require rpmbuild to build the .rpm package. On Fedora you can do something like this:

$ sudo dnf install rpm-build

While on Ubuntu you'll need to do this instead:

$ sudo apt-get install rpm

For Debian builds, you require fakeroot and dpkg to build the .deb package.

On Mac You can do it Via:

$ brew install fakeroot dpkg

On Fedora You can do it Via:

$ sudo dnf install dpkg fakeroot

Installation

CLI can be Installed Via:

$ npm install --global electron-linux-installer

Usage

First, you need to build the Package using Electron Packager:

$ electron-packager . app --platform linux --arch x64 --out dist/

Now you'd have to Use the CLI:

   $ electron-build-linux
    | |   (_)_ __  _   ___  __    | __ ) _   _(_) | __| | ___ _ __ 
    | |   | | '_ \| | | \ \/ /____|  _ \| | | | | |/ _` |/ _ \ '__|
    | |___| | | | | |_| |>  <_____| |_) | |_| | | | (_| |  __/ |   
    |_____|_|_| |_|\__,_/_/\_\    |____/ \__,_|_|_|\__,_|\___|_|   
                                                                    
    ? Do you want to Make the Installer for Both Debian and Redhat yes
    ? Enter the Path of Source Code dist/app-linux-x64/
    ? Enter the Path of the Destination for your Installer dist/installers/
    ? Enter the Name of the Architecture you are building for x86_64

    Starting to Build for Debian

    // Processing

    Starting to Build for Redhat

    // Processing

    Build for Both Complete, you can find the Installer at dist/installers/

Programmatically

First We Install the Module:

    npm install electron-linux-installer -S

Usage:

    var install = require('electron-linux-installer')
    install({
        src: 'dist/app-linux-x64/', // source location
        dest: 'dist/installers/', // destination of the installer
        arch: 'x86_64', // x86_x64 would work both debian and rpm cause controllers are here.
        for: 'both' // can be debian or redhat
    }).then(success => {
        console.log(success)
    }).catch(e => {
        throw e
    })

License

Licensed by MIT 2017 to Daksh Miglani, Please Give Credit to the author when used :)