Op woensdag 19 juni 2013 08:54:31 UTC+2 schreef Eckhard Lehmann het volgende:
> You really should have a look at tclkit! This is the way to go for
> deployment and it works perfectly. It is well described here:
>
>
http://equi4.com/starkit/started.html
>
> Basically you rename the base directory of your project and append the
> ending .vfs. Then you rename the script that starts your application to
> main.tcl. Then you copy all dependencies to this .vfs directory and extend
> auto_path to resolve them from there. Then you download a tclkit (the new
> ones are here:
https://code.google.com/p/tclkit/) and sdx.kit and run:
>
> tclkit sdx.kit wrap <project>.kit
>
> (with <project> being the name of your .vfs directory without the ".vfs").
>
> That's all!
>
Well, this is one complete receipe :). You can also make a standalone executable
by using:
tclkit sdx.kit wrap <project>.exe -runtime tclkit-copy.exe
where "tclkit-copy.exe" is a copy of the tclkit executable (on Windows
this is required to be a different file than the executable you run, IIRC).
You can even build standalone executables in this way for a different
platform - as long as you have the appropriate tclkit executable.
(freewrap has similar capabilities, but it has been a long time since
I used it, so I will not try to explain the procedure.)
In addition:
tclkit for Windows comes in at least two flavours: one tclsh-style and
one wish-style. The tclsh-style is appropriate if you do not need any
interaction with the human user.
Regards,
Arjen