Skip to content

Advanced build system to compile NSIS scripts, supporting Windows, macOS and Linux (native and Wine)

License

Notifications You must be signed in to change notification settings

idleberg/sublime-makensis

Repository files navigation

sublime-makensis

The MIT License Package Control GitHub Travis CI

Advanced Sublime Text build system to compile NSIS scripts, supporting Windows, macOS and Linux.

Installation

Package Control

  1. Make sure you already have Package Control installed
  2. Choose “Install Package” from the Command Palette (Super+Shift+p)
  3. Type “makensis” and press Enter

With auto_upgrade enabled, Package Control will keep all installed packages up-to-date!

Using Git

  1. Change to your Sublime Text Packages directory
  2. Clone repository git clone https://github.com/idleberg/sublime-makensis.git makensis

Setup

Windows

Download the NSIS installer from SourceForge and run setup. Once completed, you need to add the installation folder to your PATH environmental variable manually.

Alternatively, you can install NSIS using the Scoop package manager:

$ scoop install nsis/nsis

Linux

Install NSIS from your distribution's default package manager, for example:

# Debian
sudo apt-get install nsis

# Red Hat
sudo dnf install nsis

macOS

Install NSIS using Homebrew or MacPorts:

# Homebrew
brew install nsis

# MacPorts
port install nsis

Usage

When using the NSIS package, you will have to switch the default build system

Tools > Build Systems > makensis

Use the default shortcut Super+b to build scripts or Super+Shift+b to choose a build variant.

Available variants:

  • makensis¹
  • makensis - strict¹ ²
  • makensis - Wine³
  • makensis - Wine, strict² ³
  • makensis - Legacy Windows
  • makensis - Legacy Windows, strict²

¹⁾ requires PowerShell 3.0 (Windows 8 or later)
²⁾ treats warnings as errors, requires NSIS 3.0
³⁾ requires Wine

License

This work is licensed under the The MIT License.