Add cx_Freeze and Installer examples

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-05-28 19:13:42 +00:00
parent 0e174ce890
commit 81457c860f
5 changed files with 46 additions and 9 deletions

View File

@@ -200,6 +200,7 @@ Source: "%(WXDIR)s\lib\vc_dll\wxrc.exe"; DestDir: "{code:GetPythonDir}
Source: "samples\doodle\*.py"; DestDir: "{app}\wx\samples\doodle"; Components: samples Source: "samples\doodle\*.py"; DestDir: "{app}\wx\samples\doodle"; Components: samples
Source: "samples\doodle\*.txt"; DestDir: "{app}\wx\samples\doodle"; Components: samples Source: "samples\doodle\*.txt"; DestDir: "{app}\wx\samples\doodle"; Components: samples
Source: "samples\doodle\*.bat"; DestDir: "{app}\wx\samples\doodle"; Components: samples
Source: "samples\doodle\sample.ddl"; DestDir: "{app}\wx\samples\doodle"; Components: samples Source: "samples\doodle\sample.ddl"; DestDir: "{app}\wx\samples\doodle"; Components: samples
Source: "samples\doodle\superdoodle.iss"; DestDir: "{app}\wx\samples\doodle"; Components: samples Source: "samples\doodle\superdoodle.iss"; DestDir: "{app}\wx\samples\doodle"; Components: samples

View File

@@ -19,13 +19,21 @@ and much more.
this command to build the .exe and collect the this command to build the .exe and collect the
other needed files: other needed files:
python setup.py py2exe -w python setup.py py2exe
superdoodle.iss An InnoSetup script to build a self-installer of superdoodle.iss NOTE: This .iss file needs updating!
the superdoodle standalone executable. You can An InnoSetup script to build a self-installer of
get InnoSetup from http://www.jrsoftware.org/. the superdoodle standalone executable created
You may have to edit this file to make it work with py2exe. You can get InnoSetup from
for your environment and python installation. http://www.jrsoftware.org/. You may have to edit
this file to make it work for your environment
and python installation.
cxfreeze.bat An example of creating an executable with the
cx_Freeze utility, downloadable from
http://starship.python.net/crew/atuining/cx_Freeze/
installer.bat An example of creating an executable with Gordon
McMillan's Installer utility.

View File

@@ -0,0 +1,16 @@
rem This script is an example of how to use cx_Freeze on a wxPython
rem app to produce an executable.
setlocal
set CXDIR=c:\tools\cx_Freeze-2.2
rem set CXBASE=ConsoleBase.exe
set CXBASE=Win32GUIBase.exe
mkdir cxdist
%CXDIR%\FreezePython.exe --base-binary %CXDIR%\%CXBASE% --install-dir cxdist superdoodle.py
rem NOTE: Only the python DLL is copied to cxdist, you'll still need
rem to copy the wxWidgets DLLs and any others that are needed...
endlocal

View File

@@ -0,0 +1,12 @@
rem This script is an example of how to use the McMillan Installer
rem on a wxPython app to produce an executable.
setlocal
set INSTDIR=c:\tools\Installer
python %INSTDIR%\Makespec.py --onedir --noconsole superdoodle.py
python %INSTDIR%\Build.py superdoodle.spec
endlocal

View File

@@ -11,7 +11,7 @@ from distutils.core import setup
import py2exe import py2exe
setup( name = "superdoodle", setup( name = "superdoodle",
#console = ["superdoodle.py", "doodle.py"] #console = ["superdoodle.py"]
windows = ["superdoodle.py", "doodle.py"] windows = ["superdoodle.py"] #, "doodle.py"]
) )