neutralino-appimage-bundler
TypeScript icon, indicating that this package has built-in type declarations

1.3.4 • Public • Published

🚀 Neutralino AppImage Bundler

Bundle your Neutralino project in AppImage

⚠️ Works only on Linux x64 systems

Installation

With npm:

npm i --save-dev neutralino-appimage-bundler

With yarn:

yarn add -D neutralino-appimage-bundler

Usage

You can, for example, create file named build-appimage.js, with this content:

const path = require('path');

// Require bundler
const { Bundler } = require('neutralino-appimage-bundler');

// Create an object with some params
const bundler = new Bundler({
    // .desktop file properties
    desktop: {
        // Name field
        name: 'Aboba Project',

        // Path to the icon
        icon: path.join(__dirname, 'test/public/icons/64x64.png'),

        // Categories (defult is Utilities)
        categories: ['Game']
    },

    // Neutralino binary info
    binary: {
        // Name of the binary (cli.binaryName)
        name: 'aboba-amogus',

        // Dist folder path
        dist: path.join(__dirname, 'test/dist')
    },

    // Some files or folders to copy inside of the the AppImage
    copy: {
        'public': path.join(__dirname, 'test/dist/aboba-amogus/public')
    },

    // Should AppImage contain Neutralino's dependencies or not
    // If true, then AppImage will contain binary's shared libraries
    includeLibraries: false,

    // Path to the appimage to save
    output: path.join(__dirname, 'el-passant.AppImage'),

    /**
     * (optional) If set to true, the AppImage will run only with root privileges
     */
    sudo: false,

    // Application version
    version: '2.0.0'
});

// Bundle project
bundler.bundle();

And update your package.json scripts:

{
    "scripts": {
        "bundle:appimage": "node build-appimage.js"
    }
}

So you'll be able to run

yarn bundle:appimage

or

npm run bundle:appimage

Which will bundle your Neutralino application to the AppImage


Author: Nikita Podvirnyy

Package Sidebar

Install

npm i neutralino-appimage-bundler

Weekly Downloads

1

Version

1.3.4

License

MIT

Unpacked Size

35.7 kB

Total Files

29

Last publish

Collaborators

  • krypt0nn