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



Hi,

I tried the steps you gave. But when I run the exe, I get the console
window. It doesnot show the UI of my application.

Here are few clarifications sought

1) I am looking at exe which has bundled the image files and which
shall not on the disk. Hope freewrap takes care of that
2) Do i need to package any tcl/tk dlls/libs or freewrap takes care of
that ..
3) the filelist file generated for the images has absolute path for
each image name. Is this causing problem to run the app ?

Please revert as i cannot get the executable to run

Thx
Andy


slebetman@xxxxxxxxx wrote:
> 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: Packaging Tcl/Tk Application on Windows: Single File Executable
    ... But when I run the exe, I get the console ... In the console window type ... Are you telling freewrap explictly to load ... >>> packages such as winico bundled into a single executable. ...
    (comp.lang.tcl)
  • Re: Packaging Tcl/Tk Application on Windows: Single File Executable
    ... > 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. ... Freewrap can include image file. ...
    (comp.lang.tcl)
  • freewrap helper
    ... It is always pain to determine what files and packages are used by a ... And almost impossilbe to break into application's internal logic to ... fix path names as required by freewrap. ...
    (comp.lang.tcl)
  • freewrap helper
    ... It is always pain to determine what files and packages are used by a ... And almost impossilbe to break into application's internal logic to ... fix path names as required by freewrap. ...
    (comp.lang.tcl)
  • Re: [kde-linux] Window Borders Have Dissapeared
    ... the Control Center to modify any of the window properties or set up more ... of the packages I installed has caused this, but I don't know which one. ... undefined symbol in the program; ... libraries that's been upgraded by installing other packages. ...
    (KDE)