root/trunk/win-executable.nsi

Revision 822, 0.8 kB (checked in by rob, 12 months ago)

Changed icon to the new 48x48 .ico file

Line 
1!define py2exeOutputDirectory 'dist'
2!define exe 'peppy.exe'
3
4; Comment out the "SetCompress Off" line and uncomment
5; the next line to enable compression. Startup times
6; will be a little slower but the executable will be
7; quite a bit smaller
8;SetCompress Off
9SetCompressor lzma
10
11Name 'Peppy'
12OutFile ${exe}
13SilentInstall silent
14Icon '..\graphics\peppy48.ico'
15
16Section
17    InitPluginsDir
18    SetOutPath '$PLUGINSDIR'
19   
20    ; have to recursively descend to pick up all the editra styling info
21    File /r '${py2exeOutputDirectory}\*.*'
22
23    GetTempFileName $0
24    DetailPrint $0
25    Delete $0
26    StrCpy $0 '$0.bat'
27    FileOpen $1 $0 'w'
28    FileWrite $1 '@echo off$\r$\n'
29    StrCpy $2 $TEMP 2
30    FileWrite $1 '$2$\r$\n'
31    FileWrite $1 'cd $PLUGINSDIR$\r$\n'
32    FileWrite $1 '${exe}$\r$\n'
33    FileClose $1
34    nsExec::Exec $0
35    Delete $0
36SectionEnd
Note: See TracBrowser for help on using the browser.