Skip to content

Simple Bash script to easily install nar executable packages. Analog to npm install --global

Notifications You must be signed in to change notification settings

h2non/nar-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 

Repository files navigation

nar-installer

Dead simple Bash script to download and install nar self-contained executable packages in a similar way like npm does via npm install --global

Useful to provide an easy-to-use one-command installer solution for your applications

Works in GNU/Linux, OSX and SunOS. Requires curl

Generate binaries

Create nar executable archives of your package for multiple platforms:

nar --executable --os linux --arch x64
nar --executable --os darwin --arch x64

Then you can upload the nar archives to a Github tag, S3 or whatever you want

CLI

Arguments

./installer.sh <version> [flags]

Supported flags

-f, --force - Force package installation, removing old installations
-p, --path  - Installation path. Default to ~/.npm or ~/ 

Usage

Fetch the installer script:

curl -O -L -k https://github.com/raw/h2non/nar-installer/master/installer.sh

Open installer.sh in your favorite editor and customize the following values:

NAME="project-name"
URL="https://github.com/you/$NAME/releases/download/$VERSION/$NAME-$VERSION"

Save your changes and simply run the script to install your package.

Example downloading the installer script and running it:

curl -L https://github.com/you/project/tree/installer.sh | sudo bash 0.1.0

Examples

Projects using nar-installer:

License

WTFPL

About

Simple Bash script to easily install nar executable packages. Analog to npm install --global

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages