|
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 |
|---|
| 9 | SetCompressor lzma |
|---|
| 10 | |
|---|
| 11 | Name 'Peppy' |
|---|
| 12 | OutFile ${exe} |
|---|
| 13 | SilentInstall silent |
|---|
| 14 | Icon '..\graphics\peppy48.ico' |
|---|
| 15 | |
|---|
| 16 | Section |
|---|
| 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 |
|---|
| 36 | SectionEnd |
|---|