Deployment is the work it takes to move from ''finished application'' to ''application working on the end-users desktop/server/other computer'' to ''keeping the application up to date''. Issues to be considered include: * On what platforms does the application need to run? * Will the application and all of its dependencies run on these platforms? * Where in the end-user's environment does the application and its components reside? * How many of the application's dependant components do you need to deploy (your own tcl/tk interpreter? extensions, stand alone additional applications, images, fonts, drivers, libraries, etc.)? * When a bug is encountered, how do you ensure that all end-users are updated appropriately? * When end-users' versions of an application are updated, how to you ensure that data are properly updated? * When end-users' versions of an application are updated, how to you ensure that they can revert to a prior version (when possible)? * How can you determine how many end-users are using the application? * Do the end-users need to share data, and if so, how do they do this? * Are there any resource/locking issues with multiple accesses to the application or to the data (either multiple by one person, or multiple people accessing "simultaneously")? * What permissions are required for the application to be installed - some systems require special permissions for registry updates, system wide directories to be updated, etc.? * What special hardware needs must be met? * What operating system / driver patches must be in place? * In what format should the application and its components be shipped - [Deployment file formats]? * How do you determine an accurate picture of important information by someone reporting a problem? For instance, what version of each component being used by the application, what platform, what patches, etc.? The Wikipedia has a serious page [http://en.wikipedia.org/wiki/Software_deployment] on the topic. [[Discussions in pages on "[VFS]", "[Critcl builds C extensions on-the-fly]", "[MicroTcl for Tcl9]", "[Jean-Claude Wippler]", "[James Garrison]", "[Script to merge C source files]", "[How can I compile Tcl type scripts into binary code]", "[COMPANY: Career Demon.com plc]", Cameron Laird's personal remarks on deployment [http://phaseit.net/claird/comp.misc/deployment.html], ...]] ---- [Bob Techentin] wisely observes, "You might consider a 'traditional' tcl/tk installation, complete [[with]] additional packages, as a component of your application. Take a close look at how [TclPro] tools get installed, and you'll see that the '[wish]' executable is actually a short shell script which sets some environment variables (e.g., LD_LIBRARY_PATH) and then execs the binary shell." ---- Another option is to use [Tclkit]'s [starkit] [http://www.equi4.com/scripdoc/]. In a few steps: * get Tclkit for your platform * get the "SDX" scripted doc utility (platform independent) from [http://www.equi4.com/pub/tk/examples/] * create dirs "myapp.vfs/", "myapp.vfs/bin/", and "myapp.vfs/lib/" * copy your main script to "myapp.vfs/bin/main.tcl" * copy all packages you need as dirs inside "myapp.vfs/lib/" * wrap it all up using "sdx fs2sd myapp" ("file system to scripted doc") * that's it, you have a runnable "myapp" * try it (double-click, or run "./myapp" on Unix) There are ways to make "main.tcl" work in unpackaged as well as in packaged form, which is useful for debugging. All of this is based on Tcl's Virtual File System or [VFS] in short. All examples here [http://www.equi4.com/pub/tk/examples/] and here [http://www.equi4.com/pub/dok/] use this same approach, you can unpack them (with "sdx sd2fs ...") to see how they work. - [JCW] [ActiveState]'s [Tcl Dev Kit] [TclApp] tool builds on starkit technology to make all the above a simple point-and-click exercise. Also be sure to check out the wondrous offerings at the Starkit Distribution Archive [http://tcl.tk/starkits] ---- [EKB] There is also [FreeWrap], which works quite nicely. ---- An interesting academic project in this area: the Software Dock [http://www.cs.colorado.edu/serl/cm/dock.html]. ---- See also [A Poor Boy does Deployment] for the ''ravings'' (;-)) of [Rohan Pall] as he struggles to solve various deployment issues. This is a stream of conciousness description to show people that this stuff of putting an application on a desktop is non-trivial. ---- "[[W]]ith the advent of [starkit]/[starpack] technology, deployment issues are mostly a thing of the past ..." -- [Jeff Godfrey] ---- [LV] What would be a good web site for someone attempting to get a handle on these types of issues, in cases where a starkit is not an option? ---- [Lectus] There's also Tkwrap from the WinTclTk project: http://wintcltk.sourceforge.net/tkwrap.html What deployment options with encryption are available? ---- [[ [Category Deployment] - [Category Glossary] ]]