Re: Packaging Tcl/Tk Application on Windows: Single File Executable



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.

.



Relevant Pages

  • Re: Kernel 2.6.27 in Debian?
    ... provides unofficial 2.6.27 images, see ... You need to add the "trunk" ... deb http://kernel-archive.buildserver.net/debian-kernel sid main ... Err http://kernel-archive.buildserver.net sid/trunk/main Packages ...
    (Debian-User)
  • Re: redhat-config-packages using iso image
    ... >loopback mounts of iso images. ... >ie folder redhat contains ... >installation tree not found. ... packages other than what is immediatly displayed. ...
    (RedHat)
  • Packages for SunOS 5.8 needed to compile with gcc
    ... After searching google I found out that i need the following packages: ... unpacked images from a Linux box. ... > Sitze ich vor einer Winkiste bekomm ich hier die Kriese. ...
    (comp.unix.solaris)
  • gwenview: does not rotate images
    ... gewnview does not rotate images when viewing them. ... This did not happen with the gwenview version of Kubuntu 8.04. ... Versions of packages gwenview depends on: ...
    (Ubuntu)
  • Re: Synchronization of Primary Sites not working
    ... If the packages you need to send down are to big for the network links ... > Then, 1 Primary Central Site, 2 Primary Child Sites reporting to the Central ... This happened once before and I remember Images ...
    (microsoft.public.sms.admin)