tcl-sfe

2026-07-08 v0.2 adds support for modifying icon and version resources.

Single file executables for Tcl/Tk 9.1b0 or later on Windows.

This repository hosts single file executables (SFE) of Tcl/Tk for Windows and a build system to create and customize them. These are completely statically linked (other than the C and Windows runtimes) and therefore avoid issues that arise from similar single file executables that write shared libraries to disk.

The tclsfe.exe and tksfe.exe programs are enhanced versions of tclsh.exe and wish.exe that include the following extensions by default:

  • thread
  • sqlite3
  • tdbc::odbc
  • twapi

The build system allows omission of any of these if smaller executables are desired. Further, SFE's can be customized by adding

  • additional packages or Tcl modules

  • icon and version resources

  • interpreter initalization scripts

  • a main script that implements a complete application

  • statically linked extensions

Only this last customization needs a compiler.

[Mho] 2026-07-08: fantastic! Creating EXEs is even simpler than with sdx! The one thing thats problematic: everyone can open a zipkit, e.g. with 7Zip or totalcommander, and look inside. Would it be possible to expose the zipfs mkimg password option (because it would be at least a little more secure then)?

MiR 2026-07-08: Looks great, but I got one issue, the precompiled binaries are MSVC and need some msvcrt wich are not part of my installation (wine)... is it possible to compile with gcc against static-libc?