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:
@@ -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\*.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\superdoodle.iss"; DestDir: "{app}\wx\samples\doodle"; Components: samples
|
||||
|
||||
|
@@ -19,13 +19,21 @@ and much more.
|
||||
this command to build the .exe and collect the
|
||||
other needed files:
|
||||
|
||||
python setup.py py2exe -w
|
||||
python setup.py py2exe
|
||||
|
||||
|
||||
superdoodle.iss An InnoSetup script to build a self-installer of
|
||||
the superdoodle standalone executable. You can
|
||||
get InnoSetup from http://www.jrsoftware.org/.
|
||||
You may have to edit this file to make it work
|
||||
for your environment and python installation.
|
||||
superdoodle.iss NOTE: This .iss file needs updating!
|
||||
An InnoSetup script to build a self-installer of
|
||||
the superdoodle standalone executable created
|
||||
with py2exe. You can get InnoSetup from
|
||||
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.
|
||||
|
16
wxPython/samples/doodle/cxfreeze.bat
Executable file
16
wxPython/samples/doodle/cxfreeze.bat
Executable 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
|
12
wxPython/samples/doodle/installer.bat
Executable file
12
wxPython/samples/doodle/installer.bat
Executable 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
|
@@ -11,7 +11,7 @@ from distutils.core import setup
|
||||
import py2exe
|
||||
|
||||
setup( name = "superdoodle",
|
||||
#console = ["superdoodle.py", "doodle.py"]
|
||||
windows = ["superdoodle.py", "doodle.py"]
|
||||
#console = ["superdoodle.py"]
|
||||
windows = ["superdoodle.py"] #, "doodle.py"]
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user