2007年8月30日 星期四

MakeNSIS on Linux

NSIS

是一個可以將應用程式打包編譯成windows的安裝程式

以下是NSIS在Linux下安裝的說明

MakeNSIS on Linux
I was supposed to create a Windows installer recently, but I just hate using Windows. NSIS was the chosen installer creator. I was lucky to be able to compile the NSIS installer on Linux.

The installer just ran without any glitches on wine. So testing the installer as not an issue as well.

Let me guide you through installing NSIS on Linux and how to use it on Linux.

http://nsis.sourceforge.net/Download

Requires


* Python version 1.6 and above (http://www.python.org/)
* SCons version 0.96.93 and above (http://www.scons.org/)
* C compiler

Steps



Download both the release and the source of x.xx.
nsis-x.xx.zip nsis-x-xx-src.tar.gz


Extract both into one parent parent directory

|
+-- nsis-x.xx
+-- nsis-x.xx-src


Change to the source directory
$ cd nsis-x.xx-src


Compile makensis using scon
$ scons SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all


Copy makensis to the release
$ cp build/release/makensis/makensis ../nsis-x.xx/makensis


Change to the
$ cd ..


Install - Copy makensis to the install location
$ sudo cp -r nsis-x.xx/* /usr/local/share/nsis/


Create the link from the bin directory to the makensis such that
makensis is accessible from the command line.
$ sudo link /usr/local/share/nsis/makensis /usr/bin/makensis

沒有留言: