Re: Packaging Tcl/Tk Application on Windows: Single File Executable
- From: "slebetman@xxxxxxxxx" <slebetman@xxxxxxxxx>
- Date: 29 Nov 2005 01:51:09 -0800
Andy wrote:
> Hi all,
>
> I need to package application developed in Tcl/Tk on Windows. It should
> be a single file executable with all data files (gifs), dependency
> packages such as winico bundled into a single executable.
>
> There should be not reference to external data files such as images ..
> All should be bundled as a single file on desktop.
>
> I have used mktclapp and also freewrap but one needs to keep the image
> files separate.
>
Freewrap can include image file. Either simply:
freewrap my_main.tcl some_image.gif some_image.jpg
or include a list of images & dependency packages in a file and use the
-f option:
freewrap another_of_my_main.tcl -f includes.txt
A quick way to generate the includes file is:
dir /s /b c:\path\to\my\images\ > includes.txt
then simply edit the generated file to remove unused images. This can
also be done for including packages. For example, to include tcllib:
dir /s /b c:\tcl\lib\tcllib1.7\ > tcllib_includes.txt
This works with all pure tcl packages including bwidget and tcllib.
Packages with dlls can't be included this way. But your winico package
is already compiled into freewrap so you don't have to include it.
> Do I have to change code to include the image files data ?
>
with freewrap you don't have to. It automagically looks for the wrapped
images if it can't find it on disk.
.
- Follow-Ups:
- References:
- Prev by Date: Understanding of simpletest utility
- Next by Date: Re: Expect timeout problem. I needs help.
- Previous by thread: Packaging Tcl/Tk Application on Windows: Single File Executable
- Next by thread: Re: Packaging Tcl/Tk Application on Windows: Single File Executable
- Index(es):
Relevant Pages
|