Wrapping Tcl Scripts and Data Files
To wrap one or more Tcl scripts and any associated data files (for example, bitmaps), simply list all the files as arguments to the prowrap command. For example, suppose you have an application consisting of a single script file, app.tcl. To wrap it, enter:
C:> prowrap app.tcl
This creates a wrapped application called prowrapout.exe on Windows systems or prowrapout on Unix systems. When you run the wrapped application, it uses wish to execute your app.tcl script. In other words, running the wrapped application in this case is the same as executing:
C:> wish app.tcl
By default, prowrap includes in your wrapped application a customized wish Tcl interpreter with built-in support for the [incr Tcl], [incr Tk], [incr Widgets], TclX, and Expect (Unix systems only) extensions. "Specifying the Tcl Interpreter" describes how you can specify a different Tcl interpreter
If your application has several script files, just include them on the prowrap command line. For example, if app.tcl sources the files utils.tcl and help.tcl from the aux subdirectory, you can wrap them with the following command:
C:> prowrap app.tcl aux\utils.tcl aux\help.tcl
Note: By default, your wrapped application sources the first file you list in the prowrap command. So in this example, when you execute your wrapped application, it sources app.tcl. You can change this behavior with the startup option, as described in "Specifying the Startup Tcl Script".
You can use wildcard characters in your file names to specify multiple files. On Unix systems, the shell you use (that is, sh, csh, etc.) handles wildcard expansion. On Windows systems, prowrap uses Tcl's glob command to handle wildcard expansion. (See the Tcl glob reference page for details of its operation.) So, in the above example, if utils.tcl and help.tcl were the only .tcl files in the aux subdirectory, you could accomplish the same effect as above with the following command:
C:> prowrap app.tcl aux\*.tcl
The files that you wrap are stored in the wrapped application's internal file archive. For information on how pathnames are handled for wrapped files, see Table 11"Resolving File Pathnames When Wrapping an Application" .
http://www.ajubasolutions.com Voice: (650) 210-0100 Fax: (650) 210-0101 support@ajubasolutions.com |