Howto use
With the following steps you can create an Binary from your TclTk Application:
- create an directory named “wrap” This directory content’s everything that will be later included in your Application Binary
- take all your tcl-sources and “cat” them together to 1 file, let’s say project.tcl and copy them into the “wrap” directory
- to protect your Code compile the project.tcl into Tcl-Bytecode tclexecomp64 -compile wrap/project.tcl
- Now there is an file project.tbc in the wrap directory. Rename the File to project.tcl in the wrap directory
- now build your Application for the destination platform:
To get an Linux-Binary, it is named "project"
tclexecomp64 wrap/project.tcl wrap/\* -forcewrap
To get an Windows-Binary, it is named "project.exe"
tclexecomp64 wrap/project.tcl wrap/\* -forcewrap -w tclexecomp64.exe
To get an Mac-Binary, it is named "project.mac"
tclexecomp64 wrap/project.tcl wrap/\* -forcewrap -w tclexecomp64.mac
To get an Linux-Binary for RasPi, it is named "project.arm"
tclexecomp64 wrap/project.tcl wrap/\* -forcewrap -w tclexecomp.arm
You can also set the Applicatoin Filename with the “-o” option.
If you want to customize your Binaries for a smaller size or another application icon, see Customize Binaries Section and use these Binaries after the “-w” option.